Skip to content

Broken Enzyme_LLVM_BINARY_DIR environment variable #2773

@AyhamSaffar

Description

@AyhamSaffar

After having run brew install enzyme on WSL, the following CMakeLists.txt fails

cmake_minimum_required(VERSION 3.20)

find_package(Enzyme REQUIRED CONFIG) # must install enzyme & lld through Brew / Spack
set(CMAKE_CXX_COMPILER "${Enzyme_LLVM_BINARY_DIR}/bin/clang++")

With the following error:

CMake Error at CMakeLists.txt:7 (project):The CMAKE_CXX_COMPILER:

/home/linuxbrew/.linuxbrew/Cellar/llvm/22.1.1/bin/clang++

is not a full path to an existing compiler tool.

My correct LLVM path is /home/linuxbrew/.linuxbrew/Cellar/llvm/22.1.2.

Is this a small bug with Enzyme or an issue with how I have installed it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions