Subject: kf6-kpty: ftbfs with GCC-15

From: Matthias Klose <[email-masked]>
Date: Mon, 17 Feb 2025 17:25:08 +0000

Package: src:kf6-kpty
Version: 6.10.0-1
Severity: important
Tags: sid forky
User: [email-masked]
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/kf6-kpty_6.10.0-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

[...]
AutoGen: Refreshing parse cache because it doesn't exist.
AutoMoc: Generating "SRC:/obj-x86_64-linux-gnu/src/KF6Pty_autogen/moc_predefs.h", because it doesn't exist.
AutoGen: Parsing "SRC:/obj-x86_64-linux-gnu/src/kpty_debug.h"
AutoGen: Parsing "SRC:/src/kptyprocess.h"
AutoGen: Parsing "SRC:/src/kpty_p.h"
AutoGen: Parsing "SRC:/obj-x86_64-linux-gnu/src/kpty_debug.cpp"
AutoGen: Parsing "SRC:/src/kpty.cpp"
AutoGen: Parsing "SRC:/src/kptydevice.cpp"
AutoGen: Parsing "SRC:/src/kptyprocess.cpp"
AutoGen: Parsing "SRC:/src/kpty.h"
AutoGen: Parsing "SRC:/src/kptydevice.h"
AutoMoc: Generating "SRC:/obj-x86_64-linux-gnu/src/KF6Pty_autogen/include/moc_kptydevice.cpp", because it doesn't exist, from "SRC:/src/kptydevice.h"
AutoMoc: Generating "SRC:/obj-x86_64-linux-gnu/src/KF6Pty_autogen/include/moc_kptyprocess.cpp", because it doesn't exist, from "SRC:/src/kptyprocess.h"
Building up file structure...
Insert custom filters...
Insert help data for filter section (1 of 1)...
Insert files...
Insert contents...
Insert indices...
Documentation successfully generated.
make[3]: Leaving directory '/build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu'
[ 25%] Built target KF6Pty_QCH
AutoMoc: Reading dependencies from "SRC:/obj-x86_64-linux-gnu/src/KF6Pty_autogen/include/moc_kptydevice.cpp.d"
AutoMoc: Reading dependencies from "SRC:/obj-x86_64-linux-gnu/src/KF6Pty_autogen/include/moc_kptyprocess.cpp.d"
AutoMoc: Generating MOC compilation "SRC:/obj-x86_64-linux-gnu/src/KF6Pty_autogen/mocs_compilation.cpp"
AutoMoc: Merging MOC dependencies into "SRC:/obj-x86_64-linux-gnu/src/KF6Pty_autogen/deps"
AutoGen: Writing the parse cache file "SRC:/obj-x86_64-linux-gnu/src/CMakeFiles/KF6Pty_autogen.dir/ParseCache.txt"
AutoGen: Writing the settings file "SRC:/obj-x86_64-linux-gnu/src/CMakeFiles/KF6Pty_autogen.dir/AutogenUsed.txt"
cd /build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu/src && /usr/bin/cmake -E touch /build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu/src/KF6Pty_autogen/timestamp
make[3]: Leaving directory '/build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu'
[ 25%] Built target KF6Pty_autogen
make  -f src/CMakeFiles/KF6Pty.dir/build.make src/CMakeFiles/KF6Pty.dir/depend
make[3]: Entering directory '/build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu'
cd /build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/kf6-kpty-6.10.0 /build/reproducible-path/kf6-kpty-6.10.0/src /build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu /build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu/src /build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu/src/CMakeFiles/KF6Pty.dir/DependInfo.cmake "--color="
Dependencies file "src/KF6Pty_autogen/deps" is newer than depends file "/build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu/src/CMakeFiles/KF6Pty.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target KF6Pty
make[3]: Leaving directory '/build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu'
make  -f src/CMakeFiles/KF6Pty.dir/build.make src/CMakeFiles/KF6Pty.dir/build
make[3]: Entering directory '/build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu'
[ 31%] Building CXX object src/CMakeFiles/KF6Pty.dir/kpty_debug.cpp.o
[ 37%] Building CXX object src/CMakeFiles/KF6Pty.dir/kpty.cpp.o
[ 43%] Building CXX object src/CMakeFiles/KF6Pty.dir/kptyprocess.cpp.o
[ 50%] Building CXX object src/CMakeFiles/KF6Pty.dir/KF6Pty_autogen/mocs_compilation.cpp.o
[ 56%] Building CXX object src/CMakeFiles/KF6Pty.dir/kptydevice.cpp.o
make[3]: Leaving directory '/build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu'
[ 56%] Built target pofiles-d3b82934ac18b8fc39811bd2451e50cc
[ 62%] Linking CXX shared library ../bin/libKF6Pty.so
cd /build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/KF6Pty.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/KF6Pty.dir/kptydevice.cpp.o:(.rodata+0x8c): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Pty.dir/kpty.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Pty.dir/kptyprocess.cpp.o:(.rodata+0x94): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Pty.dir/kpty.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Pty.dir/kpty_debug.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Pty.dir/kpty.cpp.o:(.rodata+0x0): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [src/CMakeFiles/KF6Pty.dir/build.make:173: bin/libKF6Pty.so.6.10.0] Error 1
make[3]: Leaving directory '/build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:408: src/CMakeFiles/KF6Pty.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/kf6-kpty-6.10.0/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:13: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2