Hi together,
I want to get the ref_types sample run available under https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/doc/ref_types.md and are facing the following problem:
I enabled in iwasm the corresponding feature https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/product-mini/platforms/linux/CMakeLists.txt#L112
and get the following error:
[07:17:10:325 - 7FFFF78A17C0]: warning: failed to link import function (env, native-cmp-externref)
[07:17:10:347 - 7FFFF78A17C0]: warning: failed to link import function (env, native-chk-externref)
I have to mention that currently I'm working on version 1.3.2.
commit 3f5e2bd23bcb8eb3767c8e17789c6a2e3e912a08 (HEAD, tag: WAMR-1.3.3, origin/release/1.3.x)
Is there something else needed to get loaded to get it run?
Thanks for helping
Regards
Daniel
At least I can say that the error message is coming at 2.2.0 as well. Just enabling the feature WAMR_BUILD_REF_TYPES during build does not seem to solve the problem.
Steps to reproduce the problem I'm facing:
I'm working and loading the provided devcontainer as environment.
git checkout WAMR-2.2.0
# in wasm-micro-runtime/product-mini/platforms/linux/build
cmake .. -DWAMR_BUILD_REF_TYPES=1
make
Building the sample:
# in wasm-micro-runtime/samples/ref-types
cmake .
make
and finally try to run it with
# in wasm-micro-runtime/product-mini/platforms/linux/build
./iwasm ../../../../samples/ref-types/hello.wasm
This leads to the error above.
Last updated: Jan 24 2025 at 00:11 UTC