clang linker error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

clang linker error

Dongrui She
Hi all,

I have two machines which run Fedora 10 x86 32-bit and Fedora 11 x86 32-bit.
Lately clang on these machines seem to be broken, though it can compile out-of-the-box.

The compiler driver fails to find the path of the crt object files for the linker.
When compiling any c/c++ program, it gives the following error:

/usr/bin/ld: crt1.o: No such file: No such file or directory

The linker command invoked by clang is:

"/usr/bin/ld" --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o hello crt1.o crti.o crtbegin.o -L -L/../../.. /tmp/cc-wIlcuu.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc crtend.o crtn.o

I tried release 2.9 and svn HEAD, both have the same problem.
In release 2.8 everything looks ok, clang supplies the complete path of the crt object files to the linker.

On another machine running Fedora 12 x86-64, everything seems fine.

Any ideas? Is the support for older linux distributions dropped?

--

Regards,

Dongrui


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev