-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bazel@HEAD doesn't build on gcc 11 #12756
Comments
abseil-cpp probably fixed it in abseil/abseil-cpp@5bf048b As a temporary workaround, declaring newer abseil-cpp dependency before grpc_deps() call in WORKSPACE may work (didn't test). Haven't found issue on gcc 11 compilation in https://github.com/grpc/grpc/issues so filing one sounds like a way to go |
Debian is tracking this as well for Debian 12. We'll make sure to include the fix once Debian 12 development opens later this year. |
This was fixed in the public abseil-cpp on October 20, 2020, probably a fair bit earlier in Google's internal repo. There are new features I would like to test in bazel ( I tried updating Specifically, when I build this branch, I get the following source distribution of abseil in the bazel-bazel dir:
The LTS.md file has contents:
This indicates to me that somehow an older version of abseil-cpp is being referenced instead of the one I reference in The only other reference to abseil I can find in the bazel source tree is in the The blog post about bazel LTS release seems to indicate that bazel master would follow more closely to the "live at head" philosophy, perhaps @hicksjoseph @aiuto or @philwo could comment? |
Right, this PR and this PR that bumped See these follow-up discussions what should be the right course of actions: bazelbuild/continuous-integration#1167, #13561 and this thread on bazel-discuss@ to get more feedback on this: https://groups.google.com/g/bazel-discuss/c/xXkCsFjosG8. |
I get these errors
when building Bazel 6.0.0-pre.20211117.1, but I get davido's errors mentioned in #12702 when building Bazel 4.2.2. |
Encountered the issue as well. I made a set of patches that resolves the issue. https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/29084/diffs To deal with GCC 11 FTBFS, you would need to pick: and, the first three commits have to be incorporated into java_tools as well. |
It would be nice to have a 4.2.3 with those changes cherry-picked. AFAIK, the issue could completely block Bazel from working with Java projects on a system that has GCC 11 installed. edit: on platforms where there is no prebuilt ijar binary: (unfortunately that very well includes linux_arm64, which now have a rather significant user presence)
|
Thanks. Your GitLab patches fixed by build issues for 4.2.2. |
How is java_tools patched? It is not part of the bazel distribution that I downloaded. Do I need to grab one of the releases from https://github.com/bazelbuild/java_tools/releases and place it in the bazel source directory? |
This issue seems to be outdated. |
Trying to build Bazel@HEAD (009ce7b) is failing here with:
Environment:
Apparently
abseil
is outdated and/or is missing#include limits
directive.It seems, that Bazel itself doesn't depend on
abseil
, but it's rather a transitive dependency ofgRPC
:The text was updated successfully, but these errors were encountered: