Closed aitorhh closed 4 years ago
@aitorhh, thank you for the report. The error is reproducible.
@aitorhh, there was a change introduced to WASM support in GraalVM.
We updated the doc https://www.graalvm.org/reference-manual/wasm/#running-webassembly-programs.
It is recommended to built WASM binary must be built using a recent Emscripten version. The Builtins option should point to wasi_snapshot_preview1:
wasm --Builtins=wasi_snapshot_preview1 example.wasm
.
Thanks for reporting the problem!
Describe the issue wasm not compiling while testing example provided at https://www.graalvm.org/docs/reference-manual/languages/wasm/
Steps to reproduce the issue Please include both build steps as well as run steps
sdk install java 20.0.0.r11-grl
sdk use java 20.0.0.r11-grl
wget https://github.com/graalvm/graalvm-ce-dev-builds/releases/download/20.1.0-dev-20200325_0537/wasm-installable-svm-java11-linux-amd64-20.1.0-dev.jar
gu install --force -L wasm-installable-svm-java11-linux-amd64-20.1.0-dev.jar
floyd.wasm
from https://www.graalvm.org/docs/reference-manual/languages/wasm/wasm --Builtins=memory,env:emscripten loyd.wasm
Describe GraalVM and your environment:
More details After running
wasm --Builtins=memory,env:emscripten loyd.wasm
:When using
wasm v20.0.0 from stable release
, I get a more detailed stacktrace: