Subject: kf6-karchive: ftbfs with GCC-15

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

Package: src:kf6-karchive
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-karchive_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

[...]
make[3]: Leaving directory '/build/reproducible-path/kf6-karchive-6.10.0/obj-x86_64-linux-gnu'
make  -f autotests/CMakeFiles/klimitediodevicetest.dir/build.make autotests/CMakeFiles/klimitediodevicetest.dir/build
make[3]: Entering directory '/build/reproducible-path/kf6-karchive-6.10.0/obj-x86_64-linux-gnu'
[ 49%] Building CXX object autotests/CMakeFiles/klimitediodevicetest.dir/klimitediodevicetest_autogen/mocs_compilation.cpp.o
[ 50%] Building CXX object src/CMakeFiles/KF6Archive.dir/kar.cpp.o
[ 51%] Building CXX object autotests/CMakeFiles/klimitediodevicetest.dir/klimitediodevicetest.cpp.o
[ 52%] Building CXX object src/CMakeFiles/KF6Archive.dir/kcompressiondevice.cpp.o
[ 53%] Building CXX object src/CMakeFiles/KF6Archive.dir/kfilterbase.cpp.o
[ 53%] Building CXX object src/CMakeFiles/KF6Archive.dir/kgzipfilter.cpp.o
[ 54%] Building CXX object src/CMakeFiles/KF6Archive.dir/klimitediodevice.cpp.o
[ 55%] Building CXX object src/CMakeFiles/KF6Archive.dir/knonefilter.cpp.o
[ 56%] Building CXX object autotests/CMakeFiles/klimitediodevicetest.dir/__/src/klimitediodevice.cpp.o
/build/reproducible-path/kf6-karchive-6.10.0/src/kgzipfilter.cpp: In member function ‘bool KGzipFilter::init(int, Flag)’:
/build/reproducible-path/kf6-karchive-6.10.0/src/kgzipfilter.cpp:74:26: warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]
   74 |     d->zStream.next_in = Z_NULL;
      |                          ^~~~~~
[ 57%] Building CXX object src/CMakeFiles/KF6Archive.dir/ktar.cpp.o
[ 58%] Building CXX object src/CMakeFiles/KF6Archive.dir/kzip.cpp.o
[ 59%] Building CXX object src/CMakeFiles/KF6Archive.dir/krcc.cpp.o
[ 60%] Building CXX object src/CMakeFiles/KF6Archive.dir/loggingcategory.cpp.o
[ 61%] Linking CXX executable ../bin/klimitediodevicetest
cd /build/reproducible-path/kf6-karchive-6.10.0/obj-x86_64-linux-gnu/autotests && /usr/bin/cmake -E cmake_link_script CMakeFiles/klimitediodevicetest.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/klimitediodevicetest.dir/__/src/klimitediodevice.cpp.o:(.rodata+0x5c): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/klimitediodevicetest.dir/klimitediodevicetest.cpp.o:(.rodata+0x144): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [autotests/CMakeFiles/klimitediodevicetest.dir/build.make:141: bin/klimitediodevicetest] Error 1
make[3]: Leaving directory '/build/reproducible-path/kf6-karchive-6.10.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:2044: autotests/CMakeFiles/klimitediodevicetest.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 62%] Linking CXX shared library ../bin/libKF6Archive.so
cd /build/reproducible-path/kf6-karchive-6.10.0/obj-x86_64-linux-gnu/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/KF6Archive.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/KF6Archive.dir/kbzip2filter.cpp.o:(.rodata+0x28): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Archive.dir/ECMQmLoader-karchive6_qt.cpp.o:(.rodata+0x29): first defined here
/usr/bin/ld: CMakeFiles/KF6Archive.dir/kxzfilter.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Archive.dir/ECMQmLoader-karchive6_qt.cpp.o:(.rodata+0x29): first defined here
/usr/bin/ld: CMakeFiles/KF6Archive.dir/k7zip.cpp.o:(.rodata+0x36): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Archive.dir/ECMQmLoader-karchive6_qt.cpp.o:(.rodata+0x29): first defined here
/usr/bin/ld: CMakeFiles/KF6Archive.dir/kzstdfilter.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Archive.dir/ECMQmLoader-karchive6_qt.cpp.o:(.rodata+0x29): first defined here
/usr/bin/ld: CMakeFiles/KF6Archive.dir/karchive.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Archive.dir/ECMQmLoader-karchive6_qt.cpp.o:(.rodata+0x29): first defined here
/usr/bin/ld: CMakeFiles/KF6Archive.dir/kar.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Archive.dir/ECMQmLoader-karchive6_qt.cpp.o:(.rodata+0x29): first defined here
/usr/bin/ld: CMakeFiles/KF6Archive.dir/kcompressiondevice.cpp.o:(.rodata+0x7c): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Archive.dir/ECMQmLoader-karchive6_qt.cpp.o:(.rodata+0x29): first defined here
/usr/bin/ld: CMakeFiles/KF6Archive.dir/kfilterbase.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Archive.dir/ECMQmLoader-karchive6_qt.cpp.o:(.rodata+0x29): first defined here
/usr/bin/ld: CMakeFiles/KF6Archive.dir/kgzipfilter.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Archive.dir/ECMQmLoader-karchive6_qt.cpp.o:(.rodata+0x29): first defined here
/usr/bin/ld: CMakeFiles/KF6Archive.dir/klimitediodevice.cpp.o:(.rodata+0x5c): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Archive.dir/ECMQmLoader-karchive6_qt.cpp.o:(.rodata+0x29): first defined here
/usr/bin/ld: CMakeFiles/KF6Archive.dir/knonefilter.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Archive.dir/ECMQmLoader-karchive6_qt.cpp.o:(.rodata+0x29): first defined here
/usr/bin/ld: CMakeFiles/KF6Archive.dir/ktar.cpp.o:(.rodata+0x73): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Archive.dir/ECMQmLoader-karchive6_qt.cpp.o:(.rodata+0x29): first defined here
/usr/bin/ld: CMakeFiles/KF6Archive.dir/kzip.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Archive.dir/ECMQmLoader-karchive6_qt.cpp.o:(.rodata+0x29): first defined here
/usr/bin/ld: CMakeFiles/KF6Archive.dir/krcc.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Archive.dir/ECMQmLoader-karchive6_qt.cpp.o:(.rodata+0x29): first defined here
/usr/bin/ld: CMakeFiles/KF6Archive.dir/loggingcategory.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KF6Archive.dir/ECMQmLoader-karchive6_qt.cpp.o:(.rodata+0x29): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [src/CMakeFiles/KF6Archive.dir/build.make:369: bin/libKF6Archive.so.6.10.0] Error 1
make[3]: Leaving directory '/build/reproducible-path/kf6-karchive-6.10.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1847: src/CMakeFiles/KF6Archive.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/kf6-karchive-6.10.0/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/kf6-karchive-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