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

Support alpine prebuild #93

Open
njfamirm opened this issue Jun 26, 2023 · 2 comments
Open

Support alpine prebuild #93

njfamirm opened this issue Jun 26, 2023 · 2 comments

Comments

@njfamirm
Copy link

njfamirm commented Jun 26, 2023

Hi
when I want to install @fastly/js-compute on Alpine Linux, it says wizer not found!

yarn build:app
> js-compute-runtime app/index.js
/app/node_modules/@bytecodealliance/wizer-linux-x64/wizer: not found
Error: Failed to compile JavaScript to Wasm:  Wizer initialization failure

this is the content of wizer node_module dir

ls -lrth node_modules/@bytecodealliance/wizer/

total 40K    
-rwxr-xr-x    1 root     root         853 Jun 25 15:47 wizer.js
-rw-r--r--    1 root     root        5.5K Jun 25 15:47 update.js
-rw-r--r--    1 root     root        1.1K Jun 25 15:47 package.json
-rw-r--r--    1 root     root         968 Jun 25 15:47 package-helpers.js
-rw-r--r--    1 root     root         727 Jun 25 15:47 index.js
-rw-r--r--    1 root     root         332 Jun 25 15:47 README.md
-rw-r--r--    1 root     root       12.0K Jun 25 15:47 LICENSE.md

based on @JakeChampion 's comment
this error occurred because Alpine uses musl libc, that's don't prebuilt by wizer.

Please add this!

If you guide me, I can participate myself

@njfamirm
Copy link
Author

njfamirm commented Jun 26, 2023

maybe minimal change is add this to release workflow matrix

- build: x86_64-alpine
  os: alpine-latest
  target: x86_64-alpine-linux-musl

@boxman0617
Copy link

bump. Is this something that could happen? I also need to use this on an alpine based image

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

2 participants