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


On Mon, 21 May 2001, Michael Eager wrote:

> 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?

This is my configure line:

/bin/bash ../../src/gcc-2.95.3/configure --target=$TARGET --prefix=$PREFIX \
        --enable-languages=c --disable-threads \
        --with-headers=$TARGET_PREFIX/include

In addition, I've added "-Dinhibit_libc -D__gthr_posix_h" to
TARGET_LIBGCC2_CFLAGS in gcc/config/arm/t-linux.

Then I just evoke make with "make". Make version is GNU Make 3.79.1.

I tried to compile with gcc-core (which I discovered in the meantime), and
then Gcc compiles without errors. But I still can't use it to compile
Glibc, which was my original problem.

(Glibc configure says
-----------------------------------------------------------------------
configure:1672: checking whether the C compiler (arm-linux-gcc  ) works
configure:1691: arm-linux-gcc -o conftest    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 1686 "configure"
#include "confdefs.h"

main(){return(0);}
-----------------------------------------------------------------------
)

    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]