Errors compiling Busybox

Steve Iribarne (GMail) netstv at gmail.com
Wed Oct 14 14:46:36 UTC 2009


Obvious question....

is byteswap.h in your toolchain header files?  For example I have the
freescale toolchain for their ARM and my byteswap.h is:
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/sysroot/usr/include/bits/byteswap.h

I'm not really sure however, if the sysroot/usr/include directory is
in the include path of the compiler or if I am using my normal
"/usr/include/byteswap.h".

What I would try is checking the other compiler that works to see if
the byteswap.h is located in its include directory.

-stv


On Wed, Oct 14, 2009 at 7:29 AM, Matthias Wieloch
<matthias_wieloch at web.de> wrote:
> Hello,
>
> I tried compiling Busybox 1.15.2 with CodeSourcery's ARM Toolchain
> (arm-none-eabi-gcc v4.3.3) and I get errors very early in build process
> (attached at the end).
> I have another toolchain available that builds busybox for ARM but I dislike
> handling with several compilers for one project.
>
>  HOSTCC  scripts/basic/fixdep
>  HOSTCC  scripts/basic/split-include
>  HOSTCC  scripts/basic/docproc
>  HOSTCC  scripts/kconfig/conf.o
>  HOSTCC  scripts/kconfig/kxgettext.o
>  HOSTCC  scripts/kconfig/mconf.o
>  HOSTCC  scripts/kconfig/zconf.tab.o
>  HOSTLD  scripts/kconfig/conf
> scripts/kconfig/conf -s Config.in
> #
> # using defaults found in .config
> #
>  SPLIT   include/autoconf.h -> include/config/*
>  GEN     include/bbconfigopts.h
>  HOSTCC  applets/usage
>  GEN     include/usage_compressed.h
> 13102+0 Datensätze ein
> 13102+0 Datensätze aus
> 26204 Bytes (26 kB) kopiert, 4,37275 s, 6,0 kB/s
>  HOSTCC  applets/applet_tables
>  GEN     include/applet_tables.h
>  CC      applets/applets.o
> In file included from include/libbb.h:13,
>                 from include/busybox.h:10,
>                 from applets/applets.c:11:
> include/platform.h:137:23: error: byteswap.h: No such file or directory
> include/platform.h:138:21: error: endian.h: No such file or directory
> include/platform.h:144:7: warning: "__BYTE_ORDER" is not defined
> include/platform.h:144:23: warning: "__BIG_ENDIAN" is not defined
> include/platform.h:194:24: error: arpa/inet.h: No such file or directory
> include/platform.h:230:23: error: features.h: No such file or directory
> In file included from
> /usr/local/arm-2009q1/bin/../lib/gcc/arm-none-eabi/4.3.3/../../../../arm-non
> e-eabi/include/dirent.h:6,
>                 from include/libbb.h:16,
>                 from include/busybox.h:10,
>                 from applets/applets.c:11:
> /usr/local/arm-2009q1/bin/../lib/gcc/arm-none-eabi/4.3.3/../../../../arm-non
> e-eabi/include/sys/dirent.h:10:2: error: #error "<dirent.h> not supported"
> In file included from include/busybox.h:10,
>                 from applets/applets.c:11:
> include/libbb.h:20:19: error: netdb.h: No such file or directory
> include/libbb.h:28:22: error: sys/poll.h: No such file or directory
> include/libbb.h:29:23: error: sys/ioctl.h: No such file or directory
> include/libbb.h:30:22: error: sys/mman.h: No such file or directory
> include/libbb.h:31:24: error: sys/socket.h: No such file or directory
> In file included from include/libbb.h:40,
>                 from include/busybox.h:10,
>                 from applets/applets.c:11:
> /usr/local/arm-2009q1/bin/../lib/gcc/arm-none-eabi/4.3.3/../../../../arm-non
> e-eabi/include/termios.h:4:25: error: sys/termios.h: No such file or
> directory
> In file included from include/busybox.h:10,
>                 from applets/applets.c:11:
> include/libbb.h:52:20: error: mntent.h: No such file or directory
> include/libbb.h:56:24: error: sys/statfs.h: No such file or directory
> In file included from include/busybox.h:10,
>                 from applets/applets.c:11:
> include/libbb.h:327: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before '*' token
> include/libbb.h:328: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before '*' token
> include/libbb.h:419: error: 'SOCK_STREAM' undeclared here (not in a
> function)
> include/libbb.h:420: error: 'SOCK_DGRAM' undeclared here (not in a function)
> include/libbb.h:421: error: 'SOCK_RDM' undeclared here (not in a function)
> include/libbb.h:422: error: 'SOCK_SEQPACKET' undeclared here (not in a
> function)
> include/libbb.h:423: error: 'SOCK_RAW' undeclared here (not in a function)
> include/libbb.h:426: error: 'AF_UNSPEC' undeclared here (not in a function)
> include/libbb.h:427: error: 'AF_INET' undeclared here (not in a function)
> include/libbb.h:428: error: 'AF_INET6' undeclared here (not in a function)
> include/libbb.h:429: error: 'AF_UNIX' undeclared here (not in a function)
> include/libbb.h:447: warning: 'struct sockaddr' declared inside parameter
> list
> include/libbb.h:447: warning: its scope is only this definition or
> declaration, which is probably not what you want
> include/libbb.h:449: warning: 'struct sockaddr' declared inside parameter
> list
> include/libbb.h:451: warning: 'struct sockaddr' declared inside parameter
> list
> include/libbb.h:466: error: field 'sa' has incomplete type
> include/libbb.h:467: error: field 'sin' has incomplete type
> include/libbb.h:469: error: field 'sin6' has incomplete type
> include/libbb.h:477: error: field 'sa' has incomplete type
> include/libbb.h:478: error: field 'sin' has incomplete type
> include/libbb.h:480: error: field 'sin6' has incomplete type
> include/libbb.h:527: error: expected declaration specifiers or '...' before
> 'sa_family_t'
> include/libbb.h:528: error: expected declaration specifiers or '...' before
> 'sa_family_t'
> include/libbb.h:675: error: expected declaration specifiers or '...' before
> 'nfds_t'
> include/libbb.h:675: warning: 'struct pollfd' declared inside parameter list
> In file included from include/busybox.h:10,
>                 from applets/applets.c:11:
> include/libbb.h:999: warning: 'struct mntent' declared inside parameter list
> include/libbb.h:1003: error: expected ')' before 'speed'
> include/libbb.h:1004: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before 'tty_value_to_baud'
> include/libbb.h:1149: warning: 'struct termios' declared inside parameter
> list
> include/libbb.h:1279: error: expected specifier-qualifier-list before 'DIR'
> make[1]: *** [applets/applets.o] Fehler 1
> make: *** [applets] Fehler 2
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
>



-- 
/*
 * Steve Iribarne
 * Software Engineer
 * (aka Grunt)
 */


More information about the busybox mailing list