Bug 1026614

Summary: LLVM shared libraries should be merged into a single one
Product: [openSUSE] openSUSE Tumbleweed Reporter: Marvin FourtyTwo <marvin24>
Component: BasesystemAssignee: Michal Srb <msrb>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: toddrme2178
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Marvin FourtyTwo 2017-02-23 10:14:34 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Build Identifier: 

Distros should package a single LLVM shared library. See http://llvm.org/docs/CMake.html (search for BUILD_SHARED_LIBS): 

"BUILD_SHARED_LIBS is only recommended for use by LLVM developers. If you want to build LLVM as a shared library, you should use the LLVM_BUILD_LLVM_DYLIB option."

Debian and Fedora already do so. Current mesa compilation also breaks due to this problem.


Reproducible: Always
Comment 1 Marvin FourtyTwo 2017-02-23 10:22:05 UTC
Please also provide a static library!
Comment 2 Ismail Dönmez 2017-03-10 09:29:50 UTC
The single shared library option is broken: http://bugs.llvm.org/show_bug.cgi?id=22952
Comment 3 Marvin FourtyTwo 2017-03-10 10:08:09 UTC
openSUSE uses cmake to compile llvm, so bug 22952 does not apply.
Comment 4 Ismail Dönmez 2017-03-10 10:47:09 UTC
(In reply to Marvin FourtyTwo from comment #3)
> openSUSE uses cmake to compile llvm, so bug 22952 does not apply.

Yes it does, specifically it breaks lldb-server.
Comment 5 Marvin FourtyTwo 2017-03-10 13:31:47 UTC
ah, you are right - I should have read the whole bug. I wonder how "others" fixed this... So what's the solution? Would it help to link the tools statically?
Comment 6 Ismail Dönmez 2017-03-10 13:36:04 UTC
(In reply to Marvin FourtyTwo from comment #5)
> ah, you are right - I should have read the whole bug. I wonder how "others"
> fixed this... So what's the solution? Would it help to link the tools
> statically?

Yes that would help but then llvm package size reaches gigabytes which is not really a good solution. I'll recheck what Debian is doing.
Comment 7 Michal Srb 2017-08-02 13:37:58 UTC
Duplicate of #1049703.

*** This bug has been marked as a duplicate of bug 1049703 ***