What I did was when building llvm was to first compile and install gcc 4.2 by myself. <br><br>Rajika<br><br><div class="gmail_quote">On Fri, Sep 24, 2010 at 9:33 PM, Bin Zeng <span dir="ltr"><<a href="mailto:ezengbin@gmail.com">ezengbin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
Hi all,
<br>
<br>
I am really stumped on this problem. I googled and could not find
any
<br>
solution. Here is the problem. I compiled and installed
<br>
glibc-2.5-20090518 in a local directory with gcc version 4.1.2. I
<br>
compiled glibc-2.5 because I wanted to test glibc-2.5 on gcc first
<br>
llvm-gcc. However, after I installed glibc, llvm-gcc does not work
<br>
any more. It reported this error message:
<br>
<br>
<i><span>/</span>root/tools/llvm/llvm-gcc/install/bin<span>/</span></i>../libexec/gcc/i686-pc-linux-gnu/4.2.1/cc1:
<br>
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required
<br>
by <i><span>/</span>root/tools/llvm/llvm-gcc/install/bin<span>/</span></i>../libexec/gcc/i686-pc-linux-gnu/4.2.1/cc1)<br>
<br>
It says that the GLIBCXX_3.4.9 does not work with libstdc++.so.6. I
did not install glibc in /usr/lib. /usr/lib/libstdc++.so.6 should
not be affected. <br>
Also rpm shows that the version is:
<br>
<br>
[root@localhost gold]# rpm -q glibc
<br>
glibc-2.5-34.el5_3.1
<br>
<br>
Any advice will be appreciated. Thanks a lot in advance. <br>
<br>
Bin <br>
</div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br>