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

Re: ld problem



On Wed, May 10, 2000 at 08:42:44PM -0400, Christopher C. Chimelis wrote:

> Hmmm...yeah, I noticed that.  It shouldn't be that way...check to make
> sure that /usr/bin/ld and /usr/bin/as exist.  It could be that gcc is
> trying to use Compaq's versions of gas and ld, which may be incompatible
> for some reason or another...
> 
> It's the link that's worrying me...

I'm fairly sure that gcc is not calling the Compaq linker. The errors
are reported as coming from collect2.

You're right in terms of the link being the problem. I just tried the
following:

leopard:~% gcc -g -Wall -c ctest.c
leopard:~% /usr/bin/ld -m elf64alpha -O1 -dynamic-linker /lib/ld-linux.so.2 -o ctest /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/gcc-lib/alpha-linux/2.95.2/crtbegin.o -L/usr/lib/gcc-lib/alpha-linux/2.95.2 ctest.o -lgcc -lc -lgcc /usr/lib/gcc-lib/alpha-linux/2.95.2/crtend.o /usr/lib/crtn.o
leopard:~% ./ctest
Hello, World!
arguments: ./ctest

Works like a charm. So, is this my machine screwing up, or is this a
problem with the .debs?

---Constantine Vetoshev



Reply to: