[yocto] meta-toolchain uclibc issue

Khem Raj raj.khem at gmail.com
Fri Jun 1 11:07:12 PDT 2012


On Fri, Jun 1, 2012 at 8:01 AM, John Toomey <john.toomey at linux.intel.com> wrote:
> Hello all,
>
> I'm trying to use uClibc and meta-toolchain to compile software for my
> target system. After building and installing the toolchain I get the
> following error when trying to compile:
>
> /toolchain$ $CC hello.c -o hello_after
> /toolchain/poky/1.2/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux-uclibc/../../libexec/i586-poky-linux-uclibc/gcc/i586-poky-linux-uclibc/4.6.4/ld:
> cannot find uclibc_nonshared.a
> collect2: ld returned 1 exit status
>
> but if I include the following Yocto tmp directory
>
> /toolchain$ $CC -o hello hello.c -L
> .../tmp/work/i586-poky-linux-uclibc/uclibc-0.9.33-r6.0/package/usr/lib
>
> everythoing works correctly. Does anyone know why this file isnt included in
> the toolchain package? Is this something im doing wrong or an issue with
> meta-toolchain?

if you are not on master then please cherry-pick below for OE-Core

commit d78ef792ac000637191defa049f197733481733a
Author: Mark Norman <mpnorman at gmail.com>
Date:   Wed Apr 25 20:14:20 2012 +0930

    uclibc SDK not including libpthread_nonshared.a

    Modified the uclibc PACKAGES list order to ensure the uclibc-dev package is
    processed before uclibc-staticdev to allow *_nonshared.a libraries to be
    packaged in the uclibc-dev package.  The *_nonshared.a libraries
are required
    by the SDK.


>
> Thanks,
> John
>
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list