[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] broken LD



On Wed, Apr 05, 2000 at 08:10:41PM +0300, Martin-Éric Racine wrote:
> <rakas:>/usr/local/src/net-1.04-2/tool$ make
> gcc -v -O3 -fomit-frame-pointer -fno-defer-pop -m68020 -Wall netstat.o -o netstat ../lib/libsocket.a -liio
> Reading specs from /usr/local/lib/gcc-lib/m68k-atari-mint/2.8.1/specs
> gcc version 2.8.1
>  ld -v -o netstat crt0.o -L/usr/local/lib/gcc-lib/m68k-atari-mint/2.8.1 netstat.o ../lib/libsocket.a -liio -lgnu
> GNU ld version 2.9.1 (with BFD 2.9.1)
> ld: cannot open crt0.o: No such file or directory
> make: *** [netstat] Error 1
> <rakas:>/usr/local/src/net-1.04-2/tool$

I assume that you have fixed your crt0.o problem, right?

Anyway, this output shows another serious problem in your setup: Your gcc
spec file (/usr/local/lib/gcc-lib/m68k-atari-mint/2.8.1/specs) is
obsolete.  The compiler driver still passes -lgnu to the linker and this
libgnu.a isn't used for years now (I think libgnu.a dates from the KGMD
days).  The result is that you actually don't link at all against the
MiNTLib (libc.a).  Unless libgnu.a is a soft link to libc.a (or identical)
that explains a lot of the spurious errors you reported.

Is that gcc spec file really the one that came along with your compiler?
This is really confusing.

Ciao

Guido
-- 
http://stud.uni-sb.de/~gufl0000/
Send your spam to president@whitehouse.gov and your replies to
mailto:guido at freemint dot de