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
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
Regression?
worked fine before .net 9 preview 7
Known Workarounds
No response
Configuration
Tested in windows 11
Other information
No response
The text was updated successfully, but these errors were encountered:
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
Description
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
Regression?
worked fine before .net 9 preview 7
Known Workarounds
No response
Configuration
Tested in windows 11
Other information
No response
The text was updated successfully, but these errors were encountered: