-
Notifications
You must be signed in to change notification settings - Fork 120
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
Post processing of generated Wasm failed with rustc 1.70.0-nightly #1058
Comments
Just had the same issue. If you are blocked by this, switch to the
|
I'm aware of the workarounds,
I understand that with ink! v4 |
I am still facing issue even though I change nightly v1.68 or v1.69 or v1.70 it doesn't work. |
@ganesh1233456 try with nightly |
@ashutoshvarma ... I am having a difficult time figuring out how to install and switch to |
@blairmunroakusa my system has rust installed already then I use |
I have the same issue. I'm compiling my source code ( Please, let us know what can be the reason for this non-deterministic behavior. It is really annoying issue for CI/CD processes |
I'm not sure what's happening on my local environment, I suggest anybody who is struggling with this build problem try to refer the Installation using Docker Image section and compile your contracts using official docker images. It works for me |
Ok @yahortsaryk @ganesh1233456 ...got it figured out on my system: First:
Then:
Still running updated nightly rustc as default: Thank you @ashutoshvarma |
Thanks a lots @blairmunroakusa, worked for me! Just to mention for anyone trying this method, if you have "rlib" crate-types in your project, you might wanna skip those and apply to actual contracts: "cdylib" crate-types |
Now I'm having same opcode throw when trying to run substrate-contracts-node. |
yes @blairmunroakusa exactly there is issue in substrate-contracts-node as well. Alternatively, I tend to download and use binary and it works. |
Thank you @ganesh1233456 , this worked for me. |
thanks, it worked but it's not deploying on the blockchain , maybe because its using Bineryen |
Rust Ideally we would disable that feature but it appears that this does not work, see this upstream issue: rust-lang/rust#109807. I will close this issue as a duplicate of #1139, where we can continue any discussion for the resolution of this. |
Summary
Building contracts with
rustc 1.70.0-nightly
failed due to error in post processing step due to error inparity-wasm
while loading the wasm module.https://substrate.stackexchange.com/questions/7881/error-loading-of-original-wasm-failed
https://github.com/paritytech/cargo-contract/blob/1d28f4ef3863e1f6a438f59890545eb87e1e863a/crates/build/src/lib.rs#L468-L471
Reproduce
Update the nightly to
v1.70.0
and build flipper example withcargo +nightly contract build
The text was updated successfully, but these errors were encountered: