Skip to content

Cannot cross-compile with ninja #46690

Closed as not planned
Closed as not planned
@rossburton

Description

@rossburton

Version

19.6.0 (actually git 1b87cb6)

Platform

Linux oss-tx204 5.15.0-41-generic #44-Ubuntu SMP Thu Jun 23 11:20:13 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

Configure node to use the cross-compile rules with ninja, then try building it:

$ ./configure --cross-compiling --ninja && make
Node.js configure: Found Python 3.10.6...
INFO: configure completed successfully
ninja -C out/Release
ninja: Entering directory `out/Release'
ninja: error: obj.host/tools/v8_gypfiles/run_torque.ninja:1451: multiple rules generate gen/torque-generated/bit-fields.h [-w dupbuild=err]

This doesn't happen if using ninja but not cross-compiling, or if cross-compiling without ninja.

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

No response

What do you see instead?

ninja: error: obj.host/tools/v8_gypfiles/run_torque.ninja:1451: multiple rules generate gen/torque-generated/bit-fields.h [-w dupbuild=err]

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.duplicateIssues and PRs that are duplicates of other issues or PRs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions