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

WASM file detected as invalid because bulk memory support is not enabled #3932

Closed
k33g opened this issue May 31, 2023 · 3 comments
Closed

WASM file detected as invalid because bulk memory support is not enabled #3932

k33g opened this issue May 31, 2023 · 3 comments
Labels
❓ question I've a question!

Comments

@k33g
Copy link

k33g commented May 31, 2023

Summary

Hello,
I build a wasm module with TinyGo like this:

tinygo build -o hello-orange.wasm \
    -scheduler=none \
    --no-debug \
    -target wasi ./main.go 

I would like to publish it to https://wapm.io/, but when I try this command wapm publish, I get this error message:

Error: WASM file "hello-orange.wasm" detected as invalid because bulk memory support is not enabled (at offset 3196)

I created an issue on the TinyGo project, but I would like to know if I forgot something in wapm.toml? Thank you 🙏

Additional details

wapm.toml

[package]
name = "k33g/hello-orange"
version = "1.0.0"
description = "Package description for k33g/hello-orange"
license = "MIT"

[[module]]
name = "hello-orange"
source = "hello-orange.wasm"
abi = "wasi"
@Michael-F-Bryan
Copy link
Contributor

I believe this was resolved in #3473 and that fix made its way into the 3.1 or 3.2 release.

@k33g let us know if updating your wasmer CLI version doesn't fix this and we can re-open the ticket.

@k33g
Copy link
Author

k33g commented May 31, 2023

@Michael-F-Bryan apparently it's something else

wasmer 3.3.0
wapm-cli 0.5.9

@wellcaffeinated
Copy link

Same thing is happening with me. I'm using rust stable (although I tried compiling with nightly and ran into this: wasmerio/wai#43 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question I've a question!
Projects
None yet
Development

No branches or pull requests

3 participants