This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: problems compiling 2.95.3
Alexandre Oliva <aoliva@redhat.com> writes:
> On Apr 25, 2001, Nick Papadonis <npapadon@yahoo.com> wrote:
>
> > The problem appears to be in the $(ARCH)/libio directory. It can't
> > find certain header files.
>
> You need newlib.
>
Ok... after a bunch of Makefile.in header search hacks and installing
newlib headers, I have most of
gcc compiling.
In m68k-coff/libchill I get the following error in config.log:
----
configure:562: checking if compiler cc1chill has been built
configure:593: checking for gcc
configure:706: checking whether the C compiler (/home/nick/build/gcc-2.95.3-buil
d/gcc/xgcc -B/home/nick/build/gcc-2.95.3-build/gcc/ -B/usr/local/m68k-coff/m68k-
coff/bin/ -g -O2 ) works
configure:722: /home/nick/build/gcc-2.95.3-build/gcc/xgcc -B/home/nick/build/gcc
-2.95.3-build/gcc/ -B/usr/local/m68k-coff/m68k-coff/bin/ -o conftest -g -O2 co
nftest.c 1>&5
/usr/local/m68k-coff/m68k-coff/bin/ld: cannot open crt0.o: No such file or direc
tory
collect2: ld returned 1 exit status
configure: failed program was:
#line 717 "configure"
#include "confdefs.h"
main(){return(0);}
----
It appears that I don't have a startup file. I don't really need
crt0.o and want to include it only when I compile for the target. Is
there a way to take this out of the generic linker script? Should I have
installed the 'newlib' source under the gcc-2.x directory tree? I
just copied the headers into gcc-2.x/include.
Any ideas much appreciated.
--
- Nick