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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

491 Views
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 Kudos
Reply
1 Reply

422 Views
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 Kudos
Reply