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.
Changes introduced with v4.2.4 broke the ARM/Android build. The following error occurs:
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.
I'm not sure why error message from the build script gives a syntax error instead.
Cheers,
Camz.