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

Request for arm64 Linux Prebuild Package #2392

Open
narukeu opened this issue Jul 3, 2024 · 2 comments
Open

Request for arm64 Linux Prebuild Package #2392

narukeu opened this issue Jul 3, 2024 · 2 comments

Comments

@narukeu
Copy link

narukeu commented Jul 3, 2024

Issue or Feature

I am creating a Docker container for a Node.js project on an arm64 computer, which includes node-canvas. I believe there are many users with similar needs, so I hope you can provide an arm64 Linux prebuild package.

Your Environment

Debian GNU/Linux arm64

@giacomo-bananadevs
Copy link

Does anyone managed to build the package from source? I can't find a way to build it on a windows ARM64 that runs WSL2.
I need to install the package on the ubuntu subsystem, running:

gyp info using **[email protected]**
gyp info using **[email protected] | linux | arm64**
gyp info find Python using **Python version 3.10.12** found at "/usr/bin/python3"

Even trying to hand-compiling the package results always in the same error:

gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "undefined".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v20.10.0
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 1
gyp ERR! stack at ChildProcess.<anonymous> ([path_top_home_dir]/.nvm/versions/node/v20.10.0/lib/node_modules/node-gyp/lib/build.js:216:23)
gyp ERR! **System Linux 5.15.153.1-microsoft-standard-WSL2**
gyp ERR! command "[path_top_home_dir]/.nvm/versions/node/v20.10.0/bin/node" "[path_top_home_dir]/.nvm/versions/node/v20.10.0/bin/node-gyp" "build"
gyp ERR! cwd [path_to_prj]/node_modules/canvas/build
gyp ERR! node -v v20.10.0
gyp ERR! node-gyp -v v10.2.0
gyp ERR! not ok

I there any workaround to installa the package on Ubuntu ARM64? Or am I missing something?

@cjutstraMaxedy
Copy link

This would also be very helpful for us. We're running automated tests on ARM machines.

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

3 participants