Open deadprogram opened 11 months ago
If I try to execute my WASM code compiled targeting wasi but without the WAMR_BUILD_LIBC_WASI=1
I get the following log from the board after flashing:
Connected to /dev/ttyACM0. Press Ctrl-C to exit.
*** Booting Zephyr OS build zephyr-v3.5.0-2399-gc94cd30cecbf ***
WASM module instantiate failed: allocate memory failed
elapsed: 14
If I compile iwasm
for Linux, and I set WAMR_BUILD_LIBC_WASI 0
then I get the following error:
$ ./iwasm ../../../app-samples/hello-world-tinygo/test.wasm
[16:13:34:719 - 7FCAE7617B80]: warning: failed to link import function (wasi_snapshot_preview1, fd_write)
Exception: lookup the entry point symbol (like main, _main, __main_argc_argv) failed
If I compile iwasm
with WAMR_BUILD_LIBC_WASI 1
then the code executes as I expect:
$ ./iwasm ../../../app-samples/hello-world-tinygo/test.wasm
Hello world!
@deadprogram thanks for reporting! I've been working on the zephyr support and will look into this!
Thanks @hasheddan
Hello @hasheddan any updates on this by any chance? :smile_cat:
:wave: :smiley_cat:
@deadprogram thank you for the ping and my apologies on the delay here! I have just opened #3086 to address the primary issue you encountered here, but am also investigating additional rough spots regarding WASI support with Zephyr. Feel free to try out the patch and report any further problems you encounter!
Hello, I have the same issue with build to qemu_cortex_a53
:(
I am running the latest wamr version (I've just pulled from main branch)
Is there any update on this issue? I'm having similar problems building with WAMR_BUILD_LIBC_WASI 1
on Zephyr. I'm still targeting WASI preview 1 so I'm on the release/1.3.x
branch.
I am trying to build the
product-mini/platforms/zephyr/simple
example targeting thenucleo_f767zi
board withWAMR_BUILD_LIBC_WASI
so that a WASM module compiled forwasi
can execute on the board itself.This is the command I am trying to use to build:
However, the code is unable to build without errors:
Any ideas? Thanks in advance!