#LLVM not found but available in system
7 messages · Page 1 of 1 (latest)
❯ llvm-config --version
17.0.4
[dependencies]
libc = "0.2"
llvmenv = "0.3.2"
llvm-sys = "170.0.0"
error: No suitable version of LLVM was found system-wide or pointed
to by LLVM_SYS_170_PREFIX.
Consider using `llvmenv` to compile an appropriate copy of LLVM, and
refer to the llvm-sys documentation for more information.
llvm-sys: https://crates.io/crates/llvm-sys
llvmenv: https://crates.io/crates/llvmenv
--> /Users/scholzf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/llvm-sys-170.0.0/src/lib.rs:479:1
|
479 | / std::compile_error!(concat!(
480 | | "No suitable version of LLVM was found system-wide or pointed
481 | | to by LLVM_SYS_",
482 | | env!("CARGO_PKG_VERSION_MAJOR"),
... |
489 | | llvmenv: https://crates.io/crates/llvmenv"
490 | | ));
| |__^
error: could not compile `llvm-sys` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
any idea?
Does running llvm-config --version && cargo build print the version of LLVM and give you the same compiler error?
was able to fix it yes, the error was still the same