AndrewWu
2008-Feb-20 05:24 UTC
[LLVMdev] llvm-2.2 cannot be successfully built with 'make ENABLE_OPTIMIZED=1'
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>
Duncan Sands
2008-Feb-20 07:25 UTC
[LLVMdev] llvm-2.2 cannot be successfully built with 'make ENABLE_OPTIMIZED=1'
Hi,> But when I use 'make ENABLE_OPTMIZED=1', the compilation fails with thespelling mistake: should be ENABLE_OPTIMIZED not ENABLE_OPTMIZED.> 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)The directory name shows that this is still an optimized build. As for the error itself, I have no idea. Ciao, Duncan.
AndrewWu
2008-Feb-20 08:01 UTC
[LLVMdev] 答复: [LLVMdev] llvm-2.2 cannot be successfully built with 'make ENABLE_OPTIMIZED=1'
The full message is shown here, sorry for the spelling mistake, I did not make the mistake when I built the llvm: [wuxi at ppidellsc1420 llvm-objects-opt]$ make ENABLE_OPTIMIZED=1 make[1]: Entering directory `/home/wuxi/llvm-2.2/llvm-objects-opt/lib/System' ... /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) make[1]: *** [/home/wuxi/llvm-2.2/llvm-objects-opt/lib/VMCore/Release/Intrinsics.gen.tmp] Error 1 make[1]: Leaving directory `/home/wuxi/llvm-2.2/llvm-objects-opt/lib/VMCore' make: *** [all] Error 1> The directory name shows that this is still an optimized build. > As for the error itself, I have no ideaAnyway... the debug build works well and I have written a simple program, use llvm-gcc-4.2 to generate bit code, and run the bit code directly via lli. Thanks _______________________________________________ Andrew Wu Parallel Processing Institute Fudan University, Shanghai, China E-mail: wuxi at fudan.edu.cn wu.andrew.xi at gmail.com _______________________________________________
Tobias Oberstein
2008-Feb-20 10:08 UTC
[LLVMdev] llvm-2.2 cannot be successfully built with 'make ENABLE_OPTIMIZED=1'
> 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)try putting your self built newer gcc & libstdc++ in the environment export PATH=/home/wuxi/gcc-4.2-install/bin:${PATH} export LD_LIBRARY_PATH=/home/wuxi/gcc-4.2-install/lib:${LD_LIBRARY_PATH} the systems /usr/lib/libstdc++.so.6 doesn't work with the newer GCC. Tobias
Reasonably Related Threads
- [LLVMdev] llvm-2.2 cannot be successfully built with 'make ENABLE_OPTIMIZED=1'
- [LLVMdev] llvm-2.2 cannot be successfully built with 'make ENABLE_OPTIMIZED=1'
- [LLVMdev] Help with building LLVM 2.6 GCC
- [LLVMdev] Help with building LLVM 2.6 GCC
- [LLVMdev] Using non-system compiler to build llvm and llvm-gcc front end