Skip to content

Build failed on Mac M1 #41

@bolerap

Description

@bolerap

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions