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]

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



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".

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?

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


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