-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't compile #422
Comments
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, |
Hello, @Daniel-Boll, thanks for the solution but, when in my crate I have |
@Larsouille25 Did you specify |
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 :
The text was updated successfully, but these errors were encountered: