I tried to compile a "Hello World", but an error occurred.
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
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