Giter Site home page Giter Site logo

Comments (11)

chrisckwong821 avatar chrisckwong821 commented on May 20, 2024 17

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.

danforbes avatar danforbes commented on May 20, 2024 4

Sounds like reverting to nightly-2020-08-23 is a workaround.

from subport.

danforbes avatar danforbes commented on May 20, 2024

Can you rerun these commands? https://substrate.dev/docs/en/knowledgebase/getting-started/#webassembly-compilation

from subport.

taskooh avatar taskooh commented on May 20, 2024

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.

danforbes avatar danforbes commented on May 20, 2024

Thank you - unfortunately I do not have access to a Mac so it will be difficult for me to help debug much.

from subport.

taskooh avatar taskooh commented on May 20, 2024

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.

taskooh avatar taskooh commented on May 20, 2024

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.

danforbes avatar danforbes commented on May 20, 2024

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.

danforbes avatar danforbes commented on May 20, 2024

Basti linked this as a related Issue rust-lang/rust#76698

from subport.

PatrickHuang888 avatar PatrickHuang888 commented on May 20, 2024

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.

bkchr avatar bkchr commented on May 20, 2024

cannot deserialize module: UnknownOpcode(192)

Will be fixed by: paritytech/substrate#13804

from subport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.