首页 > 解决方案 > 我无法在 M1 上运行 Substrate

问题描述

我可以根据这个建议运行 Substrate。关联

货物.toml

[patch.crates-io]
librocksdb-sys = { git = 
"https://github.com/hdevalence/rustrocksdb", branch = "master" }

[workspace]
 members = [
    'node',
    'pallets/*',
    'runtime',
]
[profile.release]
 panic = 'unwind'

货物锁

[[package]]
name = "libc"
version = "0.2.90"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum 
="ba4aede83fc3617411dc6993bc8c70919750c1c257c6ca6a502aed6e0e2394ae"

但我又遇到了另一个错误。喜欢


169 |                     (*cx.uc_mcontext).__ss.__rip as *const u8
    |                                            ^^^^^ unknown field
    |
    = note: available fields are: `__x`, `__fp`, `__lr`, `__sp`, `__pc` ... and 2 others

error: aborting due to previous error

For more information about this error, try `rustc --explain E0609`.
error: could not compile `wasmtime-runtime`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

你知道如何解决这个问题吗?太感谢了!

标签: rustblockchainsubstrate

解决方案


推荐阅读