On Oct 30, 2013 7:21 AM, "Grissiom" <chaos.pro...@gmail.com> wrote: > > On Wed, Oct 30, 2013 at 1:05 PM, Khem Raj <raj.k...@gmail.com> wrote: > > > On Tue, Oct 29, 2013 at 7:59 PM, Grissiom <chaos.pro...@gmail.com> wrote: > > > Hi all, > > > > > > I'm developing on BBB and I'm new to Angstrom. I have build a toolchain > > > with the angstrom-v2013.06-yocto1.4 branch of setup-scripts ( > > > https://github.com/Angstrom-distribution/setup-scripts/ ) using `bitbake > > > meta-toolchain`. But when I want to use the toolchain to cross compile a > > > program statically, I got an error: > > > > > > arm-angstrom-linux-gnueabi-gcc -std=gnu99 -static > > > > > --sysroot=/home/grissiom/x-tools/angstrom-toolchain//sysroots/armv7ahf-vfp-neon-angstrom-linux-gnueabi > > > tests/vbus_ser.c -o vbus_ser > > > > > /home/grissiom/x-tools/angstrom-toolchain/sysroots/i686-angstromsdk-linux/usr/bin/armv7ahf-vfp-neon-angstrom-linux-gnueabi/../../libexec/armv7ahf-vfp-neon-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.7.4/ld: > > > cannot find -lc > > > collect2: error: ld returned 1 exit status > > > > > > I could only find the libc.so in the sysroot but no libc.a. Is there > > anyway > > > to let the toolchain install static libs? > > > > > > > try adding > > > > IMAGE_FEATURES += "staticdev-pkgs" to local.conf and rebuild the SDK > > and see if that helps > > > > > No, that doesn't help. Still could not find -lc. I did `find -name libc.a` > in build/tmp-angstrom_v2013_06-eglibc/sysroots and I found: > > ./i686-nativesdk-angstromsdk-linux/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/lib/libc.a > ./i686-nativesdk-angstromsdk-linux/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/include/eglibc-locale-internal-i686-nativesdk-angstromsdk-linux/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/lib/libc.a > ./beaglebone/usr/lib/libc.a > ./beaglebone/usr/include/eglibc-locale-internal-armv7ahf-vfp-neon-angstrom-linux-gnueabi/usr/lib/libc.a > > But deploy/sdk/angstrom-eglibc-i686-armv7ahf-vfp-neon-v2013.06-toolchain.shdoes > not have those files. > > Any hints? > > -- > Cheers, > Grissiom > _______________________________________________ > Angstrom-distro-devel mailing list > Angstrom-distro-devel@linuxtogo.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Instead of meta-toolchain, bitbake your image with -c populate_sdk which should put the static stuff in your image and in the sysroot that is packaged with the toolchain. Don't know that this will solve your issue but it is easy to try. Regards, Brian _______________________________________________ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel