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

Hi,

 

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

 

#!/bin/bash

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

make

 

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/Makefile.build:421: 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.

Outcomes