Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] busybox build fail ... BUG_off_t_size_is_misdetected()
Date: Wed, 19 Dec 2018 21:34:11 +0200	[thread overview]
Message-ID: <877eg58g5o.fsf@tkos.co.il> (raw)
In-Reply-To: <eeaa721d-51e5-9adc-51ff-cad1156387ab@newflow.co.uk>

Hi Mark,

Mark Jackson writes:
> On 19/12/2018 11:46, Mark Jackson wrote:
>> I have an old buildroot setup that I'm trying to coax back into life using the later version.
>>
>> I've done:-
>>
>> $ git pull
>> $ make clean
>> $ make menuconfig (and fixed any deprecated options)
>> $ make
>>
>> All seemed okay until the busybox build, where I got the message:-
>>
>>>  CC applets/applets.o
>>> In file included from include/busybox.h:8:0,
>>>  from applets/applets.c:9:
>>> include/libbb.h:304:7: error: size of array ?BUG_off_t_size_is_misdetected? is negative
>>>  char BUG_off_t_size_is_misdetected[sizeof(off_t) == sizeof(uoff_t) ? 1 : -1];
>>>  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> scripts/Makefile.build:197: recipe for target 'applets/applets.o' failed
>>
>> If I use the default busybox config, then everything seems to build correctly, so I can only put it down to some mis-match in my custom busybox config.
>>
>> I've attached my busybox .config ... if anyone can shed some light on what's wrong, I'd be most grateful.
>
> After some web searching [1], I have found that if I enable LFS, it all builds fine.
>
> So I assume there's some other applet that assumes LFS is enabled.
> If so, should there be some dependency check to flag that as an issue ?
>
> And how do I build *without* LFS enabled ?

Buildroot removed support for non-LFS build in version 2015.05. See
commit 7f96ef3580a ("toolchain/helpers: make LFS mandatory for uclibc
toolchains").

> Cheers
> Mark JACKSON
>
> [1] https://groups.google.com/d/topic/usbarmory/7vfT07jv8zo/discussion

baruch

--
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

  reply	other threads:[~2018-12-19 19:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-19 11:46 [Buildroot] busybox build fail ... BUG_off_t_size_is_misdetected() Mark Jackson
2018-12-19 12:26 ` Mark Jackson
2018-12-19 19:34   ` Baruch Siach [this message]
2018-12-20 13:27     ` Mark Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877eg58g5o.fsf@tkos.co.il \
    --to=baruch@tkos.co.il \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox