2009-04-13 06:40:41     Compiling Error When I remove some commands in BusyBox

Document created by Aaronwu Employee on Aug 14, 2013
Version 1Show Document
  • View in full screen mode

2009-04-13 06:40:41     Compiling Error When I remove some commands in BusyBox

Kai Zhao (CHINA)

Message: 72577   

 

I want to make uClinux image smaller, so I remove some commands in BusyBox such as 'awk','bunzip2' and so on when I made menuconfig.However some errors come up.

 

/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.2/../../../../bfin-uclinux/bin/ld.real: Warning: gc-sections option ignored

applets/built-in.o:(.rodata.applets+0x1c):对‘_awk_main’未定义的引用(undefined reference to '_awk_main')

applets/built-in.o:(.rodata.applets+0x34):对‘_bunzip2_main’未定义的引用(undefined reference to '_bunzip2_main')

applets/built-in.o:(.rodata.applets+0x40):对‘_bunzip2_main’未定义的引用(undefined reference to '_bunzip2_main')

applets/built-in.o:(.rodata.applets+0x4c):对‘_cat_main’未定义的引用(undefined reference to '_cat_main')

applets/built-in.o:(.rodata.applets+0x58):对‘_chgrp_main’未定义的引用(undefined reference to '_chgrp_main')

applets/built-in.o:(.rodata.applets+0x64):对‘_chmod_main’未定义的引用(undefined reference to '_chmod_main')

applets/built-in.o:(.rodata.applets+0x70):对‘_chown_main’未定义的引用(undefined reference to '_chown_main')

applets/built-in.o:(.rodata.applets+0x7c):对‘_chroot_main’未定义的引用(undefined reference to '_chroot_main')

applets/built-in.o:(.rodata.applets+0x94):对‘_cmp_main’未定义的引用(undefined reference to '_cmp_main')

applets/built-in.o:(.rodata.applets+0xac):对‘_cpio_main’未定义的引用(undefined reference to '_cpio_main')

applets/built-in.o:(.rodata.applets+0xc4):对‘_crontab_main’未定义的引用(undefined reference to '_crontab_main')

applets/built-in.o:(.rodata.applets+0xd0):对‘_cut_main’未定义的引用(undefined reference to '_cut_main')

applets/built-in.o:(.rodata.applets+0xe8):对‘_dd_main’未定义的引用(undefined reference to '_dd_main')

applets/built-in.o:(.rodata.applets+0xf4):对‘_df_main’未定义的引用(undefined reference to '_df_main')

applets/built-in.o:(.rodata.applets+0x100):对‘_diff_main’未定义的引用(undefined reference to '_diff_main')

applets/built-in.o:(.rodata.applets+0x10c):对‘_dmesg_main’未定义的引用(undefined reference to '_dmesg_main')

applets/built-in.o:(.rodata.applets+0x118):对‘_du_main’未定义的引用(undefined reference to '_du_main')

applets/built-in.o:(.rodata.applets+0x13c):对‘_expr_main’未定义的引用(undefined reference to '_expr_main')

applets/built-in.o:(.rodata.applets+0x190):对‘_gunzip_main’未定义的引用(undefined reference to '_gunzip_main')

applets/built-in.o:(.rodata.applets+0x19c):对‘_gzip_main’未定义的引用(undefined reference to '_gzip_main')

applets/built-in.o:(.rodata.applets+0x1c0):对‘_id_main’未定义的引用(undefined reference to '_id_main')

applets/built-in.o:(.rodata.applets+0x1fc):对‘_last_main’未定义的引用(undefined reference to '_last_main')

applets/built-in.o:(.rodata.applets+0x220):对‘_logname_main’未定义的引用(undefined reference to '_logname_main')

applets/built-in.o:(.rodata.applets+0x334):对‘_sed_main’未定义的引用(undefined reference to '_sed_main')

applets/built-in.o:(.rodata.applets+0x358):对‘_sleep_main’未定义的引用(undefined reference to '_sleep_main')

applets/built-in.o:(.rodata.applets+0x364):对‘_sort_main’未定义的引用(undefined reference to '_sort_main')

applets/built-in.o:(.rodata.applets+0x37c):对‘_sync_main’未定义的引用(undefined reference to '_sync_main')

applets/built-in.o:(.rodata.applets+0x3a0):对‘_tar_main’未定义的引用(undefined reference to '_tar_main')

applets/built-in.o:(.rodata.applets+0x3ac):对‘_tee_main’未定义的引用(undefined reference to '_tee_main')

applets/built-in.o:(.rodata.applets+0x3c4):对‘_time_main’未定义的引用(undefined reference to '_time_main')

applets/built-in.o:(.rodata.applets+0x3dc):对‘_touch_main’未定义的引用(undefined reference to '_touch_main')

applets/built-in.o:(.rodata.applets+0x3e8):对‘_tr_main’未定义的引用(undefined reference to '_tr_main')

applets/built-in.o:(.rodata.applets+0x400):对‘_tty_main’未定义的引用(undefined reference to '_tty_main')

applets/built-in.o:(.rodata.applets+0x418):对‘_uname_main’未定义的引用(undefined reference to '_uname_main')

applets/built-in.o:(.rodata.applets+0x424):对‘_uniq_main’未定义的引用(undefined reference to '_uniq_main')

applets/built-in.o:(.rodata.applets+0x460):对‘_wc_main’未定义的引用(undefined reference to '_wc_main')

applets/built-in.o:(.rodata.applets+0x478):对‘_whoami_main’未定义的引用(undefined reference to '_whoami_main')

applets/built-in.o:(.rodata.applets+0x49c):对‘_gunzip_main’未定义的引用(undefined reference to '_gunzip_main')

collect2: ld 返回 1

make[3]: *** [busybox_unstripped] 错误 1

make[3]: Leaving directory `/home/zk/project/uClinux-dist-2008R1.5-RC3/user/busybox'

make[2]: *** [busybox] 错误 2

make[2]: Leaving directory `/home/zk/project/uClinux-dist-2008R1.5-RC3/user'

make[1]: *** [all] 错误 2

make[1]: Leaving directory `/home/zk/project/uClinux-dist-2008R1.5-RC3/user'

make: *** [subdirs] 错误 1

 

 

How should solve this problem? I'll be grateful for your help!

 

Thanks!

TranslateQuoteReplyEditDelete

 

 

2009-04-13 07:09:14     Re: Compiling Error When I remove some commands in BusyBox

Mike Frysinger (UNITED STATES)

Message: 72580   

 

you need to clean the busybox dir after changing its configuration

 

make user/busybox_clean

QuoteReplyEditDelete

 

 

2009-04-13 09:37:05     Re: Compiling Error When I remove some commands in BusyBox

Kai Zhao (CHINA)

Message: 72591   

 

Thanks for your help ! You said it.I have solved the problem.

Attachments

    Outcomes