Giter Site home page Giter Site logo

Comments (10)

hermanventer avatar hermanventer commented on June 2, 2024

I believe this problem is already fixed on https://github.com/hermanventer/MIRAI, which should now be regarded as the source of truth for MIRAI since no-one at Meta seems interested in merging pull requests into this repo.

from mirai.

garbervetsky avatar garbervetsky commented on June 2, 2024

@hermanventer I tried with your fork and I got the same error.

It worked for me when I added the path of z3.h.

CPATH=/usr/local/Cellar/z3/4.9.1/include/ cargo install --locked --path ./checker

from mirai.

hermanventer avatar hermanventer commented on June 2, 2024

Could you append a full log of a session where you follow the installation instructions and it fails?

from mirai.

garbervetsky avatar garbervetsky commented on June 2, 2024

@hermanventer This are the steps I followed:
./setup.sh everything looks fine.

 Installed package `cargo-audit v0.17.0` (executable `cargo-audit`)
info: using existing install for 'nightly-2022-05-18-x86_64-apple-darwin'
info: override toolchain for '<folderRemoved>/MIRAI' set to 'nightly-2022-05-18-x86_64-apple-darwin'
 Installed package `cargo-audit v0.17.0` (executable `cargo-audit`)
info: using existing install for 'nightly-2022-05-18-x86_64-apple-darwin'
info: override toolchain for '/<folderRemoved>/MIRAI' set to 'nightly-2022-05-18-x86_64-apple-darwin'

  nightly-2022-05-18-x86_64-apple-darwin unchanged - rustc 1.63.0-nightly (4c5f6e627 2022-05-17)

Then:
cargo install --locked --path ./checker

  Installing mirai v1.1.0 (<folderRemoved>/MIRAI/checker)
  Updating crates.io index
  Downloaded peeking_take_while v0.1.2
....
Compiling z3-sys v0.7.1
error: failed to run custom build command for `z3-sys v0.7.1`

Caused by:
  process didn't exit successfully: `<folderRemoved>/MIRAI/target/release/build/z3-sys-1ee5d02118b012a6/build-script-build` (exit status: 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: ()',˜ /.cargo/registry/src/github.com-1ecc6299db9ec823/z3-sys-0.7.1/build.rs:33:14
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `mirai v1.1.0 (<folderRemoved>/MIRAI/checker)`, intermediate artifacts can be found at `<folderRemoved>/MIRAI/target`
`

from mirai.

hermanventer avatar hermanventer commented on June 2, 2024

From InstallationGuide.md:

For macOS the binary will have to be placed somewhere where it can be found and dynamically loaded by the Rust runtime.
You'll also need the z3 header files.

On an Intel Mac, do

sudo cp binaries/libz3.dylib /usr/local/lib
sudo cp include/*.h /usr/local/include

from mirai.

garbervetsky avatar garbervetsky commented on June 2, 2024

Makes sense. I did copied the library but not the include files because is not in the instructions :-)
Thanks @hermanventer

from mirai.

ukcw avatar ukcw commented on June 2, 2024

Hi, where would I need to place the files on an ARM Mac?

from mirai.

hermanventer avatar hermanventer commented on June 2, 2024

This step is no longer required. You can just build MIRAI. See the current installation guide.

from mirai.

ukcw avatar ukcw commented on June 2, 2024

Hi @hermanventer, I'm installing the z3 package for another project I'm working with and have the same issue as above. I need some help because the /include files are not on the PATH I believe?

from mirai.

hermanventer avatar hermanventer commented on June 2, 2024

Z3 is now statically linked into MIRAI, so there is no dependency or interference from any other Z3 package you may have.

from mirai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.