Skip to content
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

PAGE_SIZE in hb-set-private.hh collides with Android NDK asm/page.h PAGE_SIZE macro #576

Closed
drott opened this issue Oct 23, 2017 · 2 comments
Labels
Chrome Chrome/Chromium project related issues and requests

Comments

@drott
Copy link
Collaborator

drott commented Oct 23, 2017

I suggest to add an #undef, compare
https://chromium-review.googlesource.com/c/chromium/src/+/718752/12/third_party/harfbuzz-ng/src/hb-set-private.hh#33

@drott drott added the Chrome Chrome/Chromium project related issues and requests label Oct 23, 2017
@behdad behdad closed this as completed in d0f0ff8 Oct 23, 2017
@ebraminio
Copy link
Collaborator

@drott and @behdad, can you help on reproducing this so we can test Android properly on hb CI?

If you issue this command:
mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_NATIVE_API_LEVEL=16 ..

on a system with proper $ANDROID_NDK environment variable, an arm compatible binary will be built but I can't see this issue specifically. What do you suggest for reproducing this?

@drott
Copy link
Collaborator Author

drott commented Oct 23, 2017

Probably the Chromium freetype_harfbuzz target GN build pulled in some of the Android headers. If you have a Chromium build and prepare it to build Android targets, then acquire a preprocessed output for one of the failing files, you may be able to see where this is pulled from.

I am not sure how the NDK is structured, but otherwise perhaps adding some forced global includes from the NDK may help checking this in CI.

@ebraminio ebraminio mentioned this issue Oct 29, 2017
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chrome Chrome/Chromium project related issues and requests
Projects
None yet
Development

No branches or pull requests

2 participants