-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
Describe the issue
Recently bazelisk has upgraded the default bazel version to 8.0.0. When bazelisk started to use this version, I've started to get failures building abseil-cpp due to missing dependencies for standard c++ headers. As an example I get
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging external/abseil-cpp+/absl/debugging/internal/utf8_for_code_point.cc:17:10: error: module abseil-cpp+//absl/debugging:utf8_for_code_point does not depend on a module exporting 'cstdint' 17 | #include <cstdint> | ^ 1 error generated.
Forcing an earlier bazel version with USE_BAZEL_VERSION=7.4.0 successfully builds abseil, and setting it back to 8.0.0 correspondingly causes the failures to return.
Steps to reproduce the problem
In my repo, which includes the following in MODULES.bazel (which I believe is latest in the bcr).
bazel_dep(name = "abseil-cpp", version = "20240722.0.bcr.2")
USE_BAZEL_VERSION=8.0.0 bazelisk test ...
What version of Abseil are you using?
20240722.0.bcr.2
What operating system and version are you using?
`# uname -a
Darwin Mac.localdomain 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:45 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T8112 arm64`
What compiler and version are you using?
`# gcc -v
Apple clang version 16.0.0 (clang-1600.0.26.6)
Target: arm64-apple-darwin24.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin`
What build system are you using?
See earlier description. 7.4.0 works; 8.0.0 doesn't
Additional context
There's a variety of errors about cstdint or other standard headers (included through <>) depending on which compile fails first.