-
Notifications
You must be signed in to change notification settings - Fork 824
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
Compatibility with Alpine Linux #1482
Comments
Thanks for creating the issue @RReverser! It seems the not-found symbols are all related to the emscripten integration. Perhaps we can shape it so we don't require those or adapt them to be compatible with musl. Would the latter suffice for your use case? |
Yeah that sounds reasonable. |
Just saw an announce of Wasmer 1.0 (congrats!) and tried it locally on an Alpine Linux dev laptop. Did not work, same reasons:
|
Sorry, this issue completely slipped for 1.0.0. @jubianchi can we disable emscripten when doing the musl build? |
I'll have a look at this today. |
@krasin some update here: I had Wasmer build on musl working. I'll continue working on that and see how we can produces this builds in our CI pipeline. |
@jubianchi awesome, thank you for the update! |
Closes wasmerio#1482 Closes wasmerio#1766
Closes wasmerio#1482 Closes wasmerio#1766
Closes wasmerio#1482 Closes wasmerio#1766
Closes wasmerio#1482 Closes wasmerio#1766
Closes wasmerio#1482 Closes wasmerio#1766
Closes wasmerio#1482 Closes wasmerio#1766
Closes wasmerio#1482 Closes wasmerio#1766
Closes wasmerio#1482 Closes wasmerio#1766
Closes wasmerio#1482 Closes wasmerio#1766
Closes wasmerio#1482 Closes wasmerio#1766
Closes wasmerio#1482 Closes wasmerio#1766
Closes wasmerio#1482 Closes wasmerio#1766
2003: chore: Build Wasmer on musl r=jubianchi a=jubianchi This patch adds a specific build for musl. Currently, it will only support JIT engine. I also changes the workflow definition a bit so we don't depend on the OS name but rather on the environment ID which is our convention. Closes #1482 Closes #1766 <!-- Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test: https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests --> # Description <!-- Provide details regarding the change including motivation, links to related issues, and the context of the PR. --> # Review - [ ] Add a short description of the the change to the CHANGELOG.md file Co-authored-by: jubianchi <[email protected]>
Thanks for proposing a new feature!
Motivation
Many tiny Docker deployments use Alpine Linux as its base to reduce size of images and containers. Currently, wasmer is incompatible with such environments because it's compiled against glibc.
Proposed solution
Provide a build of wasmer that can work with musl libc as well.
Additional context
For background, initially I stumbled upon this due to non-sensical error after installation:
After searching around, I found explanation of a similar issue as well a workaround that creates a symbolic link for musl libc pretending to be full one: https://stackoverflow.com/questions/34729748/installed-go-binary-not-found-in-path-on-alpine-linux-docker
That helped a bit, but there are still missing functions due to differences in libc implementations:
Hence, I think it would be best if wasmer would be built against musl as well.
The text was updated successfully, but these errors were encountered: