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

Build failed on Mac M1 #41

Open
bolerap opened this issue Jan 9, 2022 · 1 comment
Open

Build failed on Mac M1 #41

bolerap opened this issue Jan 9, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@bolerap
Copy link

bolerap commented Jan 9, 2022

Description

Build failed

error[E0609]: no field `__rip` on type `__darwin_arm_thread_state64`
   --> /Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmtime-runtime-0.22.0/src/traphandlers.rs:169:44
    |
169 |                     (*cx.uc_mcontext).__ss.__rip as *const u8
    |                                            ^^^^^ unknown field
    |
    = note: available fields are: `__x`, `__fp`, `__lr`, `__sp`, `__pc` ... and 2 others

For more information about this error, try `rustc --explain E0609`.
error: could not compile `wasmtime-runtime` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

Steps to Reproduce

I'm following this link to build a node to run on local https://docs.clover.finance/quick-start/using-local-node

git clone git@github.com:clover-network/clover.git
cd clover

cargo build --release --features clover-testnet

Expected vs. Actual Behavior

Build successfully

Environment

  • Operating system: MacOS Monterey
  • Template version/tag: develop
  • Rust version (run rustup show):
Default host: aarch64-apple-darwin
rustup home:  /Users/xxx/.rustup

installed toolchains
--------------------

stable-aarch64-apple-darwin (default)
nightly-aarch64-apple-darwin

active toolchain
----------------

stable-aarch64-apple-darwin (default)
rustc 1.57.0 (f1edd0429 2021-11-29)

Logs, Errors or Screenshots

   Compiling wasmtime-debug v0.22.0
error[E0609]: no field `__rip` on type `__darwin_arm_thread_state64`
   --> /Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmtime-runtime-0.22.0/src/traphandlers.rs:169:44
    |
169 |                     (*cx.uc_mcontext).__ss.__rip as *const u8
    |                                            ^^^^^ unknown field
    |
    = note: available fields are: `__x`, `__fp`, `__lr`, `__sp`, `__pc` ... and 2 others

For more information about this error, try `rustc --explain E0609`.
error: could not compile `wasmtime-runtime` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

Additional Information

Build latest substrate-node-template successfully

@bolerap bolerap added the bug Something isn't working label Jan 9, 2022
@pangwa
Copy link
Contributor

pangwa commented Jan 11, 2022

This is an upstream issue. Will do a upgrade to the latest dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@pangwa @bolerap and others