-
Notifications
You must be signed in to change notification settings - Fork 2.7k
build error: Rust WASM toolchain not installed, please install it! #7150
Comments
what os are you using? we are running macos and had the same, only solution was downgrading like this: testsupport bug fixing by keeping the current version info at hand before downgrading:
downgradeinstall known working versions:
|
Same issue. Confirmed. |
Thank you @2075; I updated comment to add more information about environment. |
Yes, if I downgrade to |
@hadv I have downgraded to 1.45.1 but I get the same error.
|
it might not related but I run
|
My colleague also ran into this error spontaneously today (on his machine). Things were building fine just a few commands ago and suddenly this error showed up and wouldn't go away. He even tried completely re-installing rust. We are scratching our heads pretty hard on this one haha. |
if you leave some more info here, like your currently installed versions it will help to identify possible issues. it seems like there are upstream issues when updating your env to latest/nightly. the above mentioned downgrade works for some, give it a shot! |
I ran into the same problem, and my workaround is:
|
I am working on wsl2 of windows, it worked for me to downgrade to 1.45.1 with the command: rustup default 1.45.1-x86_64-unknown-linux-gnu |
LGTM |
I assume we can close this? Sadly this was an upstream bug in Rust. |
@bkchr Has it been fixed on Rust side? I tried downgrading and using the latest nightly build, without success. |
@bkchr Do we have any work-around solution? It's very strange that I can build when downgrade to 1.45.1 but all my colleges cannot :( |
Sorry, it took them 3 prs to fix it: rust-lang/rust#76698 I assume it should be fixed with the nightly from tomorrow. |
thanks @bkchr I confirm that I can build with version |
I'm on Windows @2075 , not sure if I should use the apple-darwin commands, also not sure the dates for Windows toolchain releases are the same. (i.e. 2020-08-19 didn't work for pc-windows-msvc) Which commands should Windows users do? |
for installation you can leave away the cpu / os part. could you try the following:
hth |
@2075 Still got the error, "WASM toolchain not installed, please install it!"
gives me
I did a lot of downloads trying to fix the errors I get from |
I try to build kitchen node using:
but got: I have set toolchain like:
There is any place where is written what exactly versions I need to build the node(including WASM toolchain which IFAIK is also needed)? Additional info:
Maybe @danforbes will help? ;-) |
@TomaszWaszczyk can you try running these commands for good measure and let me know if it helps? rustup update nightly-2020-08-23
rustup target add wasm32-unknown-unknown --toolchain nightly-2020-08-23 In particular, I think it may be the second command you need to run. However, I am a bit confused...shouldn't you be using |
#SOLVED After juggling of versions of toolchain I decided to ask and changed like @danforbes suggests:
Thanks! |
Just some more feedback but seems to have already been identified. Following the instructions at https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/setup Compilation build error as reported on compile step
Circumvented EDIT - Just saw the vscode dev container and realised this method won't work for the postStartCommand hook but will run for Mac locally % rustup show 130 ↵ installed toolchainsstable-x86_64-apple-darwin (default) installed targets for active toolchainarm-unknown-linux-gnueabihf active toolchainstable-x86_64-apple-darwin (default) |
It is worth to try to build the node via
|
Could you please post more detail on your solution? I'm having this same issue on v0.9.5. It appears this issue may re-occur from time to time depending present polkadot release and rust and clarity on resolution when it occurs would help the community. Your post mentions "I decided to ask and changed like @danforbes suggests", however you don't share the actual solution you used, or what @danforbes actually recommended, to make matters worse there are no posts in this thread by @danforbes that I can see. |
Maybe try to execute the script before trying to build. |
Below is what ended up working for me, potentially all that may be required is the last command of the four, I had however done the first three by the time I tried the fourth. rustup default nightly-x86_64-unknown-linux-gnu |
For me Nightly build is not working at the moment for the tutorial. |
Thanks a lot! @a-nickol it's working for me now. |
Also |
The opposite worked for me ... |
Hi,
I build substrate by following this document https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/setup
but I always encounter below error, running
cargo +nightly build --release
did not help, neither!My Environment:
What can I do to build the substrate? Thank you!
The text was updated successfully, but these errors were encountered: