Closed thi8v closed 1 year ago
Hello, @Larsouille25. The issue you encountered is primarily related to the inability of llvm_sys to dynamically link with LLVM 15. It appears that Arch Linux only provides dynamically linked LLVM packages.
To address this problem and make your project work, you can make use of the following configuration:
inkwell = { version = "0.2", features = ["llvm15-0"] }
llvm-sys-150 = { package = "llvm-sys", version = "150.1.0", features = ["prefer-dynamic"] }
These configurations should help you resolve the issue and enable a new project to work smoothly with LLVM 15 on Arch Linux. As of the example execution I don't know how one would change the feature to be added automatically in the main cargo.toml from inkwell.
Best Regards, Daniel Boll. 🎴
Hello, @Daniel-Boll, thanks for the solution but, when in my crate I have inkwell = { version = "0.2.0", features = ["llvm15-0"] }
in the Cargo.toml file, that's just working fine. But when I try to compile inkwell (on the same PC), that's not working
@Larsouille25 Did you specify --features llvm15-0
via the cli?
The error is solved (forgot to close), it's specific to arch linux and LLVM 15.0.7, to solve the issue you need to download headers of llvm and create an env var that points to the llvm headers
See issue #405
Describe the Bug I've just git clone the workspace checkout the last stable release,
0.2.0
and I wanted to run the kaleidoscope example, but I found cargo very unhappy,To Reproduce
git clone https://github.com/TheDan64/inkwell
cargo run --example kaleidoscope
Expected Behavior The kaleidoscope program should open.
LLVM Version (please complete the following information):
Desktop (please complete the following information):
Arch Linux
, yes an error exist with LLVM 15.0.7 and Arch Linux but I fixed it so it's not that (i think)Additional Context An extract of the errors messages :