cross compile on p1010rdb-pb ,collect2: fatal error: cannot find 'ld'

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

cross compile on p1010rdb-pb ,collect2: fatal error: cannot find 'ld'

517 次查看
tcguchengjie
Contributor II


Hello everyone.I want to cross compile a software on my p1010rdb-pb board.I use the yocto v1.8 downloaded from official site.

I use 'sudo make install',compile is well,while there is something wrong with link.

collect2.PNG

However,when I link it by myself,it works.

well.PNG

How can I solve the problem when using 'sudo make install'?Thanks in advance for any help.

0 项奖励
回复
1 回复

448 次查看
yipingwang
NXP TechSupport
NXP TechSupport

As I mentioned in another thread, I suggest you use the standalone toolchain as the following.

$ source /opt/fsl-networking/QorIQ-SDK-V1.8/environment-setup-ppce500v2-fsl-linux-gnuspe

$ ${CC} test.c -o test.out


Have a great day,
Yiping

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

0 项奖励
回复