[LLVMdev] GLIBCXX_3.4.9 not found

Török Edwin
Fri, 24 Sep 2010 14:28:37 -0000

On Fri, 24 Sep 2010 10:20:42 -0400
Bin Zeng <ezengbin at gmail.com> wrote:

>   Hi all,
>
> I am really stumped on this problem. I googled and could not find any
> solution. Here is the problem. I compiled and installed
> glibc-2.5-20090518 in a local directory with gcc version 4.1.2.  I
> compiled glibc-2.5 because I wanted to test glibc-2.5 on gcc first
> llvm-gcc. However, after I installed glibc, llvm-gcc does not work
> any more. It reported this error message:
>
>
/root/tools/llvm/llvm-gcc/install/bin/../libexec/gcc/i686-pc-linux-gnu/4.2.1/cc1:
> /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required
> by
/root/tools/llvm/llvm-gcc/install/bin/../libexec/gcc/i686-pc-linux-gnu/4.2.1/cc1)
>

Did you overwrite your /usr/lib/libstdc++.so.6?
As the message says libstdc++ must be at least 3.4.9. What version is
it?

Some distributions have the habit of using an
ancient /usr/lib/libstdc++, and putting the correct one
in /usr/lib/gcc/.../

Best regards,
--Edwin