-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WASM Runtime build fails with latest rust nightly #495
Comments
This is also an issue in upstream substrate: paritytech/substrate#6167 Hopefully soon the wasm target will be possible to build with stable toolchain.. paritytech/substrate#1252 |
Currently in our travis CI file we are forcing use of |
Similar but not the same, note the path:
|
Thanks @traumschule I will try to replicate it and if I can confirm its happening for me also maybe we will open another issue. |
I was able to build using
|
So I wasn't able to replicate the build error. I made sure to clear my |
Although I have not been able to replicate this on linux before I am also now seeing it on mac, and there has been more reports of this build issue. Here is the suggested workaround based on @traumschule recommendation above (just fixed one line to work for all platforms)
I will prepare a PR to update master branch with these build steps. |
Fixed in #1655 |
Discovered while working on #464:
srml-support
runtime module breaks when built for wasm target, which is done by the nightly toolchain. The latest nightly toolchain as of this date was2020-05-26
If you have recently updated your toolchain with
rustup update nightly
or perhaps just setup rust development system withrustup
and got the latest nightly you will probably see below compiler error when building:You can check the version you have:
rustc +nightly --version
You should be able to install an older version of nightly with:
# on Linux rustup install nightly-2020-05-23 rustup target add wasm32-unknown-unknown --toolchain nightly-2020-05-23
and specify the toolchain when building joystream-node
WASM_BUILD_TOOLCHAIN=nightly-2020-05-23 cargo build --release
You may have to install something older depending on what components are installed.
So if you see something like:
On OSX try
nightly-2020-05-15
You can always see what version you have installed with:
rustup show
The text was updated successfully, but these errors were encountered: