I have a brand new macbook m2.
I followed all the steps on https://docs.substrate.io/install/macos
% rustup show
Default host: aarch64-apple-darwin
rustup home: /Users/bear/.rustup
installed toolchains
--------------------
stable-aarch64-apple-darwin (default)
nightly-aarch64-apple-darwin
active toolchain
----------------
stable-aarch64-apple-darwin (default)
rustc 1.68.0 (2c8cc3432 2023-03-06)
% rustup +nightly show
Default host: aarch64-apple-darwin
rustup home: /Users/bear/.rustup
installed toolchains
--------------------
stable-aarch64-apple-darwin (default)
nightly-aarch64-apple-darwin
installed targets for active toolchain
--------------------------------------
aarch64-apple-darwin
wasm32-unknown-unknown
active toolchain
----------------
nightly-aarch64-apple-darwin (overridden by +toolchain on the command line)
rustc 1.70.0-nightly (4a04d086c 2023-03-18)
While trying to run substrate, I run into:
% ./target/release/substrate --dev
2023-03-19 22:51:50 Substrate Node
2023-03-19 22:51:50 ✌️ version 3.0.0-dev-f8a1dd4c836
2023-03-19 22:51:50 ❤️ by Parity Technologies <[email protected]>, 2017-2023
2023-03-19 22:51:50 📋 Chain specification: Development
2023-03-19 22:51:50 🏷 Node name: dramatic-road-4106
2023-03-19 22:51:50 👤 Role: AUTHORITY
2023-03-19 22:51:50 💾 Database: RocksDb at /var/folders/0n/4nqy69197mdfz6tz2sbrpwcm0000gn/T/substrateYXoVQu/chains/dev/db/full
2023-03-19 22:51:50 ⛓ Native runtime: node-268 (substrate-node-0.tx2.au10)
Error: Service(Client(VersionInvalid("cannot deserialize module: UnknownOpcode(192)")))
2023-03-19 22:51:51 [0] 💸 generated 1 npos voters, 1 from validators and 0 nominators
2023-03-19 22:51:51 [0] 💸 generated 1 npos targets
2023-03-19 22:51:51 Cannot create a runtime error=Other("cannot deserialize module: UnknownOpcode(192)")
which is coming from client/executor/common/src/runtime_blob/runtime_blob.rs
The same happens with a few other repositories, namely:
substrate-node-template
frontier-node-template
but it does not happen with polkadot
.
M1 MacBook Pro Ventura 13.3
. Previously I hadstable-1.68.2
andnightly-1.70
. I had to fallback intonightly-1.68
Createdrust-toolchain.toml
withtoml [toolchain] channel = "nightly-2023-01-01" components = [ "rustfmt" ] targets = [ "wasm32-unknown-unknown" ] profile = "minimal"
Thanks to the community for help. Here is the error message I was getting: ```sh ./target/release/node-template --dev Error: Service(Client(VersionInvalid("cannot deserialize module: UnknownOpcode(192)"))) 2023-04-05 16:10:40 Substrate Node 2023-04-05 16:10:40 ✌️ version 4.0