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

wasm-bingen fails to parse files with relaxed-simd instructions #4263

Closed
dragostis opened this issue Nov 11, 2024 · 1 comment
Closed

wasm-bingen fails to parse files with relaxed-simd instructions #4263

dragostis opened this issue Nov 11, 2024 · 1 comment
Labels

Comments

@dragostis
Copy link

Any Rust crate with a core::arch::wasm32::f32x4_relaxed_madd call will break wasm-bindgen thusly (as reported by wasm-pack):

Caused by:
    0: failed to parse input as wasm
    1: failed to parse code section
    2: relaxed SIMD support is not enabled (at offset 0x332b)
Error: Running the wasm-bindgen CLI
Caused by: Running the wasm-bindgen CLI
Caused by: failed to execute `wasm-bindgen`: exited with exit status: 1
  full command: "/Users/dragos/.cargo/bin/wasm-bindgen" "/Users/dragos/Documents/rust/engine/target/wasm32-unknown-unknown/release/engine.wasm" "--out-dir" "/Users/dragos/Documents/rust/engine/pkg" "--typescript" "--target" "web"

It seems like this is caused by not having a way to enable the relaxed-simd feature in the parser.

@dragostis dragostis added the bug label Nov 11, 2024
@daxpedda
Copy link
Collaborator

I created a PR at Walrus for this: rustwasm/walrus#281.

This should automatically start working with the next point release of Walrus, so I will go ahead and close this issue as there is nothing wasm-bindgen can do here.

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

No branches or pull requests

2 participants