undefined symbol: lto_codegen_set_cpu

Hi, all,

I'm using LLVM-3.0. I want to use gold plugin, but I got the following
error message:

/home/tianyin/binutils-2.22/bin/ld: error:
/home/tianyin/llvm-3.0/lib/LLVMgold.so: could not load plugin library:
/home/tianyin/llvm-3.0/lib/LLVMgold.so: undefined symbol:
lto_codegen_set_cpu

Could anyone tell me what's the problem?

Thanks a lot!
Tianyin

Why not use TOT, or latest release? :slight_smile:

Regards,
chenwj

The project uses legacy code build upon 3.0.

t

Could anyone tell me what's the problem?

Can you check if libLTO.so defines lto_codegen_set_cpu?

Thanks a lot!
Tianyin

Cheers,
Rafael