[Buildroot] Updated status on the compilation of busybox on Mac OS X

Nicholas Kinar n.kinar at usask.ca
Wed Dec 2 22:55:16 UTC 2009


Hello--

I've now added these entries to the Buildroot .config file:

BR2_ENABLE_LOCALE=no
BR2_BUILD_SUFFIX=apple-darwin9
BR2_EXTRA_GCC_CONFIG_OPTIONS="--host=i686-apple-darwin9 
--build=i686-apple-darwin9"


Buildroot continues to build, but crashes with the following error.  (My 
apologies for the odd characters in the error posting.)  Apparently the 
compiler cannot find elf.h, which is required for compilation.  This 
could prove to be a real show-stopper, since elf.h does not appear to be 
included with BSD-style systems.


lsmod.c:28:24: error: asm/unistd.h: No such file or directory
insmod.c:29:24: error: asm/unistd.h: No such file or directory
make[1]: *** [lsmod.o] Error 1
make[1]: *** Waiting for unfinished jobs....
modprobe.c:35:17: error: elf.h: No such file or directory
modprobe.c:38:24: error: asm/unistd.h: No such file or directory
make[1]: *** [insmod.o] Error 1
modprobe.c: In function Ôget_section32Õ:
modprobe.c:437: error: ÔElf32_EhdrÕ undeclared (first use in this function)
modprobe.c:437: error: (Each undeclared identifier is reported only once
modprobe.c:437: error: for each function it appears in.)
modprobe.c:437: error: ÔhdrÕ undeclared (first use in this function)
modprobe.c:438: error: ÔElf32_ShdrÕ undeclared (first use in this function)
modprobe.c:438: error: ÔsechdrsÕ undeclared (first use in this function)
modprobe.c: In function Ôget_section64Õ:
modprobe.c:464: error: ÔElf64_EhdrÕ undeclared (first use in this function)
modprobe.c:464: error: ÔhdrÕ undeclared (first use in this function)
modprobe.c:465: error: ÔElf64_ShdrÕ undeclared (first use in this function)
modprobe.c:465: error: ÔsechdrsÕ undeclared (first use in this function)
modprobe.c: In function Ôelf_identÕ:
modprobe.c:491: error: ÔEI_CLASSÕ undeclared (first use in this function)
modprobe.c:491: error: ÔELFMAGÕ undeclared (first use in this function)
modprobe.c:491: error: ÔSELFMAGÕ undeclared (first use in this function)
modprobe.c:492: error: ÔELFCLASSNONEÕ undeclared (first use in this 
function)
modprobe.c: In function Ôget_sectionÕ:
modprobe.c:502: error: ÔELFCLASS32Õ undeclared (first use in this function)
modprobe.c:504: error: ÔELFCLASS64Õ undeclared (first use in this function)
modprobe.c: In function Ôinvalidate_section32Õ:
modprobe.c:536: error: ÔElf32_EhdrÕ undeclared (first use in this function)
modprobe.c:536: error: ÔhdrÕ undeclared (first use in this function)
modprobe.c:537: error: ÔElf32_ShdrÕ undeclared (first use in this function)
modprobe.c:537: error: ÔsechdrsÕ undeclared (first use in this function)
modprobe.c:543: error: ÔSHF_ALLOCÕ undeclared (first use in this function)
modprobe.c: In function Ôinvalidate_section64Õ:
modprobe.c:548: error: ÔElf64_EhdrÕ undeclared (first use in this function)
modprobe.c:548: error: ÔhdrÕ undeclared (first use in this function)
modprobe.c:549: error: ÔElf64_ShdrÕ undeclared (first use in this function)
modprobe.c:549: error: ÔsechdrsÕ undeclared (first use in this function)
modprobe.c:555: error: ÔSHF_ALLOCÕ undeclared (first use in this function)
modprobe.c: In function Ôstrip_sectionÕ:
modprobe.c:564: error: ÔELFCLASS32Õ undeclared (first use in this function)
modprobe.c:567: error: ÔELFCLASS64Õ undeclared (first use in this function)
make[1]: *** [modprobe.o] Error 1
make: *** 
[/Users/nkinar/Desktop/buildroot-1/buildroot-2009.11/output/toolchain/module-init-tools-3.2.2/depmod] 
Error 2









More information about the buildroot mailing list