wasm4
wasm4 copied to clipboard
Nelua template does not work with WASI SDK version higher than 23
Nelua template works with the wasi-sdk-23.0
But if we use 24 or 25 version, after w4 run build/cart.wasm we get the following error:
Uncaught (in promise) TypeError: import object field 'wasi_snapshot_preview1' is not an Object
I ran wasm-objdump -x cartridges compiled with 25 and 23
And in the 25th dump there is this line, which is not in the 23rd.
- func[2] sig=8 <wasi_snapshot_preview1.random_get> <- wasi_snapshot_preview1.random_get
For what it's worth, for my taca wasm app runtime, I'm currently using wasi-sdk 24 with some nelua snapshot. I haven't tried reviewing either the message above nor what's different from wasm4 in my config, though.