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

Re: ld problem



Constantine Vetoshev <Constantine.Vetoshev@Dartmouth.EDU> writes:

> Sorry I didn't make myself clear; a simple hello world program does
> this. If there is any further information, I'll be happy to provide
> it. I dist-upgraded to take advantage of the latest binutils so I
> could use the Compaq C++ compiler, and ironically enough, the Compaq
> C/C++ compilers work. gcc/g++ fail miserably.

How recently did you do this upgrade?  My potato systems (up to date
as of right now - 19:48 EDT, May 10 - from samosa.debian.org) don't
have any troubles at all.

What version/revisions are the libc6.1 and libc6.1-dev packages on
your system?

I'd say to run /usr/bin/gcc under `strace -f', but it uses vfork() and
thus can't be followed by strace, so can you try running the linker
manually with strace?  This command should do it for a 'hello world'
type program (replace 'test' and 'test.o' with the names of your
output file and object file, respectively):

strace -f ld -m elf64alpha -O1 -dynamic-linker /lib/ld-linux.so.2 -o test /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 test.o -lgcc -lc -lgcc /usr/lib/gcc-lib/alpha-linux/2.95.2/crtend.o /usr/lib/crtn.o

Cheers

-- 
David Huggins-Daines, Senior GNU/Linux Consultant, Linuxcare, Inc.
613.562.1239 desk, 613.223.0225 mobile
dhd@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.



Reply to: