Created attachment 677 [details] all my .config files from 'make saveconfig' this is absolutely a showstopper for me. i seem to have continuous problems building util-linux with several of the past buildroot releases - if nobody else is having these problems, maybe it's something about my build environment? a google search shows that these errors might result from large file support not being turned on, but it definitely is. /provisioning/buildroot/buildroot-2009.08/build_i686/staging_dir/usr/bin/i686-linux-uclibc-gcc -g -O2 -o pivot_root pivot_root.o swapon.c:86: error: expected declaration specifiers or '...' before 'swapon' swapon.c:86: error: expected declaration specifiers or '...' before 'path' swapon.c:86: error: expected declaration specifiers or '...' before 'flags' swapon.c:88: error: expected declaration specifiers or '...' before 'swapoff' swapon.c:88: error: expected declaration specifiers or '...' before 'path' swapon.c: In function 'swapon_all': swapon.c:328: error: 'R_OK' undeclared (first use in this function) swapon.c:328: error: (Each undeclared identifier is reported only once swapon.c:328: error: for each function it appears in.) make[3]: *** [swapon.o] Error 1 make[3]: Leaving directory `/provisioning/buildroot/buildroot-2009.08/build_i686/util-linux-2.13-pre7/mount' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/provisioning/buildroot/buildroot-2009.08/build_i686/util-linux-2.13-pre7' make[1]: *** [all] Error 2 make[1]: Leaving directory `/provisioning/buildroot/buildroot-2009.08/build_i686/util-linux-2.13-pre7' make: *** [/provisioning/buildroot/buildroot-2009.08/build_i686/util-linux-2.13-pre7/misc-utils/chkdupexe] Error 2 please let me know if there's anything else i can supply to help troubleshoot this
according to a conversation @ http://ibot.rikers.org/%23uclibc/20031113.html.gz, adding #include <fcntl.h> to swapon.c seems to fix half the problem - the part about R_OK undeclared. This still leaves the other half: swapon.c:86: error: expected declaration specifiers or '...' before 'swapon' swapon.c:86: error: expected declaration specifiers or '...' before 'path' swapon.c:86: error: expected declaration specifiers or '...' before 'flags' swapon.c:88: error: expected declaration specifiers or '...' before 'swapoff' swapon.c:88: error: expected declaration specifiers or '...' before 'path'
(In reply to comment #0) > this is absolutely a showstopper for me. i seem to have continuous problems > building util-linux with several of the past buildroot releases - if nobody > else is having these problems, maybe it's something about my build environment? I haven't been able to reproduce it here atleast.
Still unable to reproduce, so closing.
Have have this show stopper also , with from today buildroot git version. Making all in text-utils (...) In file included from more.c:56: buildroot/output/staging/usr/include/a.out.h:1:25: error: linux/a.out.h: No such file or directory more.c: In function 'magic': more.c:507: error: 'OMAGIC' undeclared (first use in this function) more.c:507: error: (Each undeclared identifier is reported only once more.c:507: error: for each function it appears in.) more.c:508: error: 'NMAGIC' undeclared (first use in this function) more.c:509: error: 'ZMAGIC' undeclared (first use in this function) make[3]: *** [more.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `buildroot/output/build/util-linux-2.13-pre7/text-utils' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `buildroot/output/build/util-linux-2.13-pre7' make[1]: *** [all] Error 2 make[1]: Leaving directory `buildroot/output/build/util-linux-2.13-pre7' make: *** [buildroot/output/build/util-linux-2.13-pre7/misc-utils/chkdupexe] Error 2 furthermore I do a couple of commands like cd .. , cd - (or I wait sometime ?!), do a make , and make forget this package and go to the finish , but never built the more binary and others.
Please provide your Buildroot .config to allow us to reproduce the issue.
Created attachment 2269 [details] last .config (In reply to comment #5) > Please provide your Buildroot .config to allow us to reproduce the issue. linux/a.out.h seems to belongs to kernel headers and I don't have a kernel cross-compiled. which make more.c depends on kernel-headers, because needs 3 constants ?! OMAGIC NMAGIC ZMAGIC. I got a CPU "core i5", which I can compile this in more or less one hour , I need do 2 or 3 times : make flush make
(In reply to comment #6) > Created attachment 2269 [details] > last .config > > (In reply to comment #5) > > Please provide your Buildroot .config to allow us to reproduce the issue. > > linux/a.out.h seems to belongs to kernel headers and I don't have a kernel > cross-compiled. which make more.c depends on kernel-headers, because needs 3 > constants ?! OMAGIC NMAGIC ZMAGIC. Yes, kernel headers are seperate from building a kernel for your target. linux/a.out.h is a legacy header (for the a.out format), which is only available on the following archs: ls arch/*/include/asm/a.out.h ~/source/linux-2.6 arch/alpha/include/asm/a.out.h arch/m68k/include/asm/a.out.h arch/arm/include/asm/a.out.h arch/x86/include/asm/a.out.h So that won't work on mipsel. I'll see what we can do about it.
I have added a fix for the util-linux build failure on MIPS reported in this bug to my for-2010.08 branch. See http://git.buildroot.net/~tpetazzoni/git/buildroot/commit/?h=for-2010.08&id=55f70939b839cd5ad826ea01fcb6d363d63ee15d. This branch will be pushed to Peter before the 2010.08 release.