TheDan64 / inkwell

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

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

Closed julian-siebert closed 1 month ago

julian-siebert commented 4 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 1 month ago

Inactive