On Fri, 05 Sep 2025 18:14:48 +0000 Santiago Vila <[email protected]>
wrote:
> Package: src:abseil
> Version: 20240722.0-4
> Severity: serious
> Tags: ftbfs forky sid
> 
> Dear maintainer:
> 
> During a rebuild of all packages in unstable, your package failed to
build.
> 
> Below you will find how the build ends (probably the most relevant
part,
> but not necessarily). If required, the full build log is available
here:
> 
> https://people.debian.org/~sanvila/build-logs/202509/

As noticed by Florian Ernst, this is fixed in 20250814.0 and I tracked
it down to https://github.com/abseil/abseil-cpp/pull/1739

In Ubuntu we applied that patch (attached) to fix the build failure.

-- 
Benjamin Drung
Debian & Ubuntu Developer
From 65e9284029dcd7b4fda26d568779802ec09e3f22 Mon Sep 17 00:00:00 2001
From: Christopher Fore <[email protected]>
Date: Tue, 6 Aug 2024 10:48:19 +2000
Subject: [PATCH] container/internal: Explicitly include <cstdint>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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 <[email protected]>
Origin: upstream, https://github.com/abseil/abseil-cpp/pull/1739
Bug-Ubuntu: https://launchpad.net/bugs/2124277
---
 ...-internal-Explicitly-include-cstdint.patch | 36 +++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 37 insertions(+)
 create mode 100644 debian/patches/container-internal-Explicitly-include-cstdint.patch

diff --git a/debian/patches/container-internal-Explicitly-include-cstdint.patch b/debian/patches/container-internal-Explicitly-include-cstdint.patch
new file mode 100644
index 0000000..c558840
--- /dev/null
+++ b/debian/patches/container-internal-Explicitly-include-cstdint.patch
@@ -0,0 +1,36 @@
+From: Christopher Fore <[email protected]>
+Date: Mon, 5 Aug 2024 10:48:19 -0400
+Subject: container/internal: Explicitly include <cstdint>
+
+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 <[email protected]>
+Origin: upstream, https://github.com/abseil/abseil-cpp/pull/1739
+Bug-Ubuntu: https://launchpad.net/bugs/2124277
+---
+ absl/container/internal/container_memory.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/absl/container/internal/container_memory.h b/absl/container/internal/container_memory.h
+index ba8e08a..e703179 100644
+--- a/absl/container/internal/container_memory.h
++++ b/absl/container/internal/container_memory.h
+@@ -17,6 +17,7 @@
+ 
+ #include <cassert>
+ #include <cstddef>
++#include <cstdint>
+ #include <cstring>
+ #include <memory>
+ #include <new>
diff --git a/debian/patches/series b/debian/patches/series
index 7369c82..dd17131 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ latomic.diff
 cordz-info-statistics-test.diff
 pkg-config-directives.diff
 CVE-2025-0838.patch
+container-internal-Explicitly-include-cstdint.patch
-- 
2.48.1

Reply via email to