Skip to content
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

Sign extending instructions emitted by Rust 1.70 are not compatible with wasm-opt 109 used by cargo-wasi #137

Closed
jeffcharles opened this issue Jun 2, 2023 · 0 comments · Fixed by #138

Comments

@jeffcharles
Copy link
Contributor

Rust 1.70 enabled the sign-ext feature for codegen for Wasm targets which results in instructions like i32.extend16_s being emitted. wasm-opt downloads version 109 of wasm-opt which does not include support for these instructions. This results in a compilation failure when running cargo wasi build --release when running Rust 1.70 for some Rust programs.

Updating the version of wasm-opt downloaded by cargo-wasi to at least version 111 seems to resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant