i386-coff linker problems
flo
florian.zimmermann@cse.de
Tue Aug 14 03:48:00 GMT 2001
Am Dienstag, 14. August 2001 12:27 schrieben Sie:
> >-----Original Message-----
>
> From: flo [ mailto:florian.zimmermann@cse.de ]
>
> >Sent: 14 August 2001 11:19
> >
> >
> >YIPPEE!!!
> >
> >I installed newlib-1.9.0 with make all install and all went fine...
> >
> >but i still cannot get an executable file:
> >
> ># ./i386-coff-gcc bla.c
> >/bar/i386-coff/bin/ld: cannot open crt0.o: File not found
> >collect2: ld returned 1 exit status
> >
> >the object file is compiled but the linker needs the crt0.o
> >a find /path_to_newlib/ -name crt0*
> >gives many instances of crt0.c and crt0.S files.
> >
> >but how can i compile 'em and which archive they belong to?
>
> That should have happened when you did the make all install for newlib,
> assuming you also configured it first :)
>
> Did you also remember to use the same --prefix=/bar when you configured
> newlib ?
>
> DaveK
ok i tried once again:
rm -r newlib-1.9.0
tar xfz newlib-1.9.0.tar.gz
cd build_newlib
rm -r *
../newlib-1.9.0/configure --target=i386-coff --prefix=/bar
make all install
cd ../build_gcc
make all install
all ok
newlib built the libc.a and libg.a just fine
perhaps i forgot some ENVIRONMENT for compiling with the new cross-compiler?
in which library is the crt0.o built in?
is make all install sufficient with newlib?
how can i ensure i386-coff-gcc uses the libc.a in the /bar/i386-coff
directory?
thx again,
flo
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list