nodejs / nodejs/node-gyp

Compiling on x64 for arm64

Open
#3,045 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Arm
Dominant language
Python
Stars
10.7k
Forks
1.9k
Avg merge
1d 4h
Merged PRs (30d)
5

Description

Is there a list available of possible values for the --arch option?

I am trying to compile for arm64 and cannot seem to find the right key for that architecture...

I am compiling on x64, but need to compile for a Raspberry Pi.

I tried this, but it doesn't work:
node-gyp clean configure build --arch=arm

The only values that do something for --arch are 'ia32', everything else gets compiled to x86-64.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by checking node-gyp's documented --arch values and how the shown command handles arm64 cross-compilation, then compare the Raspberry Pi target with the reported x64 result. Done means the supported value and a working or clearly documented limitation are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, python
Domain
build-system, embedded-iot
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.