Hi,
I built clang from the latest SVN release on a CentOS system.
It builds fine but when I try to compile anything I get an ld error that crtbegin.o cannot be found.
I am assuming this is because crtbegin.o is installed in /usr/lib/gcc/x86_64-redhat-linux/4.1.1/ .
I have seen other references to this problem in the mailing list and bugzilla, but I have not yet found a solution. Is there a reasonable work around to this problem?
Thanks,
Greg Kerr
Greg,
ToT clang would not be familiar to centos-5.
To compile C++ projects, you would feel messy for incompatibility of
libstdc++-4.1.
You may tweak as below;
- install "gcc44" and "gcc44-c++".
- better to use CC=gcc44 CXX=g++44 to build clang and llvm.
- Tweak lib/Driver/ToolChains.cpp to let gcc44 detected,
""/usr/lib/gcc/x86_64-redhat-linux6E".
- Tweak lib/FrontEnd/InitHeaderSearch.cpp to add
"/usr/include/c++/4.4.0" and "x86_64-redhat-linux6E".
- Tweak lib/Driver/Driver.cpp to force use g++44.
Here is one of my local patches. I won't commit it because it would be
too ad-hoc.
...Takumi
centos5-gcc44.diff.txt (2.43 KB)