Open Wright4TheJob opened 1 year ago
Seeing the same issue. Did you find a workaround?
I have not yet, no. Any luck for you?
I use this as my work-around in MIRAI: z3-sys = { version = "*", git="https://github.com/prove-rs/z3.rs.git", features = ["static-link-z3"], optional = true }
That didn't work for me - same error, even after deleting Cargo.lock
and rebuilding.
Aha, it seems I was missing clang: apt install clang
.
The error message could probably be clearer.
Thank you @hjfreyer! The clang dependency was at the root of my issue, it can compile fine now for me.
This may be a similar issue report to #192 or #87 but I hope more data is helpful for a more robust next update.
Operating System: Pop!_OS 22.04 (Ubuntu based) Cargo 1.65.0 Rust 2021 Edition
I'm using a fairly minimal test program right now where Z3 and UUId are my only imports. Although I installed Z3 from my package manager I get compile errors from the system compiler (not Cargo) when I attempt to build my library either with a stock Z3 install or with the statically linked library. Both error messages are listed below. I hope one of these errors is simply a mis-configuration on my end.
With this in my Cargo.toml [dependencies]:
z3 = "0.11"
This happens:And with this in my Cargo.toml [dependencies]:
z3 = {version="0.11.2", features = ["static-link-z3"]}