Artisan-Lab / RAP

Rust Analysis Platform
27 stars 9 forks source link

00-install-rap-rust.sh fails on Mac M1 #2

Closed hxuhack closed 5 months ago

hxuhack commented 8 months ago

Error Report:

thread 'main' panicked at sanity.rs:59:13:
couldn't find required command: "gdb"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Build completed unsuccessfully in 0:33:18
error: not a directory: 'build/x86_64-apple-darwin/stage2/lib'

1) Does gdb has a Mac OS/aarch64 version? (brew install gdb does not work, maybe I should compile with the source code). 2) The directory should be recognised as: x86_64-apple-darwin => aarch64-apple-darwin.

hxuhack commented 5 months ago

The issue is now fixed by updating the installation scripts. Users may also encounter other problems when building z3-sys with aarch64-apple-darwin. Adding the paths of the header file and library files to the environment manually would be helpful .