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
I'm not sure why my specific compiler (tinygo) produces mixed output, but I believe it should work regardless.
When trying to run the following command
wasmer run main.wat
It returns the following error:
error: failed to run `main.wat`
╰─> 1: Error while importing "wasi_unstable"."fd_write": unknown import. Expected Function(FunctionType { params: [I32, I32, I32, I32], results: [I32] })
However, If I manually edit the .wat file, and change the imports to all use either "wasi_unstable" or "wasi_snapshot_preview1", it works without issue, only with mixed versions does it produce the error.
I am using the following version
echo"`wasmer -V`": wasmer 1.0.2
Steps to reproduce
Run a wasm file with mixed WASI version imports.
Expected behavior
Run the file and produce the correct program output without issue
Actual behavior
Returns the following error:
error: failed to run `main.wat`
╰─> 1: Error while importing "wasi_unstable"."fd_write": unknown import. Expected Function(FunctionType { params: [I32, I32, I32, I32], results: [I32] })
Additional Context
I have verified that the original wasm file, with the mixed WASI import versions runs succesfully using the wasmtime runtime.
The text was updated successfully, but these errors were encountered:
2251: Allow CLI to exec WASI w/ multiple namespaces r=MarkMcCaskey a=MarkMcCaskey
resolves#2226
Added a warning when it's done and a flag to opt out of the warning: `--allow-multiple-wasi-versions`
Wasm module to test with: [mixed-wasi.wasm.tar.gz](https://github.com/wasmerio/wasmer/files/6360575/mixed-wasi.wasm.tar.gz)
# Review
- [x] Add a short description of the change to the CHANGELOG.md file
Co-authored-by: Mark McCaskey <[email protected]>
Describe the bug
Wasmer failing to run a wasm file with mixed WASI imports.
I have a compiled file with the following imports:
I'm not sure why my specific compiler (tinygo) produces mixed output, but I believe it should work regardless.
When trying to run the following command
It returns the following error:
However, If I manually edit the
.wat
file, and change the imports to all use either "wasi_unstable" or "wasi_snapshot_preview1", it works without issue, only with mixed versions does it produce the error.I am using the following version
Steps to reproduce
Run a wasm file with mixed
WASI
version imports.Expected behavior
Run the file and produce the correct program output without issue
Actual behavior
Returns the following error:
Additional Context
I have verified that the original wasm file, with the mixed WASI import versions runs succesfully using the wasmtime runtime.
The text was updated successfully, but these errors were encountered: