Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
guillemcordoba opened this issue Jan 18, 2025 · 0 comments
Open

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

guillemcordoba opened this issue Jan 18, 2025 · 0 comments

Comments

@guillemcordoba
Copy link

guillemcordoba commented Jan 18, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant