Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Rust WASM toolchain not installed, even I have installed #12791

Open
2 tasks done
xiaozeplus opened this issue Nov 28, 2022 · 5 comments
Open
2 tasks done

Rust WASM toolchain not installed, even I have installed #12791

xiaozeplus opened this issue Nov 28, 2022 · 5 comments
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.

Comments

@xiaozeplus
Copy link

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

When run cargo build --release to substrate-node-template, I met this problem like "Rust WASM toolchain not installed, please install it!", although I have installed it. The details are as follows.

Steps to reproduce

Hello everyone:
When I used commend cargo build --release to substrate-node-template, I get something wrong like this:

error: failed to run custom build command for node-template-runtime v4.0.0-dev (/home/briza/Desktop/substrate/substrate-node-template_ok/runtime)

Caused by:
process didn't exit successfully: /home/briza/Desktop/substrate/substrate-node-template_ok/target/release/build/node-template-runtime-219434d0a12d33e9/build-script-build (exit status: 1)
--- stderr
Rust WASM toolchain not installed, please install it!

Further error information:

error: expected table for configuration key registry, but found string in /home/briza/.cargo/config

I checked my toolchain, and installed: rustup toolchain install nightly-2022-10-20-x86_64-unknown-linux-gnu, but stiil didn't work.

rustup show and rustup nightly show below:

rustup show:
Default host: x86_64-unknown-linux-gnu
rustup home: /home/briza/.rustup

installed toolchains

stable-x86_64-unknown-linux-gnu (default)
nightly-2021-11-04-x86_64-unknown-linux-gnu
nightly-2021-12-10-x86_64-unknown-linux-gnu
nightly-2022-06-30-x86_64-unknown-linux-gnu
nightly-2022-07-01-x86_64-unknown-linux-gnu
nightly-2022-08-15-x86_64-unknown-linux-gnu
nightly-2022-10-20-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu

active toolchain

stable-x86_64-unknown-linux-gnu (default)
rustc 1.65.0 (897e37553 2022-11-02)

rustup nightly show:
Default host: x86_64-unknown-linux-gnu
rustup home: /home/briza/.rustup

installed toolchains

stable-x86_64-unknown-linux-gnu (default)
nightly-2021-11-04-x86_64-unknown-linux-gnu
nightly-2021-12-10-x86_64-unknown-linux-gnu
nightly-2022-06-30-x86_64-unknown-linux-gnu
nightly-2022-07-01-x86_64-unknown-linux-gnu
nightly-2022-08-15-x86_64-unknown-linux-gnu
nightly-2022-10-20-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu

installed targets for active toolchain

wasm32-unknown-unknown
x86_64-unknown-linux-gnu

active toolchain

nightly-x86_64-unknown-linux-gnu (overridden by +toolchain on the command line)
rustc 1.67.0-nightly (1eb62b123 2022-11-27)

rust version: rustc 1.65.0 (897e37553 2022-11-02)

Besides, I followed this "https://docs.substrate.io/install/linux/" to reinstall, but still didn't work
what should I do to solve this problem?
thank you all first!

@github-actions github-actions bot added the J2-unconfirmed Issue might be valid, but it’s not yet known. label Nov 28, 2022
@boundless-forest
Copy link
Contributor

Have you added the WASM target to your toolchain? Something like this rustup target add wasm32-unknown-unknown --toolchain nightly

https://docs.substrate.io/install/linux/ This doc might help you out.

@xiaozeplus
Copy link
Author

Have you added the WASM target to your toolchain? Something like this rustup target add wasm32-unknown-unknown --toolchain nightly

https://docs.substrate.io/install/linux/ This doc might help you out.

I have followed this, but still can't solve it

@ganesh1997oli
Copy link

I am also facing the same issue

@pvk444
Copy link

pvk444 commented May 29, 2023

Have the same issue with the following toolchain:

installed toolchains

stable-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-gnu

installed targets for active toolchain

wasm32-unknown-unknown
x86_64-unknown-linux-gnu

active toolchain

stable-x86_64-unknown-linux-gnu (default)
rustc 1.69.0 (84c898d65 2023-04-16)

Btw, I'm on Zorin 16.2 (based on Ubuntu 20.02)

@bkchr
Copy link
Member

bkchr commented May 31, 2023

https://docs.substrate.io/install/linux/ This doc might help you out.

@paritytech/docs-audit we need the installation instructions updated. Since 1.69.0 and latest master people need to have the wasm32-unknown-unknown target installed for the stable compiler.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.
Projects
None yet
Development

No branches or pull requests

5 participants