[Scratchbox-users] Does scratchbox come with non-eabi toolchain?

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu May 8 12:22:09 EEST 2008


Le Wed, 7 May 2008 14:58:16 +0800,
"Mike Lee" <eemike at gmail.com> a écrit :

> After i compile the crosstool and scratchbox-toolchain-extras, i can
> not use gcc and have this error
> /scratchbox/compilers/gcc-3.4.5-glibc-2.3.2/bin/sbox-arm-unknown-linux-gnu-gcc:
> /scratchbox/host_shared/lib/libc.so.6: version `GLIBC_2.4' not found
> (required by
> /scratchbox/compilers/gcc-3.4.5-glibc-2.3.2/bin/sbox-arm-unknown-linux-gnu-gcc)
> 
> I have tried to remove /lib/libc-2.3.2.so, but i still get that error
> msg. Do you have any idea on this?

I suspect that you compiled your toolchain *outside* of Scratchbox and
that you are later trying to integrate inside Scratchbox using
scratchbox-toolchain-extras. It cannot work because the toolchain built
outside of Scratchbox is built against your host'libc (probably very
recent), but once you try to run your toolchain inside Scratchbox, it
has to run with Scratchbox's libc (which is older).

The easiest way is to compile your toolchain inside Scratchbox (i.e run
crosstool inside Scratchbox), so that your toolchain is compiled
against Scratchbox's glibc.

See:
 http://lists.scratchbox.org/pipermail/scratchbox-users/2006-November/000781.html
 http://lists.scratchbox.org/pipermail/scratchbox-users/2006-November/000782.html
 http://lists.scratchbox.org/pipermail/scratchbox-users/2008-March/001196.html

Sincerly,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Free Embedded Linux Training Materials
on http://free-electrons.com/training
(More than 1500 pages!)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.scratchbox.org/pipermail/scratchbox-users/attachments/20080508/b3fbcd07/signature.pgp


More information about the Scratchbox-users mailing list