[Bug 271821] devel/llvm16: broken CMake suport in -lite flavor
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 Jun 2023 16:22:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271821 Bug ID: 271821 Summary: devel/llvm16: broken CMake suport in -lite flavor Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: brooks@FreeBSD.org Reporter: jbeich@FreeBSD.org Flags: maintainer-feedback?(brooks@FreeBSD.org) Assignee: brooks@FreeBSD.org I'd like to use llvm16-lite in RPCS3 CI but CMake references a backend only exposed in shared library. find_package(LLVM 16.0) is enough to reproduce. Found via https://cirrus-ci.com/task/6573386822844416 For easier testing use the port: $ make clean all -C emulators/rpcs3 [...] CMake Error at /usr/local/llvm16/lib/cmake/llvm/LLVMExports.cmake:996 (message): The imported target "LLVMDemangle" references the file "/usr/local/llvm16/lib/libLLVMDemangle.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 "/usr/local/llvm16/lib/cmake/llvm/LLVMExports.cmake" but not all the files it references. Call Stack (most recent call first): /usr/local/llvm16/lib/cmake/llvm/LLVMConfig.cmake:252 (include) 3rdparty/llvm.cmake:54 (find_package) 3rdparty/CMakeLists.txt:331 (include) with the following patch diff --git a/Mk/Uses/llvm.mk b/Mk/Uses/llvm.mk index 931ad99156f8..2f7cc26a30a1 100644 --- a/Mk/Uses/llvm.mk +++ b/Mk/Uses/llvm.mk @@ -96,7 +96,11 @@ _LLVM_MK_SUFFIX_${_ver}?= ${_ver} . endfor # === define variables to depend on and export === +.if ${_LLVM_MK_VERSION} >= 15 +_LLVM_MK_PORT= devel/llvm${_LLVM_MK_SUFFIX_${_LLVM_MK_VERSION}}@lite +.else _LLVM_MK_PORT= devel/llvm${_LLVM_MK_SUFFIX_${_LLVM_MK_VERSION}} +.endif _LLVM_MK_LIBLLVM= libLLVM-${_LLVM_MK_VERSION}.so _LLVM_MK_PATH= llvm-config${_LLVM_MK_SUFFIX_${_LLVM_MK_VERSION}} _LLVM_MK_PREFIX= ${PREFIX}/llvm${_LLVM_MK_SUFFIX_${_LLVM_MK_VERSION}} -- You are receiving this mail because: You are the assignee for the bug.