container/internal: Explicitly include <cstdint>#1739
Closed
csfore wants to merge 1 commit intoabseil:masterfrom
Closed
container/internal: Explicitly include <cstdint>#1739csfore wants to merge 1 commit intoabseil:masterfrom
csfore wants to merge 1 commit intoabseil:masterfrom
Conversation
GCC 15 will no longer include <cstdint> by default, resulting in build
failures in projects that do not explicitly include it.
Error:
absl/container/internal/container_memory.h:66:27: error: ‘uintptr_t’ does not name a type
66 | assert(reinterpret_cast<uintptr_t>(p) % Alignment == 0 &&
| ^~~~~~~~~
absl/container/internal/container_memory.h:31:1: note: ‘uintptr_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
30 | #include "absl/utility/utility.h"
+++ |+#include <cstdint>
31 |
See-also: https://gcc.gnu.org/pipermail/gcc-cvs/2024-August/407124.html
Signed-off-by: Christopher Fore <csfore@posteo.net>
afreof
pushed a commit
to afreof/abseil-cpp
that referenced
this pull request
Sep 19, 2025
Imported from GitHub PR abseil#1739 GCC 15 will no longer include <cstdint> by default, resulting in build failures in projects that do not explicitly include it. Merge faf1b03 into 9cb5e5d Merging this change closes abseil#1739 COPYBARA_INTEGRATE_REVIEW=abseil#1739 from csfore:gcc-15-fix faf1b03 PiperOrigin-RevId: 659637669 Change-Id: If14cb0e3522774cb700bd5a74abffb75feb7a0f5
ccapitalK
added a commit
to ccapitalK/cpp-sc2
that referenced
this pull request
Oct 6, 2025
This protobuf version doesn't build with gcc 15, because it pins a version of abseil prior tohttps://github.com/abseil/abseil-cpp/pull/1739
ccapitalK
added a commit
to ccapitalK/cpp-sc2
that referenced
this pull request
Oct 6, 2025
This protobuf version doesn't build with gcc 15, because it pins a version of abseil prior to a fix for an implicitly included cstdint header (abseil/abseil-cpp#1739)
ccapitalK
added a commit
to ccapitalK/cpp-sc2
that referenced
this pull request
Oct 11, 2025
This protobuf version doesn't build with gcc 15, because it pins a version of abseil prior to a fix for an implicitly included cstdint header (abseil/abseil-cpp#1739)
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GCC 15 will no longer include by default, resulting in build failures in projects that do not explicitly include it.
Error:
See-also: https://gcc.gnu.org/pipermail/gcc-cvs/2024-August/407124.html
Thank you for your contribution to Abseil!
Before submitting this PR, please be sure to read our contributing
guidelines.
If you are a Googler, please also note that it is required that you send us a
Piper CL instead of using the GitHub pull-request process. The code propagation
process will deliver the change to GitHub.