-
Notifications
You must be signed in to change notification settings - Fork 84
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
ci: upgrade to Bazel 0.27.0 #116
Comments
Bazel 0.27 comes with support for Android NDK 19 and 20, which promoted some warnings into errors according to the NDK build system maintainers guide. These were promoted because they could lead into bugs with NDK-Clang compilations. See https://source.bazel.build/bazel/+/00e29b7cd80df6a2762bc8b4b035f5a99466f5f6:src/main/java/com/google/devtools/build/lib/bazel/rules/android/ndkcrosstools/r19/AndroidNdkCrosstoolsR19.java;l=65-100 for more information. |
Getting back to this. Yep, @jin that is what I am seeing:
So definitely the promoted warnings. |
Just adding a note here - #155 is on hold until we update to bazel 0.27.0 |
Filed bazel-contrib/rules_foreign_cc#289 upstream about our current inability to easily check in CMake configuration if we're targeting Android. If we could do that I believe this patch would be enough libevent/libevent#850 In the meantime I will try and do this in envoy only for Android |
The Android NDK doesn't assume `_GNU_SOURCE`, clang only assumes it for C++ builds, not C builds. libevent uses `pipe2` which in the NDK is only exposed in the header when these variables are set. In bazel 0.27.0 these implicit use became an error. More details: - envoyproxy/envoy-mobile#116 - libevent/libevent#850 Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
Here's the temporary envoy fix envoyproxy/envoy#7497 |
The Android NDK doesn't assume `_GNU_SOURCE`, clang only assumes it for C++ builds, not C builds. libevent uses `pipe2` which in the NDK is only exposed in the header when these variables are set. In bazel 0.27.0 these implicit use became an error. More details: - envoyproxy/envoy-mobile#116 - libevent/libevent#850 Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
This gives us that fix #236 |
Bazel released a new version. CI currently runs on 0.26.1.
There is a starter PR to do so. However, we encountered build issues with Android NDK on Linux due to missing
pipe2
definitions.The text was updated successfully, but these errors were encountered: