This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Trying to build a toolchain for SH4, failed to compile final GCC


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]