Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build z3-sys on windows #183

Closed
hermanventer opened this issue Dec 22, 2021 · 2 comments
Closed

Can't build z3-sys on windows #183

hermanventer opened this issue Dec 22, 2021 · 2 comments

Comments

@hermanventer
Copy link

Error: failed to run custom build command for `z3-sys v0.7.1`
Caused by:
  process didn't exit successfully: `D:\a\MIRAI\MIRAI\target\release\build\z3-sys-e5c5536e9e865e98\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-changed=build.rs
  cargo:rerun-if-changed=wrapper.h

  --- stderr
  thread 'main' panicked at 'Unable to find libclang: "the `libclang` shared library at C:\\msys64\\mingw64\\bin\\libclang.dll could not be opened: LoadLibraryExW failed"', 
C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\bindgen-0.58.1\src/lib.rs:2057:31

I checked and the file does exist:

Run ls -l C:\\msys64\\mingw64\\bin

    Directory: C:\msys64\mingw64\bin

Mode                 LastWriteTime            Length   Name
----                 -------------            ------   ----
.......
-a---                12/17/2021  4:13 AM      30677555 libclang.dll
.......
@hermanventer
Copy link
Author

Tried this again and the error is different now:

Error: failed to compile mirai v1.1.0 (D:\a\MIRAI\MIRAI\checker), intermediate artifacts can be found at D:\a\MIRAI\MIRAI\target
Caused by:
failed to run custom build command for z3-sys v0.7.1

Caused by:
process didn't exit successfully: D:\a\MIRAI\MIRAI\target\release\build\z3-sys-d2d77d3ff8918670\build-script-build (exit code: 101)
--- stdout
cargo:rerun-if-changed=build.rs
cargo:rerun-if-changed=wrapper.h

--- stderr
wrapper.h:1:10: fatal error: 'z3.h' file not found
wrapper.h:1:10: fatal error: 'z3.h' file not found, err: true
thread 'main' panicked at 'Unable to generate bindings: ()', C:\Users\runneradmin.cargo\registry\src\github.com-1ecc6299db9ec823\z3-sys-0.7.1\build.rs:33:14

@hermanventer
Copy link
Author

This seems a bit stale now. Not sure it is fixed, but I've moved on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant