Bug 1119092 - llvm7: libLLVM is ABI incompatible between GCC and CLANG
llvm7: libLLVM is ABI incompatible between GCC and CLANG
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development
Current
Other Other
: P3 - Medium : Normal (vote)
: ---
Assigned To: Michal Srb
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-12-11 10:18 UTC by Michal Srb
Modified: 2021-11-19 01:41 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Srb 2018-12-11 10:18:39 UTC
There is a clang-specific optimization in llvm::Optional, which makes code compiled with gcc and clang incompatible with each other. We build libLLVM, libclang, etc using clang, but the rest of the distribution is build using gcc. So anything that links against libLLVM, libclang, etc may be broken.

Bug that introduced the clang-only optimization:
https://bugs.llvm.org/show_bug.cgi?id=35978

Fix (removing the optimization from everywhere):
https://reviews.llvm.org/D50710
Comment 1 Michal Srb 2018-12-11 15:19:48 UTC
Submitted to Factory and SLE15 SP1. Closing bug.
Comment 4 OBSbugzilla Bot 2020-07-24 06:51:33 UTC
This is an autogenerated message for OBS integration:
This bug (1119092) was mentioned in
https://build.opensuse.org/request/show/822551 Factory / llvm10
Comment 5 OBSbugzilla Bot 2021-11-19 01:41:22 UTC
This is an autogenerated message for OBS integration:
This bug (1119092) was mentioned in
https://build.opensuse.org/request/show/932377 Backports:SLE-15-SP3 / llvm12