build: fix android build#58574
Conversation
|
Review requested:
|
bnoordhuis
left a comment
There was a problem hiding this comment.
LGTM and I'll take your word for it that it builds. The commit log should be something like build: fix android build with a Fixes: https://github.com/nodejs/node/issues/58505 line.
targos
left a comment
There was a problem hiding this comment.
Since both cases are now identical, can we remove the condition and move the sources to the main sources array (starting at line 1445)
I have updated the commit message and included the build process. Please note that there might still be build errors on Apple Silicon processors. |
|
Still errors... |
Perhaps detail the errors you received to improve the debugging process |
Here's the link: #58505 |
|
Android issues has been fixed? |
|
Any user(s) here? #if (V8_LIBC_GLIBC || V8_LIBC_BSD || V8_LIBC_UCLIBC || V8_OS_SOLARIS) && !defined(__ANDROID__)
#define HAVE_EXECINFO_H 1
#endif |
|
Use /user/bin if build icu, etc... |
Failed to start CI- Validating Jenkins credentials ✔ Jenkins credentials valid - Querying data for job/node-test-pull-request/70900/ [SyntaxError: Unexpected token '<', ..." https://github.com/nodejs/node/actions/runs/26100654712 |
This commit fixes a bug in the V8 engine as detailed in the linked issue.
All tests pass locally.
Fixes: #58505
Info
To build Node.js on a Mac with Apple Silicon (& Android NDK), you need to switch to the Rosetta architecture (x86_64) before starting the build process. If you run into issues related to
LLONG_MAXfromlimits.h(not included), the only workaround is to define LLONG_MAX manually like this:deps/uv/src/unix/linux.cBuild
Make sure you've installed
Android NDK.python3 android-configure $ANDROID_NDK_HOME 24 arm64make -j2