[cfe-dev] clang linker error
Dongrui She
sarevokcc at gmail.com
Mon Apr 11 02:50:04 PDT 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110411/d94bea25/attachment.html>
More information about the cfe-dev
mailing list