TheDan64 / inkwell

It's a New Kind of Wrapper for Exposing LLVM (Safely)
https://thedan64.github.io/inkwell/
Apache License 2.0
2.38k stars 229 forks source link

[...]/libllvm_sys-af2874cb0b33780b.rlib: error adding symbols: file format not recognized #481

Closed julian-siebert closed 6 months ago

julian-siebert commented 8 months ago

Describe the Bug So I've added Inkwell to Cargo with following line: inkwell = { git = "https://github.com/TheDan64/inkwell", branch = "master", features = ["llvm17-0"] }

Everytime I want to build/run my project while using Inkwell throws following error: error: linking with cc failed: exit status: 1 | = note: LC_ALL="C" [more arguments...] = note: /usr/bin/ld: [project path]/target/debug/deps/libllvm_sys-af2874cb0b33780b.rlib: error adding symbols: file format not recognized collect2: error: ld returned 1 exit status

I'm not sure if this is a bug or just a mistake of mine.

To Reproduce If I do let context = Context::create(); the programm refuses to compile with the given error.

Expected Behavior Well, compile and be able to run.

LLVM Version (please complete the following information):

Desktop (please complete the following information):

Additional Context I'm sure I've installed all needed dependencies. Rustup is installed on latest version like llvm is.

julian-siebert commented 6 months ago

Inactive