-
Notifications
You must be signed in to change notification settings - Fork 251
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
Encountered an error when using near-sdk-sim in mac m1 #355
Comments
Have you installed the command line tools for xcode? On my M1 I get further than this, but I have another problem with wasmer requiring AVX support. |
I have encountered the same problem, and my rust toolchain is
And no other error output. |
@austinabell Hey Austin, could you please check this issue? this issue may be relevant: wasmerio/wasmer#1832 (thought it's about iOS, not Mac M1) |
Yeah, I believe this is just an issue of llvm/clang being not configured correctly or the path to llvm binaries not being set up. Setting this up is a bit opinionated, whether or not you want to use brew or not, and I don't personally have an M1 to check the minimal setup (is the file architecture the same as other intel mac?). This should error even after this when using sim tests though because I believe sim tests are still using the version of nearcore which compiles the version of wasmer which is incompatible with m1, but I believe @willemneal might have the correct status of this. |
I can confirm: sim tests are still broken on M1, with this same get_fault_info error. |
sim deprecated in favour of https://github.com/near/workspaces-rs/ |
Environment:
MacOS Big Sur 11.2.3
Mac mini (M1, 2020)
rustc 1.51.0 (2fd73fabe 2021-03-23)
In Cargo.toml, after I added
Logs when run
cargo test --package my_contract – --nocapture
The text was updated successfully, but these errors were encountered: