I ran into this and my workaround was: ln -sf /usr/lib/llvm-3.4/lib/LLVMgold.so /usr/lib/LLVMgold.so echo /usr/lib/llvm-3.4/lib >> /etc/ld.so.conf ldconfig
I also had to add -B/usr/lib/gold-ld to my clang options to get it to use /usr/bin/ld.gold instead of /usr/bin/ld.bfd (-B takes a directory containing ld, not a path to a linker!) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1254970 Title: clang failed to link binaries when -flto option is used. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-snapshot/+bug/1254970/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs