Stream: rust-toolchain

Topic: wasimd + wasm-bindgen struggles


view this post on Zulip Jubilee (Apr 16 2021 at 19:19):

I think somewhere in the Rust wasm toolchain is borked because I can't get my wasm SIMD tests to pass anymore. That or Rust is emitting the wrong SIMD code. We opened https://github.com/rustwasm/wasm-bindgen/issues/2522 about this, but even overriding to trunk doesn't seem to fix it.

An example from CI: https://travis-ci.com/github/rust-lang/stdsimd/jobs/497585556 Error: failed to deserialize wasm module Caused by: 0: failed to parse code section 1: Unknown 0xfd opcode (at offs...

view this post on Zulip Alex Crichton (Apr 16 2021 at 19:43):

@Jubilee when you're overriding to trunk you're not pulling in the wasm-bindgen-cli binary itself compiled from trunk, you'd have to compile that from source

view this post on Zulip Alex Crichton (Apr 16 2021 at 19:43):

I don't know how to configure wasm-pack to do this

view this post on Zulip Jubilee (Apr 16 2021 at 19:43):

ugh.

view this post on Zulip Jubilee (Apr 16 2021 at 19:44):

So I'd have to rebuild wasm-pack from source and then use that.

view this post on Zulip Jubilee (Apr 16 2021 at 21:26):

Thank you for letting me know, I will figure something out. Or wait. One of the two~ :musical_notes:


Last updated: Dec 23 2024 at 13:07 UTC