Stream: git-wasmtime

Topic: wasmtime / issue #4417 I tried to execute wasm but fail w...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 08 2022 at 11:48):

Zhangyx24 opened issue #4417:

The wat is :

test.txt

The command is wasmtime run test.wat

The output is :
Caused by:
0: failed to instantiate "test.wasm"
1: unknown import: env::puts has not been defined

view this post on Zulip Wasmtime GitHub notifications bot (Jul 08 2022 at 12:21):

sunfishcode commented on issue #4417:

puts as a host function appears to be a wamr-specific feature. If you compile your program with wasi-sdk, it'll link in a puts function from wasi-libc, which will run in all WASI engines.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 08 2022 at 12:51):

Zhangyx24 commented on issue #4417:

Thanks a lot!

view this post on Zulip Wasmtime GitHub notifications bot (Jul 08 2022 at 12:51):

Zhangyx24 closed issue #4417:

The wat is :

test.txt

The command is wasmtime run test.wat

The output is :
Caused by:
0: failed to instantiate "test.wasm"
1: unknown import: env::puts has not been defined


Last updated: Dec 23 2024 at 12:05 UTC