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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

599件の閲覧回数
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 返信

530件の閲覧回数
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 件の賞賛
返信