[LLVMdev] gold-plugin compilation error

Rafael Espindola espindola at google.com
Wed Sep 1 05:17:00 PDT 2010


> gold-plugin.cpp:199: error: âLDPT_SET_EXTRA_LIBRARY_PATHâ was not
> declared in this scope

....

> There might be a header file missing(it is just my guess). I installed
> binutils-2.20.1 which is not the latest version because the fresh copy I
> checked out was not built successfully (I will report the bug to the
> developers later). By the way, I did not find any directory or file with
> the name bfd-plugins which is supposed to be there according to the docs
> on LLVM gold plugin. I configured LLVM with
> --with-binutils-include=/the/path/to/binutils/src/include. When I ran
> make ENABLE_OPTIMIZED=1, the errors above appeared. The LLVM Suite I
> have is not the latest version though. It is built from build 5658.
>
> Any advice or suggestion will be appreciated a lot.

You need a newer binutils. LDPT_SET_EXTRA_LIBRARY_PATH is one of the
callbacks that gold provides and was add somewhat recently.

You have to create the bfd-plugins directory yourself once the gold
plugin is compiled.

> Bin

Cheers,
-- 
Rafael Ávila de Espíndola




More information about the llvm-dev mailing list