-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failure when cross-compiling for ARM/Android #4860
Comments
@camz did v4.2.3 work as expected? |
Yes, v.4.2.3 builds as expected. Using the following commands:
|
/cc @nodejs/build @jasnell |
v4.2.4 was the first release where snapshots were properly enabled (49b3c3b). |
See also nodejs/build#266 |
This has been noticed in the comments starting at nodejs/build#266 (comment) . I fixed cross compilation for ARM with snapshots, but haven't been able to try Android. I do not know any reason why it should not work, should be just adapting the |
I'm seeking some feedback about how Node.js is used on Android if anyone watching this thread would like to tell us about it: nodejs/build#359 |
android-configure passes |
@bnoordhuis Is there an open issue about not being able to build with snapshots on Android, or should one be created? |
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.
The text was updated successfully, but these errors were encountered: