Skip to content

Build failure when cross-compiling for ARM/Android #4860

@camz

Description

@camz

Changes introduced with v4.2.4 broke the ARM/Android build. The following error occurs:

./out/Release/mksnapshot: 1: ./out/Release/mksnapshot: Syntax error: word unexpected (expecting ")")

The issue is that mksnapshot has been compiled for the ARM/Android target, but is then being executed on the Linux (x86) host. Building and compiling node for Linux in a separate directory then copying over the mksnapshot utility to the cross-compile folder and re-running make allows the build to finish properly.

The error is misleading, attempting to run the mksnapshot ARM/Android binary without any options gives a different error message that properly describes the issue.

bash: ./out/Release/mksnapshot: cannot execute binary file: Exec format error

I'm not sure why error message from the build script gives a syntax error instead.

Cheers,
Camz.

Metadata

Metadata

Assignees

No one assigned

    Labels

    armIssues and PRs related to the ARM platform.buildIssues and PRs related to build files or the CI.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions