Bug 425038

Summary: Umbrello 20.08 build fails on CI for FreeBSD
Product: [Developer tools] buildsystem Reporter: Christoph Feck <cfeck>
Component: generalAssignee: Alexander Neundorf <neundorf>
Status: RESOLVED FIXED    
Severity: normal CC: ralf.habacker, tcberner
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Christoph Feck 2020-08-05 11:11:12 UTC
There is some error related to LLVM libraries. Please see https://build.kde.org/job/Applications/view/Everything%20-%20stable-kf5-qt5/job/umbrello/job/stable-kf5-qt5%20FreeBSDQt5.15/

It is possible the issue on the CI (missing dependencies, etc.), please reassign if needed.
Comment 1 Ralf Habacker 2020-08-05 12:07:21 UTC
11:45:57    CMake Error at /usr/local/lib/cmake/llvm/LLVMExports.cmake:1230 (message):
11:45:57    The imported target "LLVMDemangle" references the file
11:45:57  
11:45:57       "/usr/local/lib/libLLVMDemangle.a"
11:45:57  
11:45:57    but this file does not exist.  Possible reasons include:
This log entries indicates a dependency issue on CI. I reassigned it to "buildsystem"
Comment 2 Tobias C. Berner 2020-08-05 17:00:23 UTC
Moin moin 

Sorry, this is my bad -- I had a work around not cleanly removed on the CI host.

Previously we had the llvm/clang-cmake files of the "default" llvm symlinked to /usr/local/lib/cmake/{llvm,clang} so that cmake could find them. 
However, the cmake code used relative path to the symlink and not to the real path -- so it was looking for the library in /usr/local/lib/libLLVMDemangle.a instead of /usr/local/llvm90/lib/libLLVMDemangle.a .

Now the CI has the cmake path /usr/local/llvm90/cmake added, however, I forgot to remove the symlink, which lead to it still looking in the wrong directory.

After removing the superfluous symlink: https://build.kde.org/job/Applications/job/umbrello/job/stable-kf5-qt5%20FreeBSDQt5.15/22/ 


mfg Tobias