Hi,
I am using the SDK2.0 toolchain to cross-compile Broadcom SDK. I am getting the following error while compiling.
r/gto/libsal_core.a /home/tiju/projects/sdk/LATEST/sdk-xgs-robo-6.5.7/build/unix-user/gto/libsal_core_plat.a /home/tiju/projects/sdk/LATEST/sdk-xgs-robo-6.5.7/build/unix-user/gto/libcustomer.a -Wl,--end-group -static -lnsl -lpthread -lm -lrt -Wl,--relax
/opt/fsl-qoriq/2.0/sysroots/x86_64-fslsdk-linux/usr/libexec/powerpc-fsl-linux/gcc/powerpc-fsl-linux/4.9.2/real-ld: cannot find crt1.o: No such file or directory
/opt/fsl-qoriq/2.0/sysroots/x86_64-fslsdk-linux/usr/libexec/powerpc-fsl-linux/gcc/powerpc-fsl-linux/4.9.2/real-ld: cannot find crti.o: No such file or directory
/opt/fsl-qoriq/2.0/sysroots/x86_64-fslsdk-linux/usr/libexec/powerpc-fsl-linux/gcc/powerpc-fsl-linux/4.9.2/real-ld: cannot find crtbeginT.o: No such file or directory
collect2: error: ld returned 1 exit status
make[1]: *** [/home/tiju/projects/sdk/LATEST/sdk-xgs-robo-6.5.7/build/linux/user/gto/bcm.user.dbg] Error 1
Has anyone come across this or has faced the issue?
Any help is appreciated.
Thanks and Regards,
Tiju
Issue resolved.
Add the following to the Makefile.
export SDKTARGETSYSROOT=/opt/fsl-qoriq/2.0/sysroots/ppce5500-fsl-linux
CFLAGS += --sysroot=${SDKTARGETSYSROOT}