[yocto] Build core-image-minimal with EXTERNAL TOOLCHAIN failed

Joey Lee lee.changil at gmail.com
Mon Dec 10 22:14:36 PST 2012


Hello all.

I'm trying to build core-image-minimal with external toolchain (
codesourcery).

I added meta, meta-yocto, meta-yocto-bsp to my bblayer.conf and also added
below lines to local.conf

TCMODE := "external-csl"
EXTERNAL_TOOLCHAIN := "/opt/armv7/codesourcery/"

After running bitbake core-image-minimal, I've got several error messages
starting from below lines,

ERROR: Multiple .bb files are due to be built which each provide
virtual/libc (/home/joey/work/y/poky/meta/recipes-core/eglibc/eglibc_2.16.bb/home/joey/work/y/poky/meta/recipes-core/meta/
external-sourcery-toolchain.bb).
 This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide
virtual/arm-none-linux-gnueabi-libc-for-gcc
(/home/joey/work/y/poky/meta/recipes-core/eglibc/eglibc_2.16.bb/home/joey/work/y/poky/meta/recipes-core/meta/
external-sourcery-toolchain.bb).
 This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide
virtual/libiconv (/home/joey/work/y/poky/meta/recipes-core/eglibc/
eglibc_2.16.bb /home/joey/work/y/poky/meta/recipes-core/meta/
external-sourcery-toolchain.bb).
 This usually means one provides something the other doesn't and should.

And I got bunch of "ERROR: QA Issue: No GNU_HASH in the elf binary"
messages too.

I've also tried to add PREFERRED_PROVIDER_virtual/libc =
"external-sourcery-toolchain" to my local.conf but the error message still
shows.

Do you have any comments about building image with sourcery toolchain?

Below is the version info of each software.
======================================================================
bitbake --version
BitBake Build Tool Core version 1.16.0, bitbake version 1.16.0
======================================================================
poky
git log -1
commit 27af23e65f63b41962a7cfddba9e9372d5212396
Author: Scott Rifenbark <scott.m.rifenbark at intel.com>
Date:   Mon Oct 22 14:22:09 2012 -0700

    documentation: yocto-project-qs - Final changes before the 1.3 lockdown

    Fixed used of "Source Directory" and Build Directory.

    (From yocto-docs rev: a4d79c5a7e73003fc99c274d876fbea453a80d20)

    Signed-off-by: Scott Rifenbark <scott.m.rifenbark at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
======================================================================
arm-none-linux-gnueabi-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with:
/scratch/julian/2010q1-release-linux-lite/src/gcc-4.4-2010q1/configure
--build=i686-pc-linux-gnu --host=i686-pc-linux-gnu
--target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap
--disable-libssp --disable-libstdcxx-pch --enable-extra-sgxxlite-multilibs
--with-arch=armv5te --with-gnu-as --with-gnu-ld
--with-specs='%{funwind-tables|fno-unwind-tables|mabi=*|ffreestanding|nostdlib:;:-funwind-tables}
%{O2:%{!fno-remove-local-statics: -fremove-local-statics}}
%{O*:%{O|O0|O1|O2|Os:;:%{!fno-remove-local-statics:
-fremove-local-statics}}}' --enable-languages=c,c++ --enable-shared
--disable-lto --enable-symvers=gnu --enable-__cxa_atexit
--with-pkgversion='Sourcery G++ Lite 2010q1-202' --with-bugurl=
https://support.codesourcery.com/GNUToolchain/ --disable-nls
--prefix=/opt/codesourcery
--with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc
--with-build-sysroot=/scratch/julian/2010q1-release-linux-lite/install/arm-none-linux-gnueabi/libc
--with-gmp=/scratch/julian/2010q1-release-linux-lite/obj/host-libs-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr
--with-mpfr=/scratch/julian/2010q1-release-linux-lite/obj/host-libs-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr
--with-ppl=/scratch/julian/2010q1-release-linux-lite/obj/host-libs-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
--with-cloog=/scratch/julian/2010q1-release-linux-lite/obj/host-libs-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr
--disable-libgomp --enable-poison-system-directories
--with-build-time-tools=/scratch/julian/2010q1-release-linux-lite/install/arm-none-linux-gnueabi/bin
--with-build-time-tools=/scratch/julian/2010q1-release-linux-lite/install/arm-none-linux-gnueabi/bin
Thread model: posix
gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202)
======================================================================

Best regards,
Joey.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20121211/5f09d68c/attachment.html>


More information about the yocto mailing list