-
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
Failed to build some contracts with rustc 1.70 #1139
Comments
There is an upstream discussion: rust-lang/rust#109807 |
@kvinwang thanks for reporting this we will look into it. Regarding the linked issue, |
Yep, it is relevant. I can also reproduce the example in that issue with:
where For ink contracts, a simple example to reproduce it could be: |
Thanks @kvinwang for clarifying and for the repro that is super helpful. It is high priority for this to be resolved ASAP, though it seems we are dependent on that upstream issue being resolved? Even if we update |
This avoids an issue where the sign-ext feature is enabled in Rust >= 1.70.0. [cargo-contract issue](use-ink/cargo-contract#1139) [rust issue](rust-lang/rust#109807)
A patch for parity-wasm would be much appreciated ❤️ (I know it's deprecated but still) |
@webmaster128 the idea is to replace it see #1141 |
Thank you @ascjones. I'll follow that ticket. We use parity-wasm as well in CosmWasm and getting a patch there short term while looking for alternatives mid-term would be great. But I also understand if there is nobody maintaining parity-wasm anymore. |
When we do this I will look at what the filecoin guys have done in https://github.com/filecoin-project/fvm-wasm-instrument, which is a fork of https://github.com/paritytech/wasm-instrument with |
Turns out you can tell parity-wasm to allow the sign extension opcodes via an already existing feature. This might help short term until the mogration to a different parser is completed. See CosmWasm/cosmwasm#1743. |
Fantastic, that is really useful thanks! It will make fixing it on the |
Not sure if this helps in your case, but we realized that a different way to mitigate the problem is running the compiled Wasm through wasm-opt with |
@kvinwang Have you fixed this issue? I have this issue as well |
I use rustc-1.69 as a workaround. |
The failed contract is here: https://github.com/Phala-Network/phala-blockchain/tree/master/crates/pink-drivers/system
The text was updated successfully, but these errors were encountered: