Summary: | FTBFS in Clover: /usr/lib/llvm-3.6/include/llvm/Config/Targets.def:26: undefined reference to `LLVMInitialize*Target' | ||
---|---|---|---|
Product: | Mesa | Reporter: | Kai <kai> |
Component: | Other | Assignee: | mesa-dev |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | niels_ole, tstellar |
Version: | git | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
build log of mesa 9ebfb3014e showing the FTBFS on amd64
llvm_link_fix.diff LLVM build log |
Description
Kai
2014-10-23 18:33:07 UTC
Created attachment 108315 [details] [review] llvm_link_fix.diff I assume you are using cmake build of llvm with split shared libraries. the failure was introduced in 8e7df519bd8556591794b2de08a833a67e34d526 by calling LLVMInitializeAllTarget* you can use the attached patch as workaround Created attachment 108316 [details] LLVM build log (In reply to Jan Vesely from comment #1) > I assume you are using cmake build of llvm with split shared libraries. Actually no, the LLVM build of the Debian packages uses configure and make, see the attached LLVM build log. > the failure was introduced in 8e7df519bd8556591794b2de08a833a67e34d526 > by calling LLVMInitializeAllTarget* > > > you can use the attached patch as workaround Ok, I'll try that and report back as soon as the build finishes or fails. Ok, with a slightly adapted – I still need to add --system-libs, see bug 70410 – version of attachment 108315 [details] [review] Mesa builds again! CCing Tom since he commited 8e7df519bd8556591794b2de08a833a67e34d526. And with regard to: >> I assume you are using cmake build of llvm with split shared libraries. > > Actually no, the LLVM build of the Debian packages uses configure and make, > see the attached LLVM build log. I forgot to mention: I'm linking LLVM statically into Mesa. Just because this tends to work a bit better with games obtained through Steam. Fixed in 4b94c3fc3136f8e5225956864dd13828c9b81d5f configure: Link against all LLVM targets when building clover Since 8e7df519bd8556591794b2de08a833a67e34d526, we initialise all targets in clover. This fixes bug 85380. v2: Mention correct bug in commit message I can confirm the patch is working with LLVM SVN revision 227082. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.