Skip to content

Conversation

@guitargeek
Copy link
Contributor

Right now, I get the following error when building ROOT with
`builtin_llvm=OFF` and `clad=ON`:
```txt
CMake Error at CMakeLists.txt:94 (find_package):
  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.  If "LLVM"
  provides a separate development package or SDK, be sure it has been
  installed.

CMake Error at /home/rembserj/code/root/root_build/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-configure-RelWithDebInfo.cmake:47 (message):
  Stopping after outputting logs.
```

This commit suggests to set the `LLVM_DIR` to Clad to the actual
`LLVM_DIR` that is found by `find_package(LLVM)`.

For `builtin_llvm=ON` this should also work, because `LLVM_DIR` is
correctly set in the `interpreter/CMakeLists.txt` file.
@guitargeek guitargeek self-assigned this Mar 19, 2025
@guitargeek guitargeek requested a review from bellenot as a code owner March 19, 2025 13:15
@guitargeek guitargeek merged commit 0ba1b44 into root-project:v6-34-00-patches Mar 19, 2025
20 of 21 checks passed
veprbl pushed a commit to NixOS/nixpkgs that referenced this pull request Mar 30, 2025
Some patches could be avoided thanks to the following upstream patches:

  * root-project/root#18086
  * root-project/root#18050
@guitargeek guitargeek deleted the clad_bp branch August 5, 2025 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant