rust
rust copied to clipboard
Unable to build on MacOS
Hi, enzyme looks super cool, and now that it’s on its way into nightly, I’d like to play around with it a bit. I’m following the instructions in the README, but the build always errors with the following output:
[92/93] Install the project...
-- Install configuration: "Release"
-- Installing: /Users/X/rust/build/build/aarch64-apple-darwin/enzyme/lib/cmake/Enzyme/EnzymeConfig.cmake
-- Installing: /Users/X/rust/build/build/aarch64-apple-darwin/enzyme/lib/cmake/Enzyme/EnzymeConfigVersion.cmake
-- Installing: /Users/X/rust/build/build/aarch64-apple-darwin/enzyme/lib/cmake/Enzyme/EnzymeTargets.cmake
-- Installing: /Users/X/rust/build/build/aarch64-apple-darwin/enzyme/lib/cmake/Enzyme/EnzymeTargets-release.cmake
-- Installing: /Users/X/rust/build/build/aarch64-apple-darwin/enzyme/lib/LLVMEnzyme-17.dylib
-- Installing: /Users/X/rust/build/build/aarch64-apple-darwin/enzyme/lib/ClangEnzyme-17.dylib
-- Installing: /Users/X/rust/build/build/aarch64-apple-darwin/enzyme/lib/LLDEnzyme-17.dylib
cargo:root=/Users/X/rust/build/build/aarch64-apple-darwin/enzyme
finished in 61.092 seconds
thread 'main' panicked at src/lib.rs:1605:24:
src.symlink_metadata() failed with No such file or directory (os error 2)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Build completed unsuccessfully in 0:18:44
Any idea how to address this? I'm on an a Macbook Pro M2
Edit: Looks like I'm not the only one with this problem: https://github.com/EnzymeAD/rust/issues/27#issuecomment-1758826871