I also noticed this problem with latest SVN build (r162623) on Ubuntu 12.04. LLVMgold.so was not linked to libLTO.so, which caused problems when using it:
/usr/bin/ld: error: /opt/clang/bin/../lib/LLVMgold.so: could not load plugin library: /opt/clang/bin/../lib/LLVMgold.so: undefined symbol: lto_codegen_add_must_preserve_symbol Using the above patch solved the problem. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1026359 Title: clang -O4 -use-gold-plugin fails (LLVMgold.so: undefined symbol: lto_codegen_compile_to_file) To manage notifications about this bug go to: https://bugs.launchpad.net/llvm/+bug/1026359/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs