Skip to content

Cross compilation needs matching bitness #48612

@Cynerd

Description

@Cynerd

What is the problem this feature will solve?

NodeJs seem to require matching bitness when cross-compiling because -m32 is passed to the compiler when compiling on a 64-bit system to a 32-bit one (such as on amd64 to armv7l). It is common that the toolchain targets only single architecture, and multi-architecture toolchains are an exception that everyone got used to due to amd64 supporting x86. The same is not expected if you are on aarch64, for example. Some CPUs just can't run a 32-bit instruction set; thus, your only option is emulation, which is really not a good option for compilation.

What is the feature you are proposing to solve the problem?

Get rid of the need to build host tools in the same bit size and thus passing of -m32 and other such options.the

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.feature requestIssues that request new features to be added to Node.js.stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions