wasmer icon indicating copy to clipboard operation
wasmer copied to clipboard

[wamr] ld: library 'vmlib' not found

Open guillemcordoba opened this issue 10 months ago • 3 comments

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

  1. Create a new rust binary.
  2. Add Wasmer as a dependency in Cargo.toml like this: wasmer = {version = "5", default-features = false, features = ["wamr"]}
  3. 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.

guillemcordoba avatar Jan 18 '25 13:01 guillemcordoba

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 avatar Jan 23 '25 08:01 xdoardo

@xdoardo any update here? Thanks much!

jesselang avatar May 02 '25 22:05 jesselang

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.

zippy avatar Aug 29 '25 21:08 zippy