You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wayonb
changed the title
was-opt fail with [parse exception: invalid code after misc prefix: 17 (at 0:61491)]
wasm-opt fail with [parse exception: invalid code after misc prefix: 17 (at 0:61491)]
Oct 30, 2024
When wasm-bindgen 0.2.94-95 sees the wasm target-features metadata emitted by rustc 1.82.0, it enables additional webassembly features on its output (bulk memory instructions) that can cause issues with downstream tools like wasm-opt. This will be fixed in the next release of wasm-bindgen. Until then, workarounds include adding --enable-bulk-memory to the wasm-opt commandline (if your runtime is compatible with bulk-memory instructions), not using wasm-opt at all, or downgrading to rust 1.81 or to wasm-bindgen 0.2.93.
🐛 Bug description
Our build was working up to rust 1.81.0.
With Rustc 1.82.0, I am getting an error with wasm-opt.
🤔 Expected Behavior
wasm-opt should work with rustc 1.82.0
👟 Steps to reproduce
🌍 Your environment
Include the relevant details of your environment.
Ubuntu 24.04(it works on MacOs)
wasm-pack version:
wasm-pack -V
wasm-pack 0.13.1
rustc version:
rustc -V
rustc 1.82.0 (f6e511eec 2024-10-15)
The text was updated successfully, but these errors were encountered: