Bug 1743574

Summary: Broken cmake file in llvm-devel
Product: Red Hat Enterprise Linux 8 Reporter: Mattias Ellert <mattias.ellert>
Component: llvmAssignee: Tom Stellard <tstellar>
Status: CLOSED CURRENTRELEASE QA Contact: qe-baseos-tools-bugs
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: mcermak, mprchlik, sguelton, tschelle, tstellar
Target Milestone: rcKeywords: Bugfix, Triaged
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-24 13:46:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
This patch is from the Fedora 29 llvm sorce rpm. none

Description Mattias Ellert 2019-08-20 08:57:04 UTC
Created attachment 1606022 [details]
This patch is from the Fedora 29 llvm sorce rpm.

Description of problem:

/usr/bin/cmake [...] -DLLVM_LINK_LLVM_DYLIB:BOOL=ON [...] .
BUILDSTDERR: CMake Error at /usr/lib64/cmake/llvm/LLVMStaticExports.cmake:832 (message):
BUILDSTDERR:   The imported target "LLVMDemangle" references the file
BUILDSTDERR:      "/usr/lib64/libLLVMDemangle.a"
BUILDSTDERR:   but this file does not exist.  Possible reasons include:
BUILDSTDERR:   * The file was deleted, renamed, or moved to another location.
BUILDSTDERR:   * An install or uninstall procedure did not complete successfully.
BUILDSTDERR:   * The installation package was faulty and contained
BUILDSTDERR:      "/usr/lib64/cmake/llvm/LLVMStaticExports.cmake"
BUILDSTDERR:   but not all the files it references.
BUILDSTDERR: Call Stack (most recent call first):
BUILDSTDERR:   /usr/lib64/cmake/llvm/LLVMConfig.cmake:202 (include)
BUILDSTDERR:   /usr/lib64/cmake/clang/ClangConfig.cmake:10 (find_package)
BUILDSTDERR:   CMakeLists.txt:87 (find_package)
-- Configuring incomplete, errors occurred!

llvm-static should not be necessary to have installed when using -DLLVM_LINK_LLVM_DYLIB:BOOL=ON. It is not necessary when doing the same thing on Fedora.

Version-Release number of selected component (if applicable):

llvm-devel-7.0.1-3.module+el8.0.0+3181+ec021930

How reproducible:

Always

Steps to Reproduce:
1. Try rebuilding the castxml srpm from Fedora in EPEL 8

Actual results:

Error as above.

Expected results:

No error.

Additional info:

Fedora rawhide has llvm 8.0, but fedora 29 has llvm 7.0.1 which is the same version as in RHEL 8 and it works there too, so it is not a version 7 vs 8 thing.

Comment 5 Martin Cermak 2020-01-24 13:38:30 UTC
> Steps to Reproduce:
> 1. Try rebuilding the castxml srpm from Fedora in EPEL 8

https://koji.fedoraproject.org/koji/taskinfo?taskID=40962676