femtomc / mlir-sys

Rust bindings to the MLIR C API.
MIT License
58 stars 21 forks source link

cannot detect llvm/mlir 17 on ubtuntu #36

Open ctrlv0 opened 6 months ago

ctrlv0 commented 6 months ago

I'm using WSL Ubuntu 20.04 on windows 11 and have multiple versions of llvm installed via apt. ubtuntu adds a major version number to installed llvm deps. for eg- llvm-config for llvm 17 will be changed to llvm-config-17

I'm trying to use the latest version of melior which works upon this crate.

while building the project, I get an error saying that a version for llvm was not detected even though llvm-config is found.

I suppose this error arrives due to the naming convention in ubuntu which I wrote about above.

please suggest some fixes or solutions

raviqqe commented 5 months ago

It seems to work at least on CI. Can you try with LLVM 18? #35

ctrlv0 commented 5 months ago

kk I'll try