building U-boot failed: cannot find -lgcc

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

building U-boot failed: cannot find -lgcc

846 次查看
183346381
Contributor I

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.

标签 (1)
0 项奖励
1 回复

713 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Hepei

one can try steps described in sect.5.3 Building an image

attached Yocto Guide.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励