Skip to content

[wamr] ld: library 'vmlib' not found #5351

@guillemcordoba

Description

@guillemcordoba

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions