cargo-wasi icon indicating copy to clipboard operation
cargo-wasi copied to clipboard

It seems that `cargo wasi` uses an outdated version of `wasm-opt`

Open 0x7CFE opened this issue 4 years ago • 3 comments

I was trying to build parts of the rustc using cargo wasi and found that librustc_expand causes wasm-opt to crash.

I filed an issue https://github.com/WebAssembly/binaryen/issues/2821 but it seems that the most recent version does fine.

Any ideas on why this happens?

0x7CFE avatar May 02 '20 05:05 0x7CFE

This updated quite recently, although there has been one more release since then. Is the fix for your issue in that commit range?

alexcrichton avatar May 04 '20 20:05 alexcrichton

Honestly, I don't know. My experience is that wasm-opt compiled form master works, but the one that is executed by cargo wasi v0.1.22 does not.

I assume that the fix was introduced less than 2 weeks ago.

0x7CFE avatar May 05 '20 08:05 0x7CFE

Can you try running the binary releases from binaryen itself? If that doesn't work then this is likely an issue with binaryen's binary releases I think?

alexcrichton avatar May 06 '20 14:05 alexcrichton