Le Wed, 7 May 2008 14:58:16 +0800,
"Mike Lee" <[EMAIL PROTECTED]> 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!)

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to