Subject: kf6-kservice: ftbfs with GCC-15

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

Package: src:kf6-kservice
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-kservice_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

[...]
[ 60%] Building CXX object src/CMakeFiles/KF6Service.dir/sycoca/ksycocaentry.cpp.o
[ 62%] Building CXX object src/CMakeFiles/KF6Service.dir/sycoca/ksycocafactory.cpp.o
[ 64%] Building CXX object src/CMakeFiles/KF6Service.dir/sycoca/kmemfile.cpp.o
[ 66%] Building CXX object src/CMakeFiles/KF6Service.dir/sycoca/kbuildmimetypefactory.cpp.o
[ 68%] Building CXX object src/CMakeFiles/KF6Service.dir/sycoca/kbuildservicefactory.cpp.o
/build/reproducible-path/kf6-kservice-6.10.0/src/sycoca/kmemfile.cpp: In member function ‘virtual bool KMemFile::open(QIODeviceBase::OpenMode)’:
/build/reproducible-path/kf6-kservice-6.10.0/src/sycoca/kmemfile.cpp:168:15: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct KMemFile::Private::sharedInfoData’; use assignment or value-initialization instead [-Wclass-memaccess]
  168 |         memset(infoPtr, 0, sizeof(Private::sharedInfoData));
      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/reproducible-path/kf6-kservice-6.10.0/src/sycoca/kmemfile.cpp:21:12: note: ‘struct KMemFile::Private::sharedInfoData’ declared here
   21 |     struct sharedInfoData {
      |            ^~~~~~~~~~~~~~
[ 71%] Building CXX object src/CMakeFiles/KF6Service.dir/sycoca/kbuildservicegroupfactory.cpp.o
[ 73%] Building CXX object src/CMakeFiles/KF6Service.dir/sycoca/kbuildsycoca.cpp.o
[ 75%] Building CXX object src/CMakeFiles/KF6Service.dir/sycoca/kctimefactory.cpp.o
[ 77%] Building CXX object src/CMakeFiles/KF6Service.dir/sycoca/kmimeassociations.cpp.o
[ 80%] Building CXX object src/CMakeFiles/KF6Service.dir/sycoca/vfolder_menu.cpp.o
[ 82%] Building CXX object src/CMakeFiles/KF6Service.dir/servicesdebug.cpp.o
[ 84%] Building CXX object src/CMakeFiles/KF6Service.dir/sycocadebug.cpp.o
/build/reproducible-path/kf6-kservice-6.10.0/src/sycoca/kbuildsycoca.cpp: In member function ‘bool KBuildSycoca::recreate(bool)’:
/build/reproducible-path/kf6-kservice-6.10.0/src/sycoca/kbuildsycoca.cpp:423:23: warning: ignoring return value of ‘int fchown(int, __uid_t, __gid_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  423 |                 fchown(database.handle(), uid, gid);
      |                 ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 86%] Linking CXX shared library ../bin/libKF6Service.so
cd /build/reproducible-path/kf6-kservice-6.10.0/obj-x86_64-linux-gnu/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/KF6Service.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/KF6Service.dir/services/kmimetypefactory.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/services/kservice.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/services/kserviceaction.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/services/kservicefactory.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/services/kservicegroup.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/services/kservicegroupfactory.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/services/kserviceoffer.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/sycoca/ksycoca.cpp.o:(.rodata+0x94): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/sycoca/ksycocadevices.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/sycoca/ksycocadict.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/sycoca/ksycocaentry.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/sycoca/ksycocafactory.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/sycoca/kmemfile.cpp.o:(.rodata+0x54): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/sycoca/kbuildmimetypefactory.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/sycoca/kbuildservicefactory.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/sycoca/kbuildservicegroupfactory.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/sycoca/kbuildsycoca.cpp.o:(.rodata+0x58): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/sycoca/kctimefactory.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/sycoca/kmimeassociations.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/sycoca/vfolder_menu.cpp.o:(.rodata+0x54): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/servicesdebug.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/KF6Service.dir/sycocadebug.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o:(.rodata+0x0): first defined here
collect2: error: ld returned 1 exit status
/usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/build/reproducible-path/kf6-kservice-6.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Werror=undef -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -pedantic -Wzero-as-null-pointer-constant -Wmissing-include-dirs -Wl,--no-undefined -Wl,--fatal-warnings -Wl,--enable-new-dtags -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libKF6Service.so.6 -o ../bin/libKF6Service.so.6.10.0 CMakeFiles/KF6Service.dir/KF6Service_autogen/mocs_compilation.cpp.o CMakeFiles/KF6Service.dir/services/kapplicationtrader.cpp.o CMakeFiles/KF6Service.dir/services/kmimetypefactory.cpp.o CMakeFiles/KF6Service.dir/services/kservice.cpp.o CMakeFiles/KF6Service.dir/services/kserviceaction.cpp.o CMakeFiles/KF6Service.dir/services/kservicefactory.cpp.o CMakeFiles/KF6Service.dir/services/kservicegroup.cpp.o CMakeFiles/KF6Service.dir/services/kservicegroupfactory.cpp.o CMakeFiles/KF6Service.dir/services/kserviceoffer.cpp.o CMakeFiles/KF6Service.dir/sycoca/ksycoca.cpp.o CMakeFiles/KF6Service.dir/sycoca/ksycocadevices.cpp.o CMakeFiles/KF6Service.dir/sycoca/ksycocadict.cpp.o CMakeFiles/KF6Service.dir/sycoca/ksycocaentry.cpp.o CMakeFiles/KF6Service.dir/sycoca/ksycocafactory.cpp.o CMakeFiles/KF6Service.dir/sycoca/kmemfile.cpp.o CMakeFiles/KF6Service.dir/sycoca/kbuildmimetypefactory.cpp.o CMakeFiles/KF6Service.dir/sycoca/kbuildservicefactory.cpp.o CMakeFiles/KF6Service.dir/sycoca/kbuildservicegroupfactory.cpp.o CMakeFiles/KF6Service.dir/sycoca/kbuildsycoca.cpp.o CMakeFiles/KF6Service.dir/sycoca/kctimefactory.cpp.o CMakeFiles/KF6Service.dir/sycoca/kmimeassociations.cpp.o CMakeFiles/KF6Service.dir/sycoca/vfolder_menu.cpp.o CMakeFiles/KF6Service.dir/servicesdebug.cpp.o CMakeFiles/KF6Service.dir/sycocadebug.cpp.o  /usr/lib/x86_64-linux-gnu/libQt6Xml.so.6.7.2 /usr/lib/x86_64-linux-gnu/libKF6ConfigCore.so.6.10.0 /usr/lib/x86_64-linux-gnu/libKF6CoreAddons.so.6.10.0 /usr/lib/x86_64-linux-gnu/libQt6Core.so.6.7.2
make[3]: *** [src/CMakeFiles/KF6Service.dir/build.make:477: bin/libKF6Service.so.6.10.0] Error 1
make[3]: Leaving directory '/build/reproducible-path/kf6-kservice-6.10.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:862: src/CMakeFiles/KF6Service.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/kf6-kservice-6.10.0/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/kf6-kservice-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:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2