Subject: kcron: ftbfs with GCC-15

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

Package: src:kcron
Version: 4:24.12.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/kcron_24.12.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

[...]
[ 66%] Building CXX object src/CMakeFiles/kcm_cron.dir/crontablib/cttask.cpp.o
[ 68%] Building CXX object src/CMakeFiles/kcm_cron.dir/crontablib/ctunit.cpp.o
[ 70%] Linking CXX executable ../../bin/kcron_helper
cd /build/reproducible-path/kcron-24.12.0/obj-x86_64-linux-gnu/src/helper && /usr/bin/cmake -E cmake_link_script CMakeFiles/kcron_helper.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/kcron_helper.dir/kcm_cron_helper_debug.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcron_helper.dir/kcronhelper.cpp.o:(.rodata+0xac): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [src/helper/CMakeFiles/kcron_helper.dir/build.make:143: bin/kcron_helper] Error 1
make[3]: Leaving directory '/build/reproducible-path/kcron-24.12.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1335: src/helper/CMakeFiles/kcron_helper.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 72%] Building CXX object src/CMakeFiles/kcm_cron.dir/crontablib/ctvariable.cpp.o
[ 74%] Building CXX object src/CMakeFiles/kcm_cron.dir/crontablib/ctSystemCron.cpp.o
[ 75%] Building CXX object src/CMakeFiles/kcm_cron.dir/crontablib/ctInitializationError.cpp.o
[ 77%] Building CXX object src/CMakeFiles/kcm_cron.dir/crontablib/ctSaveStatus.cpp.o
[ 79%] Building CXX object src/CMakeFiles/kcm_cron.dir/crontablib/ctHelper.cpp.o
[ 81%] Building CXX object src/CMakeFiles/kcm_cron.dir/genericmodel.cpp.o
[ 83%] Building CXX object src/CMakeFiles/kcm_cron.dir/variablesmodel.cpp.o
[ 85%] Building CXX object src/CMakeFiles/kcm_cron.dir/variable.cpp.o
[ 87%] Building CXX object src/CMakeFiles/kcm_cron.dir/tasksmodel.cpp.o
[ 88%] Building CXX object src/CMakeFiles/kcm_cron.dir/task.cpp.o
[ 90%] Building CXX object src/CMakeFiles/kcm_cron.dir/cronPrinter.cpp.o
[ 92%] Building CXX object src/CMakeFiles/kcm_cron.dir/taskvalidator.cpp.o
[ 94%] Building CXX object src/CMakeFiles/kcm_cron.dir/kcmCron.cpp.o
[ 96%] Linking CXX shared module ../bin/plasma/kcms/systemsettings/kcm_cron.so
cd /build/reproducible-path/kcron-24.12.0/obj-x86_64-linux-gnu/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/kcm_cron.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/kcm_cron.dir/crontablib/cthost.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/crontablib/ctcron.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/crontablib/ctmonth.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/crontablib/ctdom.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/crontablib/ctdow.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/crontablib/cttask.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/crontablib/ctunit.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/crontablib/ctvariable.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/crontablib/ctSystemCron.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/crontablib/ctHelper.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/genericmodel.cpp.o:(.rodata+0x360): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/variablesmodel.cpp.o:(.rodata+0x56c): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/variable.cpp.o:(.rodata+0x3ac): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/tasksmodel.cpp.o:(.rodata+0x578): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/task.cpp.o:(.rodata+0x76c): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/cronPrinter.cpp.o:(.rodata+0xa8): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/taskvalidator.cpp.o:(.rodata+0x1b0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/kcm_cron.dir/kcmCron.cpp.o:(.rodata+0x59c): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_cron.dir/kcm_cron_debug.cpp.o:(.rodata+0x0): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [src/CMakeFiles/kcm_cron.dir/build.make:511: bin/plasma/kcms/systemsettings/kcm_cron.so] Error 1
make[3]: Leaving directory '/build/reproducible-path/kcron-24.12.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1205: src/CMakeFiles/kcm_cron.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/kcron-24.12.0/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/kcron-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:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2