This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Can't find crt*.o


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
 
 
 


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