Dear All,
I need to compile busybox for my ported android 2.3.3 on i.mx53 QSB using the tool chain arm-linux-eabi-
ubuntu@ubuntu-laptop:~$ cd /home/ubuntu/busybox
ubuntu@ubuntu-laptop:~/busybox$ export PATH=$PATH:/home/ubuntu/i.MX53-QSB-Android-Gingerbread-Release4.1/src/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin
ubuntu@ubuntu-laptop:~/busybox$ export CROSS_COMPILE=/home/ubuntu/i.MX53-QSB-Android-Gingerbread-Release4.1/src/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
ubuntu@ubuntu-laptop:~/busybox$ make ARCH=arm CROSS_COMPILE=arm-eabi- menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
scripts/basic/split-include.c: In function ‘main’:
scripts/basic/split-include.c:134: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
HOSTCC scripts/basic/docproc
GEN include/applets.h
GEN include/usage.h
GEN runit/Kbuild
GEN runit/Config.in
GEN util-linux/Kbuild
GEN util-linux/Config.in
GEN util-linux/volume_id/Kbuild
GEN selinux/Kbuild
GEN selinux/Config.in
GEN loginutils/Kbuild
GEN loginutils/Config.in
GEN scripts/Kbuild
GEN debianutils/Kbuild
GEN debianutils/Config.in
GEN networking/Kbuild
GEN networking/Config.in
GEN networking/udhcp/Kbuild
GEN networking/udhcp/Config.in
GEN networking/libiproute/Kbuild
GEN findutils/Kbuild
GEN findutils/Config.in
GEN printutils/Kbuild
GEN printutils/Config.in
GEN libpwdgrp/Kbuild
GEN init/Kbuild
GEN init/Config.in
GEN mailutils/Kbuild
GEN mailutils/Config.in
GEN modutils/Kbuild
GEN modutils/Config.in
GEN libbb/Kbuild
GEN libbb/Config.in
GEN editors/Kbuild
GEN editors/Config.in
GEN miscutils/Kbuild
GEN miscutils/Config.in
GEN applets/Kbuild
GEN console-tools/Kbuild
GEN console-tools/Config.in
GEN archival/Kbuild
GEN archival/Config.in
GEN archival/libarchive/Kbuild
GEN coreutils/Kbuild
GEN coreutils/Config.in
GEN coreutils/libcoreutils/Kbuild
GEN sysklogd/Kbuild
GEN sysklogd/Config.in
GEN procps/Kbuild
GEN procps/Config.in
GEN e2fsprogs/Kbuild
GEN e2fsprogs/Config.in
GEN e2fsprogs/old_e2fsprogs/Kbuild
GEN e2fsprogs/old_e2fsprogs/Config.in
GEN e2fsprogs/old_e2fsprogs/uuid/Kbuild
GEN e2fsprogs/old_e2fsprogs/e2p/Kbuild
GEN e2fsprogs/old_e2fsprogs/ext2fs/Kbuild
GEN e2fsprogs/old_e2fsprogs/blkid/Kbuild
GEN shell/Kbuild
GEN shell/Config.in
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:106: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:354: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/mconf.o
scripts/kconfig/mconf.c: In function ‘exec_conf’:
scripts/kconfig/mconf.c:473: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result
scripts/kconfig/mconf.c: In function ‘show_textbox’:
scripts/kconfig/mconf.c:839: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/mconf
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/lxdialog.o
scripts/kconfig/lxdialog/lxdialog.c: In function ‘j_inputbox’:
scripts/kconfig/lxdialog/lxdialog.c:192: warning: format not a string literal and no format arguments
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/msgbox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTLD scripts/kconfig/lxdialog/lxdialog
scripts/kconfig/mconf Config.in
#
# using defaults found in /dev/null
#
*** End of configuration.
*** Execute 'make' to build the project or try 'make help'.
ubuntu@ubuntu-laptop:~/busybox$ make ARCH=arm CROSS_COMPILE=arm-eabi-
SPLIT include/autoconf.h -> include/config/*
GEN include/bbconfigopts.h
HOSTCC applets/usage
applets/usage.c: In function ‘main’:
applets/usage.c:52: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
GEN include/usage_compressed.h
HOSTCC applets/applet_tables
applets/applet_tables.c: In function ‘main’:
applets/applet_tables.c:151: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
GEN include/applet_tables.h
CC applets/applets.o
In file included from include/libbb.h:13,
from include/busybox.h:8,
from applets/applets.c:9:
include/platform.h:138:20: error: limits.h: No such file or directory
include/platform.h:149:23: error: byteswap.h: No such file or directory
include/platform.h:150:21: error: endian.h: No such file or directory
include/platform.h:175:3: error: #error "Can't determine endianness"
include/platform.h:178:5: warning: "ULONG_MAX" is not defined
include/platform.h:183:5: warning: "BB_BIG_ENDIAN" is not defined
include/platform.h:206:20: error: stdint.h: No such file or directory
In file included from include/libbb.h:13,
from include/busybox.h:8,
from applets/applets.c:9:
include/platform.h:208: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bb__aliased_uint16_t'
include/platform.h:209: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bb__aliased_uint32_t'
include/platform.h:283:20: error: unistd.h: No such file or directory
In file included from include/busybox.h:8,
from applets/applets.c:9:
include/libbb.h:15:19: error: ctype.h: No such file or directory
include/libbb.h:16:20: error: dirent.h: No such file or directory
include/libbb.h:17:19: error: errno.h: No such file or directory
include/libbb.h:18:19: error: fcntl.h: No such file or directory
include/libbb.h:19:22: error: inttypes.h: No such file or directory
include/libbb.h:20:19: error: netdb.h: No such file or directory
include/libbb.h:21:20: error: setjmp.h: No such file or directory
include/libbb.h:22:20: error: signal.h: No such file or directory
include/libbb.h:30:19: error: stdio.h: No such file or directory
include/libbb.h:31:20: error: stdlib.h: No such file or directory
include/libbb.h:34:20: error: string.h: No such file or directory
include/libbb.h:37:43: error: libgen.h: No such file or directory
include/libbb.h:40:22: error: sys/poll.h: No such file or directory
include/libbb.h:41:23: error: sys/ioctl.h: No such file or directory
include/libbb.h:42:22: error: sys/mman.h: No such file or directory
include/libbb.h:43:24: error: sys/socket.h: No such file or directory
include/libbb.h:44:22: error: sys/stat.h: No such file or directory
include/libbb.h:45:22: error: sys/time.h: No such file or directory
include/libbb.h:46:23: error: sys/types.h: No such file or directory
include/libbb.h:48:28: error: sys/sysmacros.h: No such file or directory
include/libbb.h:50:22: error: sys/wait.h: No such file or directory
include/libbb.h:51:21: error: termios.h: No such file or directory
include/libbb.h:52:18: error: time.h: No such file or directory
include/libbb.h:53:23: error: sys/param.h: No such file or directory
include/libbb.h:54:17: error: pwd.h: No such file or directory
include/libbb.h:55:17: error: grp.h: No such file or directory
include/libbb.h:69:21: error: mntent.h: No such file or directory
include/libbb.h:72:25: error: sys/statfs.h: No such file or directory
include/libbb.h:87:19: error: utmp.h: No such file or directory
include/libbb.h:116:24: error: arpa/inet.h: No such file or directory
In file included from include/libbb.h:183,
from include/busybox.h:8,
from applets/applets.c:9:
include/pwd_.h:70: error: expected ')' before '__uid'
include/pwd_.h:87: error: expected ')' before '__uid'
include/pwd_.h:99: error: expected ')' before '*' token
In file included from include/libbb.h:184,
from include/busybox.h:8,
from applets/applets.c:9:
include/grp_.h:71: error: expected ')' before '__gid'
include/grp_.h:89: error: expected ')' before '__gid'
include/grp_.h:101: error: expected ')' before '*' token
include/grp_.h:109: error: expected declaration specifiers or '...' before 'gid_t'
include/grp_.h:110: error: expected declaration specifiers or '...' before 'gid_t'
include/grp_.h:115: error: expected declaration specifiers or '...' before 'gid_t'
include/libbb.h:215:6: warning: "ULONG_MAX" is not defined
In file included from include/busybox.h:8,
from applets/applets.c:9:
include/libbb.h:256: error: 'off_t' undeclared here (not in a function)
include/libbb.h:301:7: warning: "ULONG_MAX" is not defined
include/libbb.h:303: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bb_bswap_64'
include/libbb.h:320: error: expected ')' before 'mode'
include/libbb.h:354: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'recurse_flags_t'
include/libbb.h:356: warning: 'struct stat' declared inside parameter list
include/libbb.h:356: warning: its scope is only this definition or declaration, which is probably not what you want
include/libbb.h:357: warning: 'struct stat' declared inside parameter list
include/libbb.h:366: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bb_copyfd_eof'
include/libbb.h:367: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bb_copyfd_size'
include/libbb.h:368: error: expected declaration specifiers or '...' before 'off_t'
include/libbb.h:371: error: expected ')' before 'sz'
include/libbb.h:396: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:397: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:424: error: 'SIGHUP' undeclared here (not in a function)
include/libbb.h:425: error: 'SIGINT' undeclared here (not in a function)
include/libbb.h:426: error: 'SIGTERM' undeclared here (not in a function)
include/libbb.h:427: error: 'SIGPIPE' undeclared here (not in a function)
include/libbb.h:428: error: 'SIGQUIT' undeclared here (not in a function)
include/libbb.h:429: error: 'SIGABRT' undeclared here (not in a function)
include/libbb.h:430: error: 'SIGALRM' undeclared here (not in a function)
include/libbb.h:431: error: 'SIGVTALRM' undeclared here (not in a function)
include/libbb.h:432: error: 'SIGXCPU' undeclared here (not in a function)
include/libbb.h:433: error: 'SIGXFSZ' undeclared here (not in a function)
include/libbb.h:434: error: 'SIGUSR1' undeclared here (not in a function)
include/libbb.h:435: error: 'SIGUSR2' undeclared here (not in a function)
include/libbb.h:452: warning: 'struct sigaction' declared inside parameter list
include/libbb.h:460: error: expected ')' before 'gid'
include/libbb.h:461: error: expected ')' before 'uid'
include/libbb.h:468: warning: 'struct stat' declared inside parameter list
include/libbb.h:469: warning: 'struct stat' declared inside parameter list
include/libbb.h:479: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xlseek'
include/libbb.h:481: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fdlength'
include/libbb.h:495: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'socktype_t'
include/libbb.h:496: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'family_t'
include/libbb.h:499: error: 'SOCK_STREAM' undeclared here (not in a function)
include/libbb.h:500: error: 'SOCK_DGRAM' undeclared here (not in a function)
include/libbb.h:501: error: 'SOCK_RDM' undeclared here (not in a function)
include/libbb.h:502: error: 'SOCK_SEQPACKET' undeclared here (not in a function)
include/libbb.h:503: error: 'SOCK_RAW' undeclared here (not in a function)
include/libbb.h:506: error: 'AF_UNSPEC' undeclared here (not in a function)
include/libbb.h:507: error: 'AF_INET' undeclared here (not in a function)
include/libbb.h:508: error: 'AF_INET6' undeclared here (not in a function)
include/libbb.h:509: error: 'AF_UNIX' undeclared here (not in a function)
include/libbb.h:522: warning: 'struct tm' declared inside parameter list
include/libbb.h:523: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'validate_tm_time'
include/libbb.h:527: warning: 'struct sockaddr' declared inside parameter list
include/libbb.h:529: warning: 'struct sockaddr' declared inside parameter list
include/libbb.h:530: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xsendto'
include/libbb.h:546: error: field 'sa' has incomplete type
include/libbb.h:547: error: field 'sin' has incomplete type
include/libbb.h:549: error: field 'sin6' has incomplete type
include/libbb.h:557: error: field 'sa' has incomplete type
include/libbb.h:558: error: field 'sin' has incomplete type
include/libbb.h:560: error: field 'sin6' has incomplete type
include/libbb.h:605: error: expected declaration specifiers or '...' before 'sa_family_t'
include/libbb.h:606: error: expected declaration specifiers or '...' before 'sa_family_t'
include/libbb.h:631: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'send_to_from'
include/libbb.h:635: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'recv_from_to'
include/libbb.h:640: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_cksum'
include/libbb.h:677: error: expected declaration specifiers or '...' before 'FILE'
include/libbb.h:697: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'safe_read'
include/libbb.h:698: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nonblock_immune_read'
include/libbb.h:701: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'full_read'
include/libbb.h:704: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'read_close'
include/libbb.h:705: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'open_read_close'
include/libbb.h:729: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'safe_write'
include/libbb.h:732: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'full_write'
include/libbb.h:735: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'full_write1_str'
include/libbb.h:736: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'full_write2_str'
include/libbb.h:743: error: expected ')' before '*' token
include/libbb.h:750: error: expected ')' before '*' token
include/libbb.h:752: error: expected ')' before '*' token
include/libbb.h:754: error: expected ')' before '*' token
include/libbb.h:756: error: expected ')' before '*' token
include/libbb.h:758: error: expected ')' before '*' token
include/libbb.h:760: error: expected ')' before '*' token
include/libbb.h:764: error: expected ')' before '*' token
include/libbb.h:768: error: expected ')' before '*' token
include/libbb.h:769: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:771: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:773: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:774: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:775: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:776: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:777: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:778: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:779: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:780: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:789: error: expected declaration specifiers or '...' before 'nfds_t'
include/libbb.h:789: warning: 'struct pollfd' declared inside parameter list
include/libbb.h:820: error: expected ')' before '*' token
In file included from include/libbb.h:827,
from include/busybox.h:8,
from applets/applets.c:9:
include/xatonum.h:86:5: warning: "ULONG_MAX" is not defined
include/xatonum.h:86:18: warning: "ULLONG_MAX" is not defined
include/xatonum.h:94:5: warning: "UINT_MAX" is not defined
include/xatonum.h:94:17: warning: "ULLONG_MAX" is not defined
include/xatonum.h:96:7: warning: "UINT_MAX" is not defined
include/xatonum.h:96:19: warning: "ULONG_MAX" is not defined
In file included from include/libbb.h:827,
from include/busybox.h:8,
from applets/applets.c:9:
include/xatonum.h:104: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'BUG_xatou32_unimplemented'
include/xatonum.h:105: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xatou32'
include/xatonum.h:130:5: warning: "ULONG_MAX" is not defined
include/xatonum.h:130:18: warning: "ULLONG_MAX" is not defined
include/xatonum.h:142:5: warning: "UINT_MAX" is not defined
include/xatonum.h:142:17: warning: "ULLONG_MAX" is not defined
include/xatonum.h:149:7: warning: "UINT_MAX" is not defined
include/xatonum.h:149:19: warning: "ULONG_MAX" is not defined
include/xatonum.h:161: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'BUG_bb_strtou32_unimplemented'
include/xatonum.h:163: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bb_strtou32'
include/xatonum.h:172: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bb_strtoi32'
In file included from include/busybox.h:8,
from applets/applets.c:9:
include/libbb.h:840: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xatou16'
include/libbb.h:852: error: expected specifier-qualifier-list before 'uid_t'
include/libbb.h:863: error: expected ')' before 'uid'
include/libbb.h:864: error: expected ')' before 'gid'
include/libbb.h:865: error: expected ')' before 'uid'
include/libbb.h:866: error: expected ')' before 'gid'
include/libbb.h:867: error: expected ')' before 'uid'
include/libbb.h:868: error: expected ')' before 'gid'
include/libbb.h:869: error: expected ')' before 'uid'
include/libbb.h:870: error: expected ')' before 'gid'
include/libbb.h:872: error: expected ')' before 'uid'
include/libbb.h:873: error: expected ')' before 'gid'
include/libbb.h:876: error: 'uid_t' undeclared here (not in a function)
include/libbb.h:884: error: expected ')' before 'pid'
include/libbb.h:885: error: expected ')' before 'pid'
include/libbb.h:923: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xfork'
include/libbb.h:927: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'spawn'
include/libbb.h:928: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xspawn'
include/libbb.h:930: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'safe_waitpid'
include/libbb.h:931: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wait_any_nohang'
include/libbb.h:940: error: expected ')' before 'pid'
include/libbb.h:1011: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'option_mask32'
include/libbb.h:1012: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getopt32'
include/libbb.h:1056: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xfunc_error_retval'
include/libbb.h:1057: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'die_jmp'
include/libbb.h:1153: warning: 'struct mntent' declared inside parameter list
include/libbb.h:1157: error: expected ')' before 'speed'
include/libbb.h:1158: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tty_value_to_baud'
include/libbb.h:1180: error: expected declaration specifiers or '...' before 'mode_t'
include/libbb.h:1203: error: expected specifier-qualifier-list before 'FILE'
include/libbb.h:1210: error: expected declaration specifiers or '...' before 'FILE'
In file included from include/busybox.h:8,
from applets/applets.c:9:
include/libbb.h:1328: warning: 'struct termios' declared inside parameter list
include/libbb.h:1345: warning: 'struct stat' declared inside parameter list
include/libbb.h:1346: warning: 'struct stat' declared inside parameter list
include/libbb.h:1422: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'read_key'
include/libbb.h:1511: error: expected ')' before 'pid'
include/libbb.h:1515: error: expected specifier-qualifier-list before 'DIR'
include/libbb.h:1593: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:1594: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:1617: error: expected ')' before '*' token
include/libbb.h:1620: error: expected specifier-qualifier-list before 'uint8_t'
include/libbb.h:1628: error: expected specifier-qualifier-list before 'uint64_t'
include/libbb.h:1645: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:1646: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
include/libbb.h:1647: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'crc32_block_endian1'
include/libbb.h:1648: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'crc32_block_endian0'
In file included from applets/applets.c:9:
include/busybox.h:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'applet_nameofs'
include/busybox.h:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'applet_install_loc'
make[1]: *** [applets/applets.o] Error 1
make: *** [applets_dir] Error 2
ubuntu@ubuntu-laptop:~/busybox$
Could you please kindly do the needful in resolving the above errors & compiling the busybox for my android 2.3.3 QSB
Many Thanks in advance,
Srinivasan