[LLVMdev] llvm-2.2 cannot be successfully built with 'make ENABLE_OPTIMIZED=1'
AndrewWu
wuxi at fudan.edu.cn
Tue Feb 19 21:24:55 PST 2008
My platform is RedHat Enterprise 5, as shown below:
[wuxi at ppidellsc1420 lib]$ uname -a
Linux ppidellsc1420 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686
i686 i386 GNU/Linux
and I install gcc-4.2.3, as shown below:
[wuxi at ppidellsc1420 lib]$ g++ -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.2.3/configure --prefix=/home/wuxi/gcc-4.2-install/
Thread model: posix
gcc version 4.2.3
I follow the command:
CXX=PATH_TO_MY_G++ ../llvm/configure -prefix=/usr/local
To configure llvm
And next when I use 'make ENABLE_OPTIMIZED=0', it can successfully build
llvm, with the warning that I may get 10 times slower.
But when I use 'make ENABLE_OPTMIZED=1', the compilation fails with the
message:
/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)
I have checked by libstdc++, with a higher version:
[wuxi at ppidellsc1420 lib]$ rpm -q libstdc++
libstdc++-4.1.1-52.el5
Well. as libstdc++ is published with gcc. I am wondering which version of
gcc I should use ?
Any suggestion on this problem ? Thanks very much
_______________________________________________
Andrew Wu
Parallel Processing Institute
Fudan University, Shanghai, China
E-mail: wuxi at fudan.edu.cn wu.andrew.xi at gmail.com
_______________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080220/8d5fd269/attachment.html>
More information about the llvm-dev
mailing list