Comments (11)
I encountered similar problem and fixed it by updating rust and target "wasm" to latest nightly build
rustup update
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
from subport.
Sounds like reverting to nightly-2020-08-23
is a workaround.
from subport.
Can you rerun these commands? https://substrate.dev/docs/en/knowledgebase/getting-started/#webassembly-compilation
from subport.
Can you rerun these commands? https://substrate.dev/docs/en/knowledgebase/getting-started/#webassembly-compilation
The result was like this. Not solved.
xf9x@TasknoMacBook-Pro substrate-node-template % rustup update nightly
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
nightly-x86_64-apple-darwin unchanged - rustc 1.48.0-nightly (7402a3944 2020-09-13)
info: checking for self-updates
xf9x@TasknoMacBook-Pro substrate-node-template % rustup target add wasm32-unknown-unknown --toolchain nightly
info: component 'rust-std' for target 'wasm32-unknown-unknown' is up to date
xf9x@TasknoMacBook-Pro substrate-node-template % rustup update
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
info: checking for self-updates
stable-x86_64-apple-darwin unchanged - rustc 1.46.0 (04488afe3 2020-08-24)
nightly-x86_64-apple-darwin unchanged - rustc 1.48.0-nightly (7402a3944 2020-09-13)
info: cleaning up downloads & tmp directories
xf9x@TasknoMacBook-Pro substrate-node-template % cargo build --release
Compiling node-template-runtime v2.0.0-rc6 (/Users/xf9x/Documents/github/substrate-node-template/runtime)
Compiling frame-support-procedural-tools-derive v2.0.0-rc6 (https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186)
Compiling slog_derive v0.2.0
Compiling async-trait v0.1.38
Compiling serde v1.0.114
Compiling pin-project v0.4.23
Compiling tracing v0.1.19
Compiling ref-cast v1.0.2
Compiling rental v0.5.5
Compiling prost v0.6.1
Compiling dyn-clonable v0.9.0
Compiling thiserror v1.0.20
error: failed to run custom build command for `node-template-runtime v2.0.0-rc6 (/Users/xf9x/Documents/github/substrate-node-template/runtime)`
Caused by:
process didn't exit successfully: `/Users/xf9x/Documents/github/substrate-node-template/target/release/build/node-template-runtime-833ee7d7fff70513/build-script-build` (exit code: 1)
--- stderr
Compiling wasm-build-runner-impl v1.0.0 (/Users/xf9x/Documents/github/substrate-node-template/target/release/wbuild-runner/node-template-runtime17855005755133324358)
Finished release [optimized] target(s) in 0.46s
Running `/Users/xf9x/Documents/github/substrate-node-template/target/release/wbuild-runner/node-template-runtime17855005755133324358/target/x86_64-apple-darwin/release/wasm-build-runner-impl`
Rust WASM toolchain not installed, please install it!
warning: build failed, waiting for other jobs to finish...
error: build failed
from subport.
Thank you - unfortunately I do not have access to a Mac so it will be difficult for me to help debug much.
from subport.
Thank you - unfortunately I do not have access to a Mac so it will be difficult for me to help debug much.
All right, thank you for your help!
from subport.
Probably this issue is happening only in the latest rustup version. So, I hope you to try on latest rustup (v1.22.1)
from subport.
Yes, that is what I am using. @bkchr did you find that this is an upstream bug in the Rust compiler? Do we know what people need to switch to in order to fix this problem?
~: rustup --version
rustup 1.22.1 (b01adbbc3 2020-07-08)
from subport.
Basti linked this as a related Issue rust-lang/rust#76698
from subport.
I encountered similar problem and fixed it by updating rust and target "wasm" to latest nightly build
rustup update rustup update nightly rustup target add wasm32-unknown-unknown --toolchain nightly
I have same problem on rust 1.68.2, and ubuntu 22.04. solved it by this. but have problem of "cannot deserialize module: UnknownOpcode(192)" when startup, solved it by downgraded to 1.68.0
from subport.
cannot deserialize module: UnknownOpcode(192)
Will be fixed by: paritytech/substrate#13804
from subport.
Related Issues (20)
- Curio: Rococo Slot Request HOT 4
- Please request a Rococo slot. HOT 1
- Blue Freedom HOT 2
- Curio Parachain HOT 1
- Blue Freedom HOT 1
- Giedi: K-LAOS testing network HOT 1
- add Magnet Testnet HOT 2
- update magnet HOT 3
- Magnet parachain HOT 1
- OZ Local Tesnet Slot HOT 1
- Reset Magnet(4350) HOT 4
- Open HRMP Channel between Para ID 3344 and Rococo Asset Hub HOT 2
- Manget updates new paraid(4361) HOT 2
- Rococo Slot Request:paraid 4361 HOT 7
- Update Rococo's Parachain Onboarding Issue template
- Hyperbridge Testnet v2 HOT 1
- XCM invalid after successfully purchasing coretime
- Add Xode Network HOT 1
- Open HRMP Channel between Bifrost Para ID 2030 and Rococo Asset Hub HOT 3
- Open HRMP Channel between Curio Testnet Para ID 3339 and Rococo Asset Hub
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from subport.