This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Trying to build a toolchain for SH4, failed to compile final GCC
- From: Ian Lance Taylor <iant at google dot com>
- To: SÃbastien GRENIER <sebastien dot grenier7 at free dot fr>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 18 May 2010 07:38:16 -0700
- Subject: Re: Trying to build a toolchain for SH4, failed to compile final GCC
- References: <JGEOIKDNHKDAAGGOPAHLAEHECEAA.sebastien.grenier7@free.fr>
SÃbastien GRENIER <sebastien.grenier7@free.fr> writes:
> /home/sandbox/cdks/test/output/cdk/bin/sh4-unknown-linux-gnu-ld: skipping
> incompatible /lib/libc.so.6 when searching for /lib/libc.so.6
> /home/sandbox/cdks/test/output/cdk/bin/sh4-unknown-linux-gnu-ld: cannot find
> /lib/libc.so.6
If I understand correct, you are trying to build a cross-compiler.
/lib/libc.so.6 is going to be a host library, so you don't want to
link against it. The reference is probably coming from the libc.so
linker script. You probably need to use --sysroot when you run
configure.
Ian