Bug 20276

Summary: llvm's devel package has LLVMExports.cmake which requires llvm-static
Product: Mageia Reporter: Rémi Verschelde <rverschelde>
Component: RPM PackagesAssignee: Base system maintainers <basesystem>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: tmb
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: llvm-3.9.1-3.mga6 CVE:
Status comment:

Description Rémi Verschelde 2017-02-12 22:56:51 CET
Trying to build darktable 2.2.3 in current Cauldron triggers this CMake error:

```
CMake Error at //lib64/cmake/llvm/LLVMExports.cmake:777 (message):
  The imported target "LLVMSupport" references the file

     "/usr/lib64/libLLVMSupport.a"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "//lib64/cmake/llvm/LLVMExports.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /lib64/cmake/llvm/LLVMConfig.cmake:151 (include)
  CMakeLists.txt:324 (find_package)


-- Configuring incomplete, errors occurred!
```

The issue is that %{_lib}llvm-devel provides `%{_libdir}/cmake/llvm/LLVMExports.cmake`, which apparently requires the static libraries to work properly.

I'm not sure yet what is the proper fix, I had added llvm-static as a dependency of %{_lib}llvm-devel, but it caused some issues (especially with rust which buildconflicts llvm-static - and that was kind of a dirty fix anyway).
Comment 1 Rémi Verschelde 2017-07-30 23:40:47 CEST
I'm getting this error again with the development version of the Dolphin emulator. Any idea?

CC: (none) => tmb

Comment 2 Rémi Verschelde 2018-08-13 09:53:37 CEST
This should be fixed in Cauldron by this patch cherry-picked by Thierry: http://svnweb.mageia.org/packages/cauldron/llvm/current/SOURCES/0001-CMake-Split-static-library-exports-into-their-own-ex.patch?view=log

Closing as fixed, though Mageia 6 is still affected, but I don't know if we want to make a LLVM update for that.

Status: NEW => RESOLVED
Resolution: (none) => FIXED