Subject: kleopatra: ftbfs with GCC-15

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

Package: src:kleopatra
Version: 4:24.12.0-2
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/kleopatra_24.12.0-2_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

[...]
[ 18%] Linking CXX shared library ../../../bin/libkleopatraclientcore.so
cd /build/reproducible-path/kleopatra-24.12.0/obj-x86_64-linux-gnu/src/libkleopatraclient/core && /usr/bin/cmake -E cmake_link_script CMakeFiles/kleopatraclientcore.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/kleopatraclientcore.dir/selectcertificatecommand.cpp.o:(.rodata+0x78): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kleopatraclientcore.dir/command.cpp.o:(.rodata+0x1c1): first defined here
/usr/bin/ld: CMakeFiles/kleopatraclientcore.dir/libkleopatraclientcore_debug.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kleopatraclientcore.dir/command.cpp.o:(.rodata+0x1c1): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [src/libkleopatraclient/core/CMakeFiles/kleopatraclientcore.dir/build.make:162: bin/libkleopatraclientcore.so.1.3.0] Error 1
make[3]: Leaving directory '/build/reproducible-path/kleopatra-24.12.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:2568: src/libkleopatraclient/core/CMakeFiles/kleopatraclientcore.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 18%] Building CXX object autotests/CMakeFiles/stripsuffixtest.dir/kleopatra_debug.cpp.o
make[3]: Leaving directory '/build/reproducible-path/kleopatra-24.12.0/obj-x86_64-linux-gnu'
[ 18%] Built target test_verify
[ 19%] Building CXX object src/kwatchgnupg/CMakeFiles/kwatchgnupg.dir/tray.cpp.o
[ 19%] Linking CXX executable ../bin/statusmessagetest
cd /build/reproducible-path/kleopatra-24.12.0/obj-x86_64-linux-gnu/autotests && /usr/bin/cmake -E cmake_link_script CMakeFiles/statusmessagetest.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/statusmessagetest.dir/__/src/utils/statusmessage.cpp.o:(.rodata+0x208): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/statusmessagetest.dir/statusmessagetest.cpp.o:(.rodata+0xe4): first defined here
/usr/bin/ld: CMakeFiles/statusmessagetest.dir/kleopatra_debug.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/statusmessagetest.dir/statusmessagetest.cpp.o:(.rodata+0xe4): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [autotests/CMakeFiles/statusmessagetest.dir/build.make:157: bin/statusmessagetest] Error 1
make[3]: Leaving directory '/build/reproducible-path/kleopatra-24.12.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:3189: autotests/CMakeFiles/statusmessagetest.dir/all] Error 2
[ 19%] Building CXX object src/kwatchgnupg/CMakeFiles/kwatchgnupg.dir/main.cpp.o
[ 19%] Building CXX object src/kwatchgnupg/CMakeFiles/kwatchgnupg.dir/kwatchgnupg_debug.cpp.o
[ 19%] Building CXX object src/kwatchgnupg/CMakeFiles/kwatchgnupg.dir/kwatchgnupg_autogen/EWIEGA46WW/qrc_kwatchgnupg.cpp.o
[ 19%] Linking CXX executable ../bin/kuniqueservicetest
cd /build/reproducible-path/kleopatra-24.12.0/obj-x86_64-linux-gnu/autotests && /usr/bin/cmake -E cmake_link_script CMakeFiles/kuniqueservicetest.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/kuniqueservicetest.dir/__/src/utils/kuniqueservice.cpp.o:(.rodata+0x128): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kuniqueservicetest.dir/kuniqueservicetest.cpp.o:(.rodata+0x1c4): first defined here
/usr/bin/ld: CMakeFiles/kuniqueservicetest.dir/kleopatra_debug.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kuniqueservicetest.dir/kuniqueservicetest.cpp.o:(.rodata+0x1c4): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [autotests/CMakeFiles/kuniqueservicetest.dir/build.make:157: bin/kuniqueservicetest] Error 1
make[3]: Leaving directory '/build/reproducible-path/kleopatra-24.12.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:3156: autotests/CMakeFiles/kuniqueservicetest.dir/all] Error 2
[ 19%] Linking CXX executable ../bin/stripsuffixtest
cd /build/reproducible-path/kleopatra-24.12.0/obj-x86_64-linux-gnu/autotests && /usr/bin/cmake -E cmake_link_script CMakeFiles/stripsuffixtest.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/stripsuffixtest.dir/__/src/utils/path-helper.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/stripsuffixtest.dir/stripsuffixtest.cpp.o:(.rodata+0xd8): first defined here
/usr/bin/ld: CMakeFiles/stripsuffixtest.dir/kleopatra_debug.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/stripsuffixtest.dir/stripsuffixtest.cpp.o:(.rodata+0xd8): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [autotests/CMakeFiles/stripsuffixtest.dir/build.make:158: bin/stripsuffixtest] Error 1
make[3]: Leaving directory '/build/reproducible-path/kleopatra-24.12.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:3222: autotests/CMakeFiles/stripsuffixtest.dir/all] Error 2
[ 20%] Linking CXX executable ../../bin/kwatchgnupg
cd /build/reproducible-path/kleopatra-24.12.0/obj-x86_64-linux-gnu/src/kwatchgnupg && /usr/bin/cmake -E cmake_link_script CMakeFiles/kwatchgnupg.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/kwatchgnupg.dir/__/kleopatra_debug.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kwatchgnupg.dir/__/utils/kuniqueservice.cpp.o:(.rodata+0x128): first defined here
/usr/bin/ld: CMakeFiles/kwatchgnupg.dir/kwatchgnupgmainwin.cpp.o:(.rodata+0x2e0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kwatchgnupg.dir/__/utils/kuniqueservice.cpp.o:(.rodata+0x128): first defined here
/usr/bin/ld: CMakeFiles/kwatchgnupg.dir/kwatchgnupgconfig.cpp.o:(.rodata+0x140): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kwatchgnupg.dir/__/utils/kuniqueservice.cpp.o:(.rodata+0x128): first defined here
/usr/bin/ld: CMakeFiles/kwatchgnupg.dir/aboutdata.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kwatchgnupg.dir/__/utils/kuniqueservice.cpp.o:(.rodata+0x128): first defined here
/usr/bin/ld: CMakeFiles/kwatchgnupg.dir/tray.cpp.o:(.rodata+0xa4): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kwatchgnupg.dir/__/utils/kuniqueservice.cpp.o:(.rodata+0x128): first defined here
/usr/bin/ld: CMakeFiles/kwatchgnupg.dir/main.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kwatchgnupg.dir/__/utils/kuniqueservice.cpp.o:(.rodata+0x128): first defined here
/usr/bin/ld: CMakeFiles/kwatchgnupg.dir/kwatchgnupg_debug.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kwatchgnupg.dir/__/utils/kuniqueservice.cpp.o:(.rodata+0x128): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [src/kwatchgnupg/CMakeFiles/kwatchgnupg.dir/build.make:264: bin/kwatchgnupg] Error 1
make[3]: Leaving directory '/build/reproducible-path/kleopatra-24.12.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:2471: src/kwatchgnupg/CMakeFiles/kwatchgnupg.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/kleopatra-24.12.0/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/kleopatra-24.12.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:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2