#1096308 android-platform-build-kati: ftbfs with GCC-15

#1096308#5
Date:
2025-02-17 17:03:10 UTC
From:
To:
[This bug is NOT targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/android-platform-build-kati_10.0.0+r32+git20220314.09dfa26c4e59-7.1_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other Common build failures are new warnings resulting in build failures
with -Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-15/porting_to.html

[...]
crypto/internal/fips140/drbg
crypto/internal/fips140/aes/gcm
crypto/internal/fips140only
os/exec
crypto/cipher
crypto/internal/boring
github.com/golang/glog/internal/logsink
log
flag
os/user
compress/flate
text/tabwriter
encoding/gob
crypto/sha1
encoding/json
net/url
text/template/parse
compress/gzip
runtime/pprof
text/template
github.com/golang/glog
github.com/google/kati/golang/kati
github.com/google/kati/golang/cmd/kati
make[1]: Leaving directory '/build/reproducible-path/android-platform-build-kati-10.0.0+r32+git20220314.09dfa26c4e59'
   dh_auto_build
	make -j8 "INSTALL=install --strip-program=true"
make[1]: Entering directory '/build/reproducible-path/android-platform-build-kati-10.0.0+r32+git20220314.09dfa26c4e59'
/bin/sh: 1: git: not found
realpath: missing operand
Try 'realpath --help' for more information.
g++ -c -std=c++17 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/android-platform-build-kati-10.0.0+r32+git20220314.09dfa26c4e59=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -W -Wall -MMD -MP -O -DNOLOG -o out/affinity.o src/affinity.cc
g++ -c -std=c++17 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/android-platform-build-kati-10.0.0+r32+git20220314.09dfa26c4e59=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -W -Wall -MMD -MP -O -DNOLOG -o out/command.o src/command.cc
g++ -c -std=c++17 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/android-platform-build-kati-10.0.0+r32+git20220314.09dfa26c4e59=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -W -Wall -MMD -MP -O -DNOLOG -o out/dep.o src/dep.cc
g++ -c -std=c++17 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/android-platform-build-kati-10.0.0+r32+git20220314.09dfa26c4e59=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -W -Wall -MMD -MP -O -DNOLOG -o out/eval.o src/eval.cc
g++ -c -std=c++17 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/android-platform-build-kati-10.0.0+r32+git20220314.09dfa26c4e59=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -W -Wall -MMD -MP -O -DNOLOG -o out/exec.o src/exec.cc
g++ -c -std=c++17 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/android-platform-build-kati-10.0.0+r32+git20220314.09dfa26c4e59=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -W -Wall -MMD -MP -O -DNOLOG -o out/expr.o src/expr.cc
g++ -c -std=c++17 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/android-platform-build-kati-10.0.0+r32+git20220314.09dfa26c4e59=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -W -Wall -MMD -MP -O -DNOLOG -o out/file.o src/file.cc
g++ -c -std=c++17 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/android-platform-build-kati-10.0.0+r32+git20220314.09dfa26c4e59=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -W -Wall -MMD -MP -O -DNOLOG -o out/file_cache.o src/file_cache.cc
g++ -c -std=c++17 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/android-platform-build-kati-10.0.0+r32+git20220314.09dfa26c4e59=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -W -Wall -MMD -MP -O -DNOLOG -o out/fileutil.o src/fileutil.cc
src/exec.cc:129:3: error: ‘uint64_t’ does not name a type
  129 |   uint64_t Count() { return num_commands_; }
      |   ^~~~~~~~
src/exec.cc:39:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
   38 | #include "var.h"
  +++ |+#include <cstdint>
   39 |
src/exec.cc:136:3: error: ‘uint64_t’ does not name a type
  136 |   uint64_t num_commands_;
      |   ^~~~~~~~
src/exec.cc:136:3: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
src/exec.cc: In constructor ‘{anonymous}::Executor::Executor(Evaluator*)’:
src/exec.cc:47:47: error: class ‘{anonymous}::Executor’ does not have any field named ‘num_commands_’
   47 |   explicit Executor(Evaluator* ev) : ce_(ev), num_commands_(0) {
      |                                               ^~~~~~~~~~~~~
src/exec.cc: In member function ‘double {anonymous}::Executor::ExecNode(const DepNode&, const char*)’:
src/exec.cc:102:7: error: ‘num_commands_’ was not declared in this scope; did you mean ‘commands’?
  102 |       num_commands_ += 1;
      |       ^~~~~~~~~~~~~
      |       commands
src/exec.cc: In function ‘void Exec(const std::vector<std::pair<Symbol, DepNode*> >&, Evaluator*)’:
src/exec.cc:146:16: error: ‘class {anonymous}::Executor’ has no member named ‘Count’
  146 |   if (executor.Count() == 0) {
      |                ^~~~~
g++ -c -std=c++17 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/android-platform-build-kati-10.0.0+r32+git20220314.09dfa26c4e59=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -W -Wall -MMD -MP -O -DNOLOG -o out/find.o src/find.cc
make[1]: *** [Makefile.ckati:88: out/exec.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/build/reproducible-path/android-platform-build-kati-10.0.0+r32+git20220314.09dfa26c4e59'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1096308#14
Date:
2025-09-13 18:34:36 UTC
From:
To:
Please find a patch attached.
#1096308#19
Date:
2026-06-10 13:12:19 UTC
From:
To:
Hello,

Bug #1096308 in android-platform-build-kati reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/android-tools-team/android-platform-build-kati/-/commit/191dd7e96851196aca685c1556196c031c12739c
------------------------------------------------------------------------
Add missing C++ includes

Closes: #1096308
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1096308

#1096308#24
Date:
2026-06-10 13:18:21 UTC
From:
To:
Hello,

Bug #1096308 in android-platform-build-kati reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/android-tools-team/android-platform-build-kati/-/commit/d8fe8a829f997f44afee8bfc4379548732198415
------------------------------------------------------------------------
Add missing C++ includes

Closes: #1096308
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1096308

#1096308#29
Date:
2026-06-10 13:48:53 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
android-platform-build-kati, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1096308@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrej Shadura <andrewsh@debian.org> (supplier of updated android-platform-build-kati package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 10 Jun 2026 15:20:59 +0200
Source: android-platform-build-kati
Architecture: source
Version: 10.0.0+r32+git20220314.09dfa26c4e59-8
Distribution: unstable
Urgency: medium
Maintainer: Android Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Changed-By: Andrej Shadura <andrewsh@debian.org>
Closes: 1096308
Changes:
 android-platform-build-kati (10.0.0+r32+git20220314.09dfa26c4e59-8) unstable; urgency=medium
 .
   [ Bastian Germann ]
   * Add missing C++ includes (Closes: #1096308).
 .
   [ Andrej Shadura ]
   * Refresh patch headers.
Checksums-Sha1:
 757508056cbfebc965c871babda2875d5acb57d6 2335 android-platform-build-kati_10.0.0+r32+git20220314.09dfa26c4e59-8.dsc
 b2f53262a73a2eda3ad6a19c84e1d3ceb203073e 8364 android-platform-build-kati_10.0.0+r32+git20220314.09dfa26c4e59-8.debian.tar.xz
Checksums-Sha256:
 fec9bdf4217e109965a515ecad85a39e4d6960f782cf8ff03172284bbc7ee283 2335 android-platform-build-kati_10.0.0+r32+git20220314.09dfa26c4e59-8.dsc
 054eceba9b93f089c6840903f58079b337e9bdbb0c8bcb5189e83c253805efc0 8364 android-platform-build-kati_10.0.0+r32+git20220314.09dfa26c4e59-8.debian.tar.xz
Files:
 0d84cd94f55ddcff663f9fa9606873aa 2335 devel optional android-platform-build-kati_10.0.0+r32+git20220314.09dfa26c4e59-8.dsc
 1d84ab09dca311d9da450ed0539751c5 8364 devel optional android-platform-build-kati_10.0.0+r32+git20220314.09dfa26c4e59-8.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQSD3NF/RLIsyDZW7aHoRGtKyMdyYQUCailm3AAKCRDoRGtKyMdy
YWgkAP9U+ozXfUtod+eyJL7vdHBICXqsVfI20Y/M0ru3dWXzXwEApoVfHkXcBYJ9
CwwZvXzgMNQQGSNDwuorHT1h4dn2agw=
=7+X3
-----END PGP SIGNATURE-----