Bug 75929 - Configuring Mesa to use shared libLLVM.so fails
Summary: Configuring Mesa to use shared libLLVM.so fails
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
Depends on:
Reported: 2014-03-08 22:58 UTC by Chris Rankin
Modified: 2014-03-18 13:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

Patch for configure.ac to fix building against libLLVM.so (873 bytes, text/plain)
2014-03-08 22:58 UTC, Chris Rankin

Description Chris Rankin 2014-03-08 22:58:29 UTC
Created attachment 95379 [details]
Patch for configure.ac to fix building against libLLVM.so

Configuring Mesa to build on Fedora 20 with the shared libLLVM.so is ignoring the new --enable-llvm-shared-libs option. It looks like two references to "with_llvm_shared_libs" were missed in configure.ac.

I have attached a patch.
Comment 1 Emil Velikov 2014-03-09 02:45:14 UTC
Hi Chris

I have a similar patch [1] which also clears up the remaining messages. It's queued up and I'm planning to commit it shortly. Thanks for the heads up.

[1] http://lists.freedesktop.org/archives/mesa-dev/2014-March/055316.html
Comment 2 Dave Witbrodt 2014-03-09 13:47:37 UTC
I've been having lots of trouble building Mesa for RadeonSI with recent LLVM 3.5 snapshots.  I am happy to report that applying Emil's patch from comment 1, in combination with attachment 95368 [details] (from bug 75919), gets everything working for me again.  (Without 95368, I get static linkage to LLVM instead of shared, which is comical since my build errors out unless I use the "--enable-llvm-shared-libs" config option.)
Comment 3 Emil Velikov 2014-03-11 17:10:20 UTC
Just committed the patch to master, so one should be able to enable/disable the option on demand.

AFAICS one could do some clean-up wrt LLVM handling in configure.ac although I'd rather leave that to someone more experienced in that area.
Comment 4 Dave Witbrodt 2014-03-18 13:29:57 UTC
Emil's patch (now applied in Mesa 9.2.0-devel), along with an LLVM 3.5 build with the proper symlinks (bug 75919), nearly allows me to build Mesa for RadeonSI.  In my scrambling about to get the build working again, I forgot that I also had to apply a patch from bug 70410 to get the build working.

Anyway, glad to see this bug closed.

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.