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
A WASM is output with the WASM magic number, but a version of 0x1000d as reported by wabt wasm_validate. Is this by design? Has the 9.x compiler moved beyond and no longer supporting version 1 or is there some silent failure munging the output wasm bytes?
The text was updated successfully, but these errors were encountered:
A WASM is output with the WASM magic number, but a version of 0x1000d as reported by wabt wasm_validate. Is this by design?
Yes, this is expected.
In .NET 9, we (.NET in general) have moved to depending on WASI Preview 2 (as opposed to WASI Preview 1), and producing WASM Components instead of core WASM modules. The components use a distinct binary format, which is why you see validation errors.
If you are unable to change the WASM runtime in use (to one that supports running components natively, e. g. wasmtime), I am afraid staying on .NET 8 is the only option for the time being. In the longer term, we may bring back the ability to produce core WASM modules (see WebAssembly/component-model#378), but they would still depend on WASI P2 APIs.
Also we now consume WASIp2 APIs directly (not via libc shims) so there is truly no way back.
wasi-libc would eventually become also just dependent on p2 or p3
I have a wasi-wasm project compiling a WASM successfully under the 8.x compiler, validated by wabt, and running in a Chicory runtime. E.g.
However, when I try to switch to the 9.x compiler e.g.
A WASM is output with the WASM magic number, but a version of 0x1000d as reported by wabt wasm_validate. Is this by design? Has the 9.x compiler moved beyond and no longer supporting version 1 or is there some silent failure munging the output wasm bytes?
The text was updated successfully, but these errors were encountered: