[LLVMdev] help with link problems
Andrew Lenharth
alenhar2 at uiuc.edu
Wed Aug 23 08:08:47 PDT 2006
On Wed, 2006-08-23 at 09:35 -0500, John Criswell wrote:
> Jerry Hom wrote:
> > 2) On a whim, I wanted to try using llvm-gcc4. However, when I invoke
> > it, I get a relocation error.
> >
> > prompt% llvm-gcc --version
> > llvm-gcc: relocation error: /home/jhom/LLVM/1.8/llvm-gcc4-1.8-x86-linux/lib/libstdc++.so.6: undefined symbol: _ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEi
> >
> Did you compile llvm-gcc4, or did you download a precompiled version
> from somewhere?
>
> Most likely, the problem is that llvm-gcc4 was built against a different
> version of libstdc++ (or, the version of libstdc++ used is not in your
> LD_LIBRARY_PATH). You'll either need to recompile llvm-gcc4 or set your
> LD_LIBRARY_PATH accordingly.
I've seen this. The solution here was to not include the llvm-
gcc4's /lib directory in your LD_LIBRARY_PATH. Apparently the binary is
built against the system libstdc++ and is slightly different than the
one llvm-gcc4 builds.
Andrew
More information about the llvm-dev
mailing list