This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


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

non-header related error compiling gcc


Following the crossgcc FAQ, and some hacks I found on this list, I am getting
close to compiling gcc for a m68k-coff target.

Late into the compilation, the building attempts to configure libiberty and
fails.  The configure script finds xgcc, and tests it with -g and -E.  Later:

checking whether the C compiler (/d2/johng/m68k/cross/build_gcc/gcc/xgcc
-B/d2/johng/m68k/cross/build_gcc/gcc/ -B/d2/johng/m68k/m68k-coff/bin/ -g -O2
) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.

And there it dies.  The error in the log is:

configure:1765: /d2/johng/m68k/cross/build_gcc/gcc/xgcc
-B/d2/johng/m68k/cross/build_gcc/gcc/ -B/d2/johng/m68k/m68k-coff/bin/ -o
conftest -g -O2   conftest.c  1>&5
/d2/johng/m68k/m68k-coff/bin/ld: cannot open crt0.o: No such file or directory
collect2: ld returned 1 exit status

Digging around, I see that crt0 is included in newlib.  But, I've not yet
compiled that.  So, how do I proceed from here?  Is it possible that I should
have used some additional switches when configuring gcc?  I only used --prefix
and --target.


--John Gruenenfelder    Research Assistant, Steward Observatory, U of Arizona
Elrond, Duke of URL     http://www.azstarnet.com/~elrond
elrond@azstarnet.com    johng@bach.as.arizona.edu
"This is the most fun I've had without being drenched in the blood
of my enemies!"
        --Sam of Sam & Max


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