[yocto] SDK generation issue

Jim Rafert jimr at spectralogic.com
Tue Mar 3 09:55:54 PST 2015


Try doing:

${CC} test.c

This will invoke the cross compiler with all the compilation flags required to produce
an executable for the target, using libraries on the target root file system.



________________________________________
From: Raghavendra Kakarla [Raghavendra.Kakarla at inedasystems.com]
Sent: Monday, March 02, 2015 10:41 PM
To: Paul Eggleton
Cc: yocto at yoctoproject.org
Subject: [yocto] SDK generation issue

Hi Paul Eggleton,
Thanks for your help in the solving the issue for adding the bsp to yocto.
Now I am working on the yocto sdk generation.

I am generated the yocto SDK using the yocto sdk script "bitbake core-image-minimal -c populate_sdk" command. With this command I am able to generte the installation script file and .manifest file.

I run the installation script file. After running installation script file it propts that following message:

Extracting SDK...done
Setting it up...done
SDK has been successfully set up and is ready to be used.


After this i run the ". /opt/poky/1.7/environment-setup-mips32rel-poky-linux" and echo $PATH i got the correct path.

After this i built wrote a small example and try to build with the sdk generated toolchain by running following command:

mipsel-poky-linux-gcc test.c

but i got the following errors:
**************************************************************************************************************************************************
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/mipsel-poky-linux/gcc/mipsel-poky-linux/4.9.1/ld: cannot find crt1.o: No such file or directory
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/mipsel-poky-linux/gcc/mipsel-poky-linux/4.9.1/ld: cannot find crti.o: No such file or directory
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/mipsel-poky-linux/gcc/mipsel-poky-linux/4.9.1/ld: cannot find crtbegin.o: No such file or directory
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/mipsel-poky-linux/gcc/mipsel-poky-linux/4.9.1/ld: cannot find -lgcc
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/mipsel-poky-linux/gcc/mipsel-poky-linux/4.9.1/ld: cannot find -lgcc_s
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/mipsel-poky-linux/gcc/mipsel-poky-linux/4.9.1/ld: cannot find -lc
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/mipsel-poky-linux/gcc/mipsel-poky-linux/4.9.1/ld: cannot find -lgcc
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/mipsel-poky-linux/gcc/mipsel-poky-linux/4.9.1/ld: cannot find -lgcc_s
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/mipsel-poky-linux/gcc/mipsel-poky-linux/4.9.1/ld: cannot find crtend.o: No such file or directory
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/mipsel-poky-linux/gcc/mipsel-poky-linux/4.9.1/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status

***********************************************************************************************************************************************************
Please help me to resolving this issue.

Thanks in advance.

Cheers,

Raghavendra Kakarla.



More information about the yocto mailing list