raviqqe / melior

The rustic MLIR bindings in Rust
https://raviqqe.github.io/melior/melior/
Apache License 2.0
332 stars 39 forks source link

Melior unable to find LLVM/MLIR-17 #502

Open ctrlv0 opened 8 months ago

ctrlv0 commented 8 months ago

when i try to use melior 0.17.0 in my project on wsl (ubuntu 20.04.6) it gives me an error saying failed to find correct version (17.x.x) of llvm-config (found )

However, i have LLVM/MLIR-17 installed and inkwell seems to work without no problems.

llvm-config-17 command is exposed to bash and can be invoked from any path.

what am i doing wrong here?

raviqqe commented 8 months ago

I think it's because Ubuntu somehow puts all LLVM tools' names with a -17 suffix. This is more like an issue of mlir-sys.