[LLVMdev] libLLVMgold.so: could not load plugin library

Rafael Espindola espindola at google.com
Sat Jun 26 08:30:50 PDT 2010


> Did I use the wrong options?

That looks correct, the issues is really why gold is failing to load the plugin.


> So the gold and the LLVMgold are linked against the same libstdc++. I am
> using the gcc at /s/gcc-4.3.1/i386_rhel5/bin to compile the LLVM chain.

Can you run llvm-gcc again with -Wl,-debug? This will show the linker
line being used. You can then run gdb on it. Try to find what error is
dlopen reporting. I wonder if gold is calling perror or not when
dlopen fails (assuming it is dlopen that is failing).

> Thanks.
>

Cheers,
-- 
Rafael Ávila de Espíndola




More information about the llvm-dev mailing list