[Android-tools-devel] Bug#1096308: android-platform-build-kati: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:03:10 GMT 2025


Package: src:android-platform-build-kati
Version: 10.0.0+r32+git20220314.09dfa26c4e59-7.1
Severity: important
Tags: sid forky
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-15

[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



More information about the Android-tools-devel mailing list