wasmer
wasmer copied to clipboard
[wamr] ld: library 'vmlib' not found
Describe the bug
Building a rust binary that depends on Wasmer v5 with the wamr feature enabled targeting iOS fails with this error in the linking step:
error: linking with `cc` failed: exit status: 1
|
= note: env -u MACOSX_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/guillem
...
...
...
= note: ld: library 'vmlib' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Steps to reproduce
- Create a new rust binary.
- Add Wasmer as a dependency in Cargo.toml like this:
wasmer = {version = "5", default-features = false, features = ["wamr"]} - Run
cargo build --target aarch64-apple-ios.
Here is a link to a minimal reproduction: https://github.com/guillemcordoba/vmlib-issue-reproduction/actions/runs/12844217193/job/35816976026#step:5:452
Expected behavior
A binary can be built for iOS with the wamr engine.
Actual behavior
Compilation fails.
Additional context
I'm running macOS Sonoma 14.6.1.
Hello! We will tackle this while preparing the 5.1 release, which should come in some weeks. In the meantime, if it is a priority for you, feel free to open a PR, which we'll be glad to review.
@xdoardo any update here? Thanks much!
There has been more work on trying to figure this out, it appears the issue is in wamr itself please see here for an issue created there.