Skip to content

Conversation

@csfore
Copy link
Contributor

@csfore csfore commented Aug 5, 2024

GCC 15 will no longer include 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

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.

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>
@copybara-service copybara-service bot closed this in 809e5de Aug 5, 2024
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant