Can't find crt*.o

Moreno Moreno.Mauri@italtel.it
Thu May 24 02:16:00 GMT 2001


Hy everyone,
I've built a cross-compiler for target alpha-elf-linux
on a host machine alpha-dec-osf in this way:
Binutils
-------
../binutils-2.10/configure
--target=alpha-elf-linux
--prefix=<INSTALL-DIR>
--enable-languages="c"
GCC
-----
../gcc-2.95.2/configure
--target=alpha-elf-linux
--prefix=<INSTALL-DIR>
--enable-languages="c"
--with-gnu-as
--with-gnu-ld
--with-as=<INSTALL-DIR>/bin/alpha-elf-linux-ar
--with-ld=<INSTALL-DIR>/bin/alpha-elf-linux-ld
--with-headers=/ALINRH70/usr/include
--with-libs=/ALINRH70/usr/lib
In /ALINRH70/.... I've copied includes, crt*.o and libraries taken from
target machine.
Binutils and xgcc was created without any problems but when I try to
run xgcc I have the
following output:
<INSTALL-DIR>/bin/alpha-elf-linux-ld  cannot open crt1.o.
The same problem there is for libraries (xgcc searches for them directly
in /lib/... where
there are host libraries, not target ones).
I think that ld doesn't search for crt* and libraries in the
directory specified by
option --with-libs :-(
Could anyone tell me if this is the right answer and how can I solve
this problem ?
Many Thanks,
Moreno
 
 
 



More information about the crossgcc mailing list