Skip to content

"Rust WASM toolchain not installed, please install it!" error while building substrate-node-template #32

@taskooh

Description

@taskooh

When I followed the guide:

https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/setup

and compiled substrate, I faced the following error.

% cargo build --release
   Compiling node-template-runtime v2.0.0-rc6 (/Users/xf9x/Documents/github/substrate-node-template/runtime)
   Compiling derive_more v0.99.9
   Compiling dyn-clonable-impl v0.9.0
   Compiling thiserror-impl v1.0.20
   Compiling asn1_der_derive v0.1.2
   Compiling libp2p-core-derive v0.20.1
   Compiling scroll_derive v0.10.2
   Compiling strum_macros v0.16.0
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.41s
       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

It was working well before I reinstall rustup. But now, it is not working

Environments

OS

macOS Catalina 10.15.6

rust toolchains

% rustup --version
rustup 1.22.1 (b01adbbc3 2020-07-08)
%cargo --version
cargo 1.46.0 (149022b1d 2020-07-17)
% cargo +nightly --version
cargo 1.48.0-nightly (875e01232 2020-09-08)
% rustup target list --toolchain nightly | grep installed
wasm32-unknown-unknown (installed)
x86_64-apple-darwin (installed)
% rustup show
Default host: x86_64-apple-darwin
rustup home:  /Users/xf9x/.rustup

installed toolchains
--------------------

stable-x86_64-apple-darwin (default)
nightly-x86_64-apple-darwin

installed targets for active toolchain
--------------------------------------

wasm32-unknown-unknown
x86_64-apple-darwin

active toolchain
----------------

stable-x86_64-apple-darwin (default)
rustc 1.46.0 (04488afe3 2020-08-24)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions