Ask questionstest failed to compile with llvm-7: No LLVM_SYS_70_PREFIX
make test on WSL(Ubuntu 18.04, with initial llvm6 removed and llvm-7 installed by apt) fails:
error: failed to run custom build command for `wasmer-llvm-backend v0.4.0 (/home/huangjj27/wasmer/lib/llvm-backend)` process didn't exit successfully: `/home/huangjj27/wasmer/target/debug/build/wasmer-llvm-backend-3d1adc9289268860/build-script-build` (exit code: 101) --- stdout Didn't find usable system-wide LLVM. No suitable version of LLVM was found system-wide or pointed to by LLVM_SYS_70_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 --- stderr thread 'main' panicked at 'Could not find a compatible version of LLVM', lib/llvm-backend/build.rs:83:9 note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
what value should be set to
sudo apt remove llvm -y, and install llvm-7:
sudo apt install llvm-7
If applicable, add a link to a test case (as a zip file or link to a repository we can clone).
it should pass compile and run the tests
failed to compile test as shown
related to #364
Answer questions huangjj27
And I found that the llvm-7 I installed has a config with commaned
Related questionsNo questions were found.