[Bug 279731] devel/cmake: find_package(LLVM 18 REQUIRED CONFIG) fails to find llvm18-18.1.6
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 14 Jun 2024 10:01:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279731 Bug ID: 279731 Summary: devel/cmake: find_package(LLVM 18 REQUIRED CONFIG) fails to find llvm18-18.1.6 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: kde@FreeBSD.org Reporter: yuri@freebsd.org Flags: maintainer-feedback?(kde@FreeBSD.org) Assignee: kde@FreeBSD.org When these 2 llvm packages are installed: $ pkg info | grep llvm llvm15-15.0.7_10 LLVM and Clang llvm18-18.1.6_1 LLVM and Clang This cmake script fails to find llvm18: $ cat CMakeLists.txt cmake_minimum_required(VERSION 3.18.0) find_package(LLVM 18 REQUIRED CONFIG) Error: Make Error at CMakeLists.txt:2 (find_package): Could not find a configuration file for package "LLVM" that is compatible with requested version "18". The following configuration files were considered but not accepted: /usr/local/llvm15/lib/cmake/llvm/LLVMConfig.cmake, version: 15.0.7 /usr/local/llvm18/lib/cmake/llvm/LLVMConfig.cmake, version: 18.1.6 It is unclear why is llvm18-18.1.6 not compatible with the requirement "18" for LLVM. 14.1-STABLE cmake-3.29.3 Meta-port to connect all CMake bits cmake-core-3.29.3 Cross-platform Makefile generator -- You are receiving this mail because: You are the assignee for the bug.