cannot find crt1.o: No such file or directory

cancel
Showing results for 
Search instead for 
Did you mean: 

cannot find crt1.o: No such file or directory

148 Views
1475849560
Contributor II

I tried to compile a "Hello World", but an error occurred.

)%2P[444R[TA2}`]VA0`)_E.png

root@freescale-sdk:/home/freescale/SDK/nsp# make
powerpc-fsl-linux-gnuspe-gcc test.c -o test.o
/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/i686-fslsdk-linux/usr/bin/powerpc-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-ld: cannot find crt1.o: No such file or directory
/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/i686-fslsdk-linux/usr/bin/powerpc-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-ld: cannot find crti.o: No such file or directory
/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/i686-fslsdk-linux/usr/bin/powerpc-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-ld: cannot find crtbegin.o: No such file or directory
/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/i686-fslsdk-linux/usr/bin/powerpc-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-ld: cannot find -lgcc
/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/i686-fslsdk-linux/usr/bin/powerpc-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-ld: cannot find -lgcc_s
/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/i686-fslsdk-linux/usr/bin/powerpc-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-ld: cannot find -lc
/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/i686-fslsdk-linux/usr/bin/powerpc-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-ld: cannot find -lgcc
/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/i686-fslsdk-linux/usr/bin/powerpc-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-ld: cannot find -lgcc_s
/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/i686-fslsdk-linux/usr/bin/powerpc-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-ld: cannot find crtend.o: No such file or directory
/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/i686-fslsdk-linux/usr/bin/powerpc-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [test] Error 1

 
 

0 Kudos
1 Reply

62 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please download Linux SDK IMAGE ISO from https://www.nxp.com/design/software/embedded-software/linux-software-and-development-tools/linux-sdk...

Please install the script in folder fsl-toolchain in this ISO to install toolchain in /opt/fsl-qoriq/2.0, then execute the following commands to compile hello world program, I assume that you are using e6500 processor.

$ source /opt/fsl-qoriq/2.0/environment-setup-ppce6500-fsl-linux

$ ${CC} hello.c -o hello

0 Kudos