Hi, When i make LLVM with llvm-2.5.tar.gz an error occurs. The step is below tar -zxvf llvm-2.5.tar.gz cd llvm-2.5-tar.gz make ENABLE_OPTIMIZED=1 Then then the error is: /tools/IUS611/tools/lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6) What shall i do to avoid it? I am a newbie, maybe it's a foolish question Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091020/7782a611/attachment.html>
After reading //llvm.org/PR896 i make it again as below step configure --disable-shared make ENABLE_OPTIMIZED=1 It still reports same error message 2009/10/20, Heyu Zhu <zhu.heyu at gmail.com>:> > Hi, > > When i make LLVM with llvm-2.5.tar.gz an error occurs. The step is below > > tar -zxvf llvm-2.5.tar.gz > cd llvm-2.5-tar.gz > make ENABLE_OPTIMIZED=1 > > Then then the error is: > > /tools/IUS611/tools/lib/libgcc_s.so.1: version `GCC_4.2.0' not found > (required by /usr/lib/libstdc++.so.6) > > What shall i do to avoid it? > > I am a newbie, maybe it's a foolish question > > Regards > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091020/ec965e7d/attachment.html>
Hi Heyu Zhu,> Then then the error is: > > /tools/IUS611/tools/lib/libgcc_s.so.1: version `GCC_4.2.0' not found > (required by /usr/lib/libstdc++.so.6)you can get this if you compile C++ code using a different compiler to your system compiler. Based on the error message, your system compiler is gcc-4.2 and the other compiler is probably gcc-4.3 or later. What has happened is that LLVM has been linked using the system libstdc++, which is from gcc-4.2, and which requires libgcc from the same version of gcc, namely gcc-4.2. However it is getting libgcc from the other compiler and complaining. What you need to do is to link with the version of libstdc++ that came with the other compiler. Ciao, Duncan.
According to your description i should not use the system libstdc++ and i need to specify the OTHER compiler libstdc++. But i don't where the OTHER compiler libstdc++ is. Is the OTHER compiler libstdc++ contained in llvm-2.5.tar.gz? if not where can i get it? 2009/10/20, Duncan Sands <baldrick at free.fr>:> > Hi Heyu Zhu, > > Then then the error is: >> /tools/IUS611/tools/lib/libgcc_s.so.1: version `GCC_4.2.0' not found >> (required by /usr/lib/libstdc++.so.6) >> > > you can get this if you compile C++ code using a different compiler to > your system compiler. Based on the error message, your system compiler > is gcc-4.2 and the other compiler is probably gcc-4.3 or later. What > has happened is that LLVM has been linked using the system libstdc++, > which is from gcc-4.2, and which requires libgcc from the same version > of gcc, namely gcc-4.2. However it is getting libgcc from the other > compiler and complaining. What you need to do is to link with the > version of libstdc++ that came with the other compiler. > > Ciao, > > Duncan. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091020/235345dd/attachment.html>
Maybe Matching Threads
- [LLVMdev] Problem when build LLVM
- [LLVMdev] Problem when build LLVM
- [LLVMdev] Problem when build LLVM
- [LLVMdev] Does mips backend support variable arguments in release version(llvm-2.6)?
- [LLVMdev] How to bind a register variable with a given general purpose register?