[llvm-bugs] [Bug 33669] Building with LINK_LLVM_DYLIB and LTO cause tblgen link failure
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Jul 1 12:35:54 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33669
Davide Italiano <davide at freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
CC| |davide at freebsd.org
--- Comment #1 from Davide Italiano <davide at freebsd.org> ---
I think you're using GNU ar that doesn't know about bitcode files.
You should use an archiver that knows about bitcode symbol tables, e.g.
llvm-ar.
You also need to override ranlib, you can set to /usr/bin/true (or llvm-ranlib)
See
https://clang.llvm.org/docs/ThinLTO.html#id13
(please note that while this is for ThinLTO something equivalent applies for
LTO).
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170701/d2a0c844/attachment.html>
More information about the llvm-bugs
mailing list