-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
[deps/zlib] Android arm64 build fails due to missing cpufeatures library #46749
Comments
I think this part of if (is_android) {
import("//build/config/android/config.gni")
if (defined(android_ndk_root) && android_ndk_root != "") {
deps += [ "//third_party/android_ndk:cpu_features" ]
} else {
assert(false, "CPU detection requires the Android NDK")
}
} |
V8 basically slurps in this file: https://chromium.googlesource.com/android_ndk/+/refs/heads/main/sources/android/cpufeatures/cpu-features.c I don't really have a suggestion on how to fix that except by vendoring it and the other files except Android.mk in that directory. PR or better solution welcome, I'd say. |
@bnoordhuis My proposal would be to source it locally from $ANDROID_NDK_ROOT/sources/android/cpufeatures. I am not aware how to acces ENV variables in the gyp file though. |
You can't access them directly but you can from configure.py, which then writes config.gypi. However, that adds one more moving part to the build and moving parts have a tendency to break down, hence my suggestion of vendoring. That file seems to change only very infrequently; last two changes were 2 and 5 years ago, respectively. |
FWIW Lines 25 to 33 in 254574e
|
@bnoordhuis If it does not cause legal issues I think vendoring would be the most stable option indeed. The library itself seems deprecated anyways so I would not expect updates either. For me it is not quite clear how v8 sources it though, because it is not committed there either. Is the build system downloading it or how does it work with v8 deps? |
Yes, chromium's fetch tool downloads it when you clone the v8 repo. |
@nappy do you want to send a pull request or can I close this? |
Version
18.14.1
Platform
debian bullseye (host) / android arm64 (target)
Subsystem
deps
What steps will reproduce the bug?
Cross compile node for android / arm64.
How often does it reproduce? Is there a required condition?
Consistently
What is the expected behavior?
The build succeeding
What do you see instead?
Additional information
18.12.1 was building without issues in the same environment
References: @lpinca #45589
References: @richardlau #45589
The text was updated successfully, but these errors were encountered: