2011-06-13 11:05:54     please help about u-boot compile :cann't find -lgcc

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

2011-06-13 11:05:54     please help about u-boot compile :cann't find -lgcc

kevin zou (UNITED STATES)

Message: 101229   

 

HOST:fedra 10

 

/opt/uClinux/bfin-uclinux/bin/../bfin-uclinux/bin/ld.real:找不到 -lgcc

 

 

what can i do?please help~

 

[root@localhost u-boot-2010.06-2010R1-RC2]# bfin-uclinux-ld -v

argv[0]      = 'bfin-uclinux-ld'

bindir       = '/opt/uClinux/bfin-uclinux/bin/'

tooldir      = '/opt/uClinux/bfin-uclinux/bin/../bfin-uclinux/bin/'

linker       = '/opt/uClinux/bfin-uclinux/bin/../bfin-uclinux/bin/ld.real'

elf2flt      = '/opt/uClinux/bfin-uclinux/bin/../bfin-uclinux/bin/elf2flt'

nm           = '/opt/uClinux/bfin-uclinux/bin/../bfin-uclinux/bin/nm'

objdump      = '/opt/uClinux/bfin-uclinux/bin/bfin-uclinux-objdump'

objcopy      = '/opt/uClinux/bfin-uclinux/bin/bfin-uclinux-objcopy'

ldscriptpath = '/opt/uClinux/bfin-uclinux/bin/../bfin-uclinux/bin/../lib'

Invoking: '/opt/uClinux/bfin-uclinux/bin/../bfin-uclinux/bin/ld.real' '-v'

GNU ld 版本 2.17

 

 

thank you!

TranslateQuoteReplyEditDelete

 

 

2011-06-13 11:14:21     Re: please help about u-boot compile :cann't find -lgcc

Mike Frysinger (UNITED STATES)

Message: 101230   

 

please post the actual output from the u-boot build process

 

make sure you've installed all the required toolchain packages as documented:

http://docs.blackfin.uclinux.org/doku.php?id=toolchain:installing

QuoteReplyEditDelete

 

 

2011-06-13 11:20:22     Re: please help about u-boot compile :cann't find -lgcc

kevin zou (UNITED STATES)

Message: 101231   

 

Dear Mike:

 

[root@localhost u-boot-2010.06-2010R1-RC2]# make all

Makefile:3545: 警告:覆盖关于目标“BF531_config”的命令

Makefile:3542: 警告:忽略关于目标“BF531_config”的旧命令

for dir in tools  arch/blackfin/cpu arch/blackfin/lib/ ; do \

   make -C $dir _depend ; done

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/tools'

make[1]: Nothing to be done for `_depend'.

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/tools'

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/arch/blackfin/cpu'

make[1]: Nothing to be done for `_depend'.

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/arch/blackfin/cpu'

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/arch/blackfin/lib'

make[1]: Nothing to be done for `_depend'.

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/arch/blackfin/lib'

make -C tools all

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/tools'

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/tools'

make -C arch/blackfin/cpu start.o

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/arch/blackfin/cpu'

make[1]: “start.o”是最新的。

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/arch/blackfin/cpu'

make -C lib/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/lib'

make[1]: “libgeneric.a”是最新的。

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/lib'

make -C lib/lzma/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/lib/lzma'

make[1]: “liblzma.a”是最新的。

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/lib/lzma'

make -C lib/lzo/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/lib/lzo'

bfin-uclinux-ar crv liblzo.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/lib/lzo'

make -C arch/blackfin/cpu/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/arch/blackfin/cpu'

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/arch/blackfin/cpu'

make -C arch/blackfin/lib/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/arch/blackfin/lib'

make[1]: “libblackfin.a”是最新的。

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/arch/blackfin/lib'

make -C fs/cramfs/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/fs/cramfs'

bfin-uclinux-ar crv libcramfs.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/fs/cramfs'

make -C fs/fat/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/fs/fat'

bfin-uclinux-ar crv libfat.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/fs/fat'

make -C fs/fdos/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/fs/fdos'

bfin-uclinux-ar crv libfdos.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/fs/fdos'

make -C fs/jffs2/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/fs/jffs2'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/fs/jffs2'

make -C fs/reiserfs/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/fs/reiserfs'

bfin-uclinux-ar crv libreiserfs.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/fs/reiserfs'

make -C fs/ext2/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/fs/ext2'

bfin-uclinux-ar crv libext2fs.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/fs/ext2'

make -C fs/yaffs2/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/fs/yaffs2'

bfin-uclinux-ar crv libyaffs2.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/fs/yaffs2'

make -C fs/ubifs/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/fs/ubifs'

bfin-uclinux-ar crv libubifs.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/fs/ubifs'

make -C net/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/net'

bfin-uclinux-ar crv libnet.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/net'

make -C disk/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/disk'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/disk'

make -C drivers/bios_emulator/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/bios_emulator'

bfin-uclinux-ar crv libatibiosemu.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/bios_emulator'

make -C drivers/block/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/block'

bfin-uclinux-ar crv libblock.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/block'

make -C drivers/dma/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/dma'

bfin-uclinux-ar crv libdma.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/dma'

make -C drivers/fpga/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/fpga'

bfin-uclinux-ar crv libfpga.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/fpga'

make -C drivers/gpio/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/gpio'

bfin-uclinux-ar crv libgpio.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/gpio'

make -C drivers/hwmon/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/hwmon'

bfin-uclinux-ar crv libhwmon.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/hwmon'

make -C drivers/i2c/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/i2c'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/i2c'

make -C drivers/input/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/input'

bfin-uclinux-ar crv libinput.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/input'

make -C drivers/misc/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/misc'

bfin-uclinux-ar crv libmisc.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/misc'

make -C drivers/mmc/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/mmc'

bfin-uclinux-ar crv libmmc.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/mmc'

make -C drivers/mtd/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/mtd'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/mtd'

make -C drivers/mtd/nand/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/mtd/nand'

bfin-uclinux-ar crv libnand.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/mtd/nand'

make -C drivers/mtd/onenand/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/mtd/onenand'

bfin-uclinux-ar crv libonenand.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/mtd/onenand'

make -C drivers/mtd/ubi/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/mtd/ubi'

bfin-uclinux-ar crv libubi.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/mtd/ubi'

make -C drivers/mtd/spi/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/mtd/spi'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/mtd/spi'

make -C drivers/net/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/net'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/net'

make -C drivers/net/phy/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/net/phy'

bfin-uclinux-ar crv libphy.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/net/phy'

make -C drivers/pci/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/pci'

bfin-uclinux-ar crv libpci.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/pci'

make -C drivers/pcmcia/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/pcmcia'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/pcmcia'

make -C drivers/power/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/power'

bfin-uclinux-ar crv libpower.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/power'

make -C drivers/spi/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/spi'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/spi'

make -C drivers/rtc/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/rtc'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/rtc'

make -C drivers/serial/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/serial'

bfin-uclinux-ar crv libserial.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/serial'

make -C drivers/twserial/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/twserial'

bfin-uclinux-ar crv libtws.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/twserial'

make -C drivers/usb/gadget/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/usb/gadget'

bfin-uclinux-ar crv libusb_gadget.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/usb/gadget'

make -C drivers/usb/host/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/usb/host'

bfin-uclinux-ar crv libusb_host.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/usb/host'

make -C drivers/usb/musb/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/usb/musb'

bfin-uclinux-ar crv libusb_musb.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/usb/musb'

make -C drivers/usb/phy/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/usb/phy'

bfin-uclinux-ar crv libusb_phy.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/usb/phy'

make -C drivers/video/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/video'

bfin-uclinux-ar crv libvideo.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/video'

make -C drivers/watchdog/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/watchdog'

bfin-uclinux-ar crv libwatchdog.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/drivers/watchdog'

make -C common/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/common'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/common'

make -C lib/libfdt/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/lib/libfdt'

bfin-uclinux-ar crv libfdt.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/lib/libfdt'

make -C api/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/api'

bfin-uclinux-ar crv libapi.a

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/api'

make -C post/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/post'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/post'

make -C board/BF531/

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/board/BF531'

make[1]: “libBF531.a”是最新的。

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/board/BF531'

make -C arch/blackfin/lib/ u-boot.lds.S

make[1]: Entering directory `/opt/u-boot-2010.06-2010R1-RC2/arch/blackfin/lib'

make[1]: Nothing to be done for `u-boot.lds.S'.

make[1]: Leaving directory `/opt/u-boot-2010.06-2010R1-RC2/arch/blackfin/lib'

bfin-uclinux-gcc -E -g  -Os   -ffixed-P3 -fomit-frame-pointer -mno-fdpic -ffunction-sections -fdata-sections -mcpu=bf531-0.5 -D__KERNEL__ -I/opt/u-boot-2010.06-2010R1-RC2/include -fno-builtin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_BLACKFIN -include /opt/u-boot-2010.06-2010R1-RC2/include/u-boot/u-boot.lds.h  -ansi -D__ASSEMBLY__ -P - <arch/blackfin/lib/u-boot.lds.S >u-boot.lds

UNDEF_SYM=`bfin-uclinux-objdump -x board/BF531/libBF531.a lib/libgeneric.a lib/lzma/liblzma.a lib/lzo/liblzo.a arch/blackfin/cpu/libblackfin.a arch/blackfin/lib/libblackfin.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a fs/ubifs/libubifs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/onenand/libonenand.a drivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.a drivers/net/libnet.a drivers/net/phy/libphy.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/power/libpower.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/twserial/libtws.a drivers/usb/gadget/libusb_gadget.a drivers/usb/host/libusb_host.a drivers/usb/musb/libusb_musb.a drivers/usb/phy/libusb_phy.a drivers/video/libvideo.a drivers/watchdog/libwatchdog.a common/libcommon.a lib/libfdt/libfdt.a api/libapi.a post/libpost.a | sed  -n -e 's/.*\(___u_boot_cmd_.*\)/-u\1/p'|sort|uniq`; cd /opt/u-boot-2010.06-2010R1-RC2 && bfin-uclinux-ld --gc-sections -m elf32bfin -Bstatic -T u-boot.lds  $UNDEF_SYM arch/blackfin/cpu/start.o --start-group lib/libgeneric.a lib/lzma/liblzma.a lib/lzo/liblzo.a arch/blackfin/cpu/libblackfin.a arch/blackfin/lib/libblackfin.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a fs/ubifs/libubifs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/onenand/libonenand.a drivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.a drivers/net/libnet.a drivers/net/phy/libphy.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/power/libpower.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/twserial/libtws.a drivers/usb/gadget/libusb_gadget.a drivers/usb/host/libusb_host.a drivers/usb/musb/libusb_musb.a drivers/usb/phy/libusb_phy.a drivers/video/libvideo.a drivers/watchdog/libwatchdog.a common/libcommon.a lib/libfdt/libfdt.a api/libapi.a post/libpost.a board/BF531/libBF531.a --end-group -L . -lgcc -Map u-boot.map -o u-boot

/opt/uClinux/bfin-uclinux/bin/../bfin-uclinux/bin/ld.real:找不到 -lgcc

make: *** [u-boot] 错误 1

 

 

I have installed blackfin-toolchain and blackfin-toolchain-elf-gcc

TranslateQuoteReplyEditDelete

 

 

2011-06-13 11:29:29     Re: please help about u-boot compile :cann't find -lgcc

kevin zou (UNITED STATES)

Message: 101233   

 

[root@localhost u-boot-2010.06-2010R1-RC2]# $PATH

bash: /opt/uClinux/bfin-linux-uclibc/bin/:/opt/uClinux/bfin-elf/bin/:/opt/uClinux/bfin-uclinux/bin/:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/root/bin: 没有那个文件或目录

[root@localhost u-boot-2010.06-2010R1-RC2]#

 

this is my PATH

TranslateQuoteReplyEditDelete

 

 

2011-06-17 01:23:59     Re: please help about u-boot compile :cann't find -lgcc

Mike Frysinger (UNITED STATES)

Message: 101332   

 

if those are the only two packages you installed, you did not properly install things as you need more packages.  please read the documentation:

http://docs.blackfin.uclinux.org/doku.php?id=toolchain:installing

QuoteReplyEditDelete

Attachments

    Outcomes