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
{{ message }}
Repository navigation
wasi interop failed to work after .net 9 preview 7 release #106523
Wasm import export seems to be broken in this preview.
It looks like the wasmtime recognize the output wasm file to be a component instead of executable wasm file.
Reproduction Steps
run the native sample with
./dotnet.cmd build /p:TargetOS=wasi /p:Configuration=release /t:RunSample src/mono/sample/wasi/native
Expected behavior
Get correct result
Actual behavior
Error: cannot execute a component without --wasm component-model
Native sample is currently broken because of some trimming issue. I'm looking at it as part of #106310
Interop with C code in the same .wasm core module (which is WASM core import/export) is not related to component-model.
So I guess you need to upgrade your wasmtime ?
Native sample is currently broken because of some trimming issue. I'm looking at it as part of #106310
Interop with C code in the same .wasm core module (which is WASM core import/export) is not related to component-model. So I guess you need to upgrade your wasmtime ?
I added <TrimMode>partial</TrimMode> to the native sample and it worked now.
Thanks for the information.
So I guess it's actually a trim issue instead of an interop issue
Activity
pavelsavara commentedon Aug 19, 2024
We started producing WASI components and switched to WASI preview2.
We are not going to support preview 1.
ReneeGA2020 commentedon Aug 19, 2024
I assume there will be new sample for interop? As we still need way to invoke outside api?
pavelsavara commentedon Aug 19, 2024
Native sample is currently broken because of some trimming issue. I'm looking at it as part of #106310
Interop with C code in the same .wasm core module (which is WASM core import/export) is not related to component-model.
So I guess you need to upgrade your wasmtime ?
ReneeGA2020 commentedon Aug 21, 2024
I added
<TrimMode>partial</TrimMode>to the native sample and it worked now.Thanks for the information.
So I guess it's actually a trim issue instead of an interop issue