cargo new wasm64_demo
cargo +nightly build -Z build-std=std,panic_abort --target wasm64-unknown-unknown
target/wasm64-unknown-unknown/debug/wasm64_demo.wasm
wasm-tools validate -f memory64 wasm64_demo.wasm
The validation failed with an error like:
error: invalid table resizable limits flags (at offset 0xb7d)
Is this a bug of the Rust wasm64
target or the wasmparser
crate behind wasm-tools validate
?
@Alex Crichton Could you take a look? I found that you are the maintainer of both the Rust wasm64
target and the wasm-tools
project.
@Linwei Shang what version of wasm-tools
aare you using? I ran that command locally and it produced module
I believe you're running into something where a "table64" extension was added to the memory64 proposal recently which it looks like LLVM is now using
so you might be using a version of wasm-tools
from before this extension was implemented
You’re absolutely right, that solves the problem.
I was using wasm-tools
v1.0.60 which is the latest version from homebrew.
It seems that the homebrew version is outdated.
Oh dear yes that's a bit outdated
I've not tried this before but I'm trying to update homebrew in https://github.com/Homebrew/homebrew-core/pull/183477
Alex Crichton said:
... I ran that command locally and it produced module
reading over this my typing is sort of awful, I meant to say that it produced a valid module but I think you got the point anyway (sorry about that)
ok I think homebrew should be updated and auto-updating again now
Last updated: Dec 23 2024 at 13:07 UTC