<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div>Hello Bin,</div><div><br></div><div>It looks like GCC 4.1.2 is on the broken list:</div><div><br></div><div><span><a target="_blank" href="http://llvm.org/docs/GettingStarted.html#brokengcc">http://llvm.org/docs/GettingStarted.html#brokengcc</a></span></div><div><br></div><div>You may have to specify no optimization in GCC to get it to work at all.</div><div><br></div><div>--Sam</div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><b><span style="font-weight: bold;">From:</span></b> Bin Zeng <ezengbin@gmail.com><br><b><span
style="font-weight: bold;">To:</span></b> llvmdev@cs.uiuc.edu<br><b><span style="font-weight: bold;">Sent:</span></b> Fri, September 24, 2010 11:03:50 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [LLVMdev] libstdc++.so.6 problem<br></font><br>
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 class="moz-txt-slash"><span class="moz-txt-tag">/</span>root/tools/llvm/llvm-gcc/install/bin<span class="moz-txt-tag">/</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 class="moz-txt-slash"><span class="moz-txt-tag">/</span>root/tools/llvm/llvm-gcc/install/bin<span class="moz-txt-tag">/</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></div></blockquote><div style="position:fixed"></div>
</div><br>
</body></html>