Bug 1558657 - lldb-{server,test} link to both libLLVM.so and libLLVMSupport.a causing runtime errors
Summary: lldb-{server,test} link to both libLLVM.so and libLLVMSupport.a causing runti...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: lldb
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom Stellard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-20 17:27 UTC by Evangelos Foutras
Modified: 2018-04-05 14:31 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-05 14:31:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
LLVM 36687 0 None None None 2018-03-20 17:27:19 UTC

Description Evangelos Foutras 2018-03-20 17:27:19 UTC
Just wanted to bring your attention to an upstream issue that causes out-of-tree builds of LLDB to link to both libLLVM.so and a couple of static LLVM libraries (one of which is libLLVMsupport.a). This didn't cause any visible problems when libLLVM was linked with -Wl,-Bsymbolic. Since llvm-6.0.0-5 removed this linker flag, you should be able to reproduce the same runtime errors.

For more details, please see: https://bugs.llvm.org/show_bug.cgi?id=36687

The fix is on the LLVM side: https://reviews.llvm.org/D44391 (committed as 4d613a84ce)

LLDB should work fine after rebuilding it against LLVM with the above patch.

There's also another related fix, which isn't directly needed by LLDB, but could be useful for other software using the `llvm_config(foo USE_SHARED ...)` macro in their CMakeLists.txt files: https://reviews.llvm.org/D44420 (not yet committed upstream)

Comment 1 Tom Stellard 2018-03-21 06:57:18 UTC
This should be fixed in rawhide by lldb-6.0.0-3.fc29.

Comment 2 Fedora Update System 2018-04-02 14:20:55 UTC
pocl-1.1-2.fc28 lldb-6.0.0-3.fc28 clang-6.0.0-5.fc28 llvm-6.0.0-11.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-02c4091319

Comment 3 Fedora Update System 2018-04-03 15:56:50 UTC
clang-6.0.0-5.fc28, lldb-6.0.0-3.fc28, llvm-6.0.0-11.fc28, mesa-18.0.0-2.fc28.1, pocl-1.1-2.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-02c4091319

Comment 4 Fedora Update System 2018-04-03 23:24:36 UTC
clang-6.0.0-5.fc28 lldb-6.0.0-3.fc28 llvm-6.0.0-11.fc28 mesa-18.0.0-3.fc28 pocl-1.1-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-02c4091319

Comment 5 Fedora Update System 2018-04-04 18:34:44 UTC
clang-6.0.0-5.fc28, lldb-6.0.0-3.fc28, llvm-6.0.0-11.fc28, mesa-18.0.0-3.fc28, pocl-1.1-2.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-02c4091319

Comment 6 Fedora Update System 2018-04-05 11:47:29 UTC
clang-6.0.0-5.fc28, lldb-6.0.0-3.fc28, llvm-6.0.0-11.fc28, mesa-18.0.0-3.fc28, pocl-1.1-2.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.