Skip to content

Windows: Official LLVM 22.1.8 installer does not provide LLVMConfig.cmake, preventing Vanadium from configuring with CMake #3

Description

@CarlosMCCTF160

Summary

I'm trying to build Vanadium on Windows without Docker, following the repository documentation.

The configuration fails because CMake cannot locate the LLVM package configuration (LLVMConfig.cmake), even though LLVM 22.1.8 is installed from the official LLVM website.

It appears that the official Windows installer does not include the CMake package files required by:

find_package(LLVM REQUIRED CONFIG)

As a result, the project cannot be configured.


Environment

  • OS: Windows 11 24H2
  • Vanadium: current master
  • LLVM: 22.1.8 (official installer)
  • CMake: 4.4.0-rc3
  • Ninja: 1.13.2
  • Clang: 22.1.8
  • Python: 3.14
  • Git: 2.54

Configuration command

cmake .. -G Ninja ^
  -DCMAKE_C_COMPILER=clang ^
  -DCMAKE_CXX_COMPILER=clang++

Error

Could not find a package configuration file provided by "LLVM"
with any of the following names:

LLVMConfig.cmake
llvm-config.cmake

Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH
or set LLVM_DIR to a directory containing one of the above files.

Investigation

The LLVM installation is correctly detected:

clang --version

clang version 22.1.8
InstalledDir: C:\Program Files\LLVM\bin

The installation directory contains:

C:\Program Files\LLVM
 ├── bin
 ├── include
 ├── lib
 └── share

However,

C:\Program Files\LLVM\lib\cmake\llvm

contains only:

LLVMConfigExtensions.cmake

and does not contain:

  • LLVMConfig.cmake
  • LLVMConfigVersion.cmake

Also:

where llvm-config

returns no executable.

Therefore the official Windows LLVM installation appears not to provide the CMake package required by Vanadium.


Questions

  1. Which LLVM distribution is expected for Windows builds?

  2. Is the project intended to build with the official LLVM installer?

  3. Is there an additional package that Windows users should install?


Thanks a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions