Date: Sun, 04 Jun 2023 16:22:50 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 271821] devel/llvm16: broken CMake suport in -lite flavor Message-ID: <bug-271821-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271821 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}?=3D ${_ver} . endfor # =3D=3D=3D define variables to depend on and export =3D=3D=3D +.if ${_LLVM_MK_VERSION} >=3D 15 +_LLVM_MK_PORT=3D devel/llvm${_LLVM_MK_SUFFIX_${_LLVM_MK_VERSION}}@= lite +.else _LLVM_MK_PORT=3D devel/llvm${_LLVM_MK_SUFFIX_${_LLVM_MK_VERSION}} +.endif _LLVM_MK_LIBLLVM=3D libLLVM-${_LLVM_MK_VERSION}.so _LLVM_MK_PATH=3D llvm-config${_LLVM_MK_SUFFIX_${_LLVM_MK_VERSION}} _LLVM_MK_PREFIX=3D ${PREFIX}/llvm${_LLVM_MK_SUFFIX_${_LLVM_MK_VERSIO= N}} --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271821-7788>