[cfe-dev] (no subject)

Mohit Asudani mohitasudani at hotmail.com
Tue Feb 1 04:25:20 PST 2011

Hi  Clang Developers, I downloaded the latest revision (r123891) of LLVM via SVN and followed the instructions at http://clang.llvm.org/get_started.html  to configure and build.
After building, compiling a simple C code gives follwing error:
/u/asudani/project/gccnew/gcc-3.4.2-glibc-2.3.3/x86_64-unknown-linux-gnu/bin/ld: crtbegin.o: No such file: No such file or directoryclang: error: linker command failed with exit code 1 (use -v to see invocation)
After searching for error, i followed instructions at http://stackoverflow.com/questions/4160262/clang-linker-problem.
Hence I added the paths for crtbegin.o, crtend.o, crti.o,crt1.o,etc by adding following lines to llvm/tools/clang/lib/Driver/ToolChains.cpp :

But this doesn't works.What can be done to rectify the specified clang linker problem ?

Thanks,Mohit Asudani

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110201/ab3960a2/attachment.html>

More information about the cfe-dev mailing list