Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
0riginaln0 opened this issue Dec 18, 2024 · 1 comment
Open

Comments

@0riginaln0
Copy link
Contributor

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

@tjpalmer
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants