as, cc, ld ... native or cross compiler? crt0.o?
corsepiu at faw.uni-ulm.de
Wed Oct 16 00:50:51 UTC 2002
Am Die, 2002-10-15 um 21.10 schrieb Tito Costa:
> my native compiler works properly.
> The crt0.o it's looking for is maybe the one in
> <crosscompilerpath>/sparc-rtems/lib/crt0.o and
> since the file tools/build-rtems/sparc-rtems/c/make/config.log reports:
> configure:1198: checking for sparc-rtems-gcc
> configure:1242: checking whether the C compiler
> (/home/tcosta/rtems/crosscompiler/bin/sparc-rtems-gcc ) works
> configure:1258: /home/tcosta/rtems/crosscompiler/bin/sparc-rtems-gcc -o
> conftest conftest.c 1>&5
> cpp: -lang-c: linker input file unused since linking not done
> ld: fatal: file crt0.o: open failed: No such file or directory
> configure: failed program was:
> #line 1253 "configure"
> #include "confdefs.h"
> How can I tell the configure script to look into
> I tried with the option --libdir but it didn't work.
There is no way doing so. The path gcc looks into is hard coded into gcc
a configuration time.
> I didn't install the crosscompiler in the default /opt/gcc directory.
OK, the dust is clearing: GCC is non relocatible, i.e. you NUST install
gcc to the prefix it has been configured.
=> If you want to install gcc somewhere else you have to rebuild it from
More information about the users