[LLVMdev] Problem when build LLVM

Duncan Sands baldrick at free.fr
Tue Oct 20 00:32:29 PDT 2009


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.



More information about the llvm-dev mailing list