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]

Re: solaris -> arm-linux cross compiler: cannot open crt1.o


Håvard Wigtil wrote:
> 
> Hi!
> 
> I'm trying to set up an arm-linux compiler with a sparc-solaris host. I've
> set up binutils without problems, but when I try to compile gcc it stops
> when configure'ing in arm-linux/libiberty with a message that states that
> "C compiler cannot create executables".

How did you configure your compiler? 

How did you invoke make?

> Included below are the last lines con config.log in that directory. It
> seems the error is that the linker can't find "crt1.o". From what I
> understand crt1.o is a part of glibc, does that mean that I must have a
> glibc installed to create a cross compiler?

No.  You build a bootstrap compiler and use it to build glibc.

> 
> Or is there something else I should do?
> 
> I've used the "-Dinhibit_libc hack" as suggested by the arm-linux
> toolchain FAQ at
> http://www.armlinux.org/docs/toolchain/toolchHOWTO/x183.html#DIN
> 
> ---------------------------------------------------------------------------
> configure:1749: checking whether the C compiler
> (/home/hades/b/ifi-hf/havardw/armlinux/build/gcc-2.95.3/gcc/xgcc
> -B/home/hades/b/ifi-hf/hava
> rdw/armlinux/build/gcc-2.95.3/gcc/
> -B/home/hades/b/ifi-hf/havardw/armlinux/arm-linux/bin/ -g -O2 ) works
> configure:1765:
> /home/hades/b/ifi-hf/havardw/armlinux/build/gcc-2.95.3/gcc/xgcc
> -B/home/hades/b/ifi-hf/havardw/armlinux/build/gcc-2.95.3/gcc
> / -B/home/hades/b/ifi-hf/havardw/armlinux/arm-linux/bin/ -o conftest -g
> -O2   conftest.c  1>&5
> /home/hades/b/ifi-hf/havardw/armlinux/arm-linux/bin/ld: cannot open
> crt1.o: No such file or directory
> collect2: ld returned 1 exit status
> configure: failed program was:
> 
> #line 1760 "configure"
> #include "confdefs.h"
> 
> main(){return(0);}
> -----------------------------------------------------------------------------
> 
>   tia,  Håvard
> --
> mailto:havardw@stud.ntnu.no||http://www.stud.ntnu.no/~havardw||73 52 55 76
>  All it takes to start an avalanche is a single snowflake||Or a snowboarder
>         Oh! Un Fraggle! Regarde, maman! J'ai attrapé un Fraggle!
> 
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

--
Michael Eager     eager@mvista.com	408-328-8426	
MontaVista Software, Inc. 1237 E. Arques Ave., Sunnyvale, CA  94085

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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