Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jun 2024 10:01:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 279731] devel/cmake: find_package(LLVM 18 REQUIRED CONFIG) fails to find llvm18-18.1.6
Message-ID:  <bug-279731-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279731

            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=20
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

--=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-279731-7788>