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
When I run make-test it appears to correctly create a wasm file. The imports include a bunch of wasi interfaces. The exports are the one function that we expect to see. Unfortunately calling that function complains of an unimplemented import:
I reached out to @rylev on the Bytecode Alliance Zulip and was expecting to be told that I needed to use the .link or .compose commands to satisfy the repltest.wasm imports. I haven't been able to find any examples of how to use .link or .compose, and wasn't able to figure it out from reading the wepl source.
The text was updated successfully, but these errors were encountered:
It might also be worth mentioning that I tried using WASI-Virt. With that I was able to create a wasm file with no imports. But I think the code was still calling clock_time_get and so I would see a different error, one coming from virt because it wasn't expecting to be called.
See #27. I think the Wasmtime being used needs to be updated to support WASI 0.2.0. This project is on Wasmtime 22 which supports WASI 0.1.0 according to Copilot. Wasmtime 23 & 24 support WASI 0.2.0. The recent released Wasmtime 25 supports WASI 0.2.1.
I'm having some difficulty running js code compiled to wasm using
jco
inwepl
. I've tried to boil this down to a minimal example.repltest.js
repltest.wit
make-test
When I run
make-test
it appears to correctly create a wasm file. The imports include a bunch of wasi interfaces. The exports are the one function that we expect to see. Unfortunately calling that function complains of an unimplemented import:I reached out to @rylev on the Bytecode Alliance Zulip and was expecting to be told that I needed to use the
.link
or.compose
commands to satisfy therepltest.wasm
imports. I haven't been able to find any examples of how to use.link
or.compose
, and wasn't able to figure it out from reading the wepl source.The text was updated successfully, but these errors were encountered: