-
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
Can't bootstrap with clang >= 15 and gcc >= 13 #18167
Comments
@aaronmondal I am seeing probably a different issue trying to build Bazel using gcc 13: ERROR: /home/davido/.cache/bazel/_bazel_davido/0fa756dec521553dbe2dde6b6eac99b4/external/com_google_absl/absl/strings/BUILD.bazel:1078:11: Compiling absl/strings/internal/str_format/float_conversion.cc [for tool] failed: (Exit 1): gcc failed: error executing command (from target @com_google_absl//absl/strings:str_format_internal) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 38 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
In file included from external/com_google_absl/absl/strings/internal/str_format/float_conversion.h:18,
from external/com_google_absl/absl/strings/internal/str_format/float_conversion.cc:15:
external/com_google_absl/absl/strings/internal/str_format/extension.h:34:6: warning: elaborated-type-specifier for a scoped enum must not use the 'class' keyword
34 | enum class FormatConversionChar : uint8_t;
| ~~~~ ^~~~~
| ----- Ultimately, Not sure, if we need a separate issue for that? My environment: $ gcc --version
gcc (SUSE Linux) 13.0.1 20230412 (experimental) [revision d339e9802f758e051b0a1ef6db732ff846cbf4e3] |
@davido This is probably related "closely enough" to be a merged issue. The gRPC dependency (and related deps like upb and abseil) is ancient from an upstream/living at head perspective. I'll update the issue to include GCC. IMO it's an issue in general that some dependencies are not updated frequently enough and the Bazel build tends to fail with recent compiler versions. |
@aaronmondal thanks for the update. I'm working on non intrusive |
Closes bazelbuild#18167. abseil is missing stdint.h include, that broke recent compiler versions. This problem was fixed in this commit upstream: abseil/abseil-cpp@36a4b07 Note, that we cannot update to the latst abseil-cpp version, because this breaking change: "Abseil now requires at least C++14" starting from LTS release 20230125 and Bazel is passing per default -std=c++0x option, see: bazelbuild#18181
Fixes bazelbuild#18167. abseil-cpp is missing stdint.h header include, that broke recent compiler versions. This problem was fixed in this commit upstream: [1]. Due to another commit: [2] in abseil-cpp, we also have to bump grpc as well to make them compatible. [1] abseil/abseil-cpp@36a4b07 [2] abseil/abseil-cpp@b8bbe92
Fixes bazelbuild#18167. abseil-cpp is missing stdint.h header include, that broke recent compiler versions. This problem was fixed in this commit upstream: [1]. Due to another commit: [2] in abseil-cpp, we also have to bump grpc as well to make them compatible. [1] abseil/abseil-cpp@36a4b07 [2] abseil/abseil-cpp@b8bbe92
PART 1: prepare third_party/grpc files for new version Composed PR: bazelbuild#18216. Fixes bazelbuild#18167. abseil-cpp is missing stdint.h header include, that broke recent compiler versions. This problem was fixed in this commit upstream: [1]. Due to another commit: [2] in abseil-cpp, we also have to bump grpc as well to make them compatible. [1] abseil/abseil-cpp@36a4b07 [2] abseil/abseil-cpp@b8bbe92
PART 1: prepare third_party/grpc files for new version Composed PR: bazelbuild#18216. Fixes bazelbuild#18167. abseil-cpp is missing stdint.h header include, that broke recent compiler versions. This problem was fixed in this commit upstream: [1]. Due to another commit: [2] in abseil-cpp, we also have to bump grpc as well to make them compatible. [1] abseil/abseil-cpp@36a4b07 [2] abseil/abseil-cpp@b8bbe92
PART 1: prepare third_party/grpc files for new version Composed PR: bazelbuild#18216. Fixes bazelbuild#18167. abseil-cpp is missing stdint.h header include, that broke recent compiler versions. This problem was fixed in this commit upstream: [1]. Due to another commit: [2] in abseil-cpp, we also have to bump grpc as well to make them compatible. [1] abseil/abseil-cpp@36a4b07 [2] abseil/abseil-cpp@b8bbe92 Partial commit for third_party/*, see bazelbuild#18240. Signed-off-by: Pavan Singh <[email protected]>
Description of the bug:
The abseil dependency used in upb is too old. Some symbols used by it no longer resolve.
Updating the gRPC dependencies would fix the issue.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Which operating system are you running Bazel on?
Gentoo X86_64 with clang profile
What is the output of
bazel info release
?Tried at HEAD.
The text was updated successfully, but these errors were encountered: