<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>My platform is RedHat Enterprise 5, as
shown below:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> [wuxi@ppidellsc1420
lib]$ uname -a<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US>Linux
ppidellsc1420 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686 i686 i386
GNU/Linux<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>and I install gcc-4.2.3, as shown below:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> [wuxi@ppidellsc1420
lib]$ g++ -v<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US>Using built-in
specs.<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US>Target:
i686-pc-linux-gnu<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US>Configured with:
../gcc-4.2.3/configure --prefix=/home/wuxi/gcc-4.2-install/<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US>Thread model:
posix<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:21.0pt'><b><i><span lang=EN-US>gcc
version 4.2.3<o:p></o:p></span></i></b></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I follow the command:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> CXX=PATH_TO_MY_G++
../llvm/configure –prefix=/usr/local<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>To configure llvm<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>And next when I use ‘make
ENABLE_OPTIMIZED=0’, it can successfully build llvm, with the warning
that I may get 10 times slower…<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>But when I use ‘make
ENABLE_OPTMIZED=1’, the compilation fails with the message:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> /home/wuxi/llvm-2.2/llvm-objects-opt/Release/bin/tblgen:
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/wuxi/llvm-2.2/llvm-objects-opt/Release/bin/tblgen)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I have checked by libstdc++, with a higher
version:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> [wuxi@ppidellsc1420
lib]$ rpm -q libstdc++<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:21.0pt'><b><i><span lang=EN-US>libstdc++-4.1.1-52.el5<o:p></o:p></span></i></b></p>
<p class=MsoNormal><span lang=EN-US>Well… as libstdc++ is published with
gcc… I am wondering which version of gcc I should use ?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Any suggestion on this problem ? Thanks
very much<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>_______________________________________________<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Andrew Wu<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Parallel Processing Institute<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Fudan University, Shanghai, China<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>E-mail: wuxi@fudan.edu.cn
wu.andrew.xi@gmail.com<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>_______________________________________________<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
</div>
</body>
</html>