non-header related error compiling gcc

John Gruenenfelder
Tue May 9 12:17:00 GMT 2000

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
"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,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list