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 for linux arm64 musl #564

Closed
DonJayamanne opened this issue Mar 14, 2023 · 0 comments · Fixed by #691
Closed

Support for linux arm64 musl #564

DonJayamanne opened this issue Mar 14, 2023 · 0 comments · Fixed by #691

Comments

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Mar 14, 2023

Is your feature request related to a problem? Please describe.
It is a feature request.

Describe the solution you'd like
Please could this npm package ship with the linux arm64 musl binaries.
Optionally please could someone provide instructions to bulid these binaries.
I have tried to build them myself, however they fail to load with the following error message

warn 03:53:53.069: Exception while attempting zmq : Error relocating .../node_modules/zeromq/prebuilds/linux-arm64/node.napi.musl.node: unsupported relocation type 7

Describe alternatives you've considered
I have tried building the MSUL versions myself, however as mentioned earlier, it fails to load
Here is the docker docker command used to build them

(below is an azure pipeline task)

    - task: Bash@3
      displayName: Build
      env:
        CURRENDIR: $(Build.SourcesDirectory)
        DOCKERCMD: apk add --no-cache pkgconfig curl tar python3 make gcc g++ cmake musl-dev && npm i -g pnpm && npm_config_arch=arm64 ARCH=arm64 pnpm install && npm_config_arch=arm64 ARCH=arm64 pnpm run prebuild
      inputs:
        targetType: 'inline'
        workingDirectory: zeromq.js
        script: |
            docker pull node:18-alpine
            docker tag node:18-alpine builder
            docker run --volume $CURRENDIR/zeromq.js:/app --workdir /app --privileged -e ARCH='arm64' -e npm_config_arch='arm64' builder sh -c "$DOCKERCMD"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant