wasm4 icon indicating copy to clipboard operation
wasm4 copied to clipboard

Nelua template does not work with WASI SDK version higher than 23

Open 0riginaln0 opened this issue 1 year ago • 1 comments

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 image

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

23-antcopter-wasm-objdump.txt 25-antcopter-wasm-objdump.txt

0riginaln0 avatar Dec 18 '24 11:12 0riginaln0

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.

tjpalmer avatar Dec 18 '24 14:12 tjpalmer