AnsweredAssumed Answered

building U-boot failed: cannot find -lgcc

Question asked by Hepei Li on Dec 13, 2019
Latest reply on Dec 13, 2019 by igorpadykov



I'm following the BSP Porting Guide and created the u-boot building script:



export ARCH=arm

export CROSS_COMPILE=/opt/poky/1.8.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-

make distclean;

make mx6qp_TXL10_defconfig



when I try to use the script to build the u-boot, an error occurred:


/opt/poky/1.8.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld.bfd: cannot find -lgcc
examples/standalone/Makefile:67: recipe for target 'examples/standalone/hello_world' failed
make[2]: *** [examples/standalone/hello_world] Error 1
scripts/ recipe for target 'examples/standalone' failed
make[1]: *** [examples/standalone] Error 2
Makefile:1145: recipe for target 'examples' failed
make: *** [examples] Error 2


Does anyone can help me figure this out? Thanks.