From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baruch Siach Date: Wed, 19 Dec 2018 21:34:11 +0200 Subject: [Buildroot] busybox build fail ... BUG_off_t_size_is_misdetected() In-Reply-To: References: <306d14cd-bc37-0552-6e8d-cb583999d5b1@newflow.co.uk> Message-ID: <877eg58g5o.fsf@tkos.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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 -