Subject: libkomparediff2: ftbfs with GCC-15

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

Package: src:libkomparediff2
Version: 4:24.12.1-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/libkomparediff2_24.12.1-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

[...]
[ 72%] Building CXX object src/CMakeFiles/komparediff2.dir/differencestring.cpp.o
[ 74%] Building CXX object src/CMakeFiles/komparediff2.dir/diffhunk.cpp.o
[ 76%] Building CXX object src/CMakeFiles/komparediff2.dir/diffsettings.cpp.o
[ 78%] Building CXX object src/CMakeFiles/komparediff2.dir/info.cpp.o
[ 80%] Building CXX object src/CMakeFiles/komparediff2.dir/parser.cpp.o
[ 81%] Building CXX object src/CMakeFiles/komparediff2.dir/parserbase.cpp.o
[ 83%] Building CXX object src/CMakeFiles/komparediff2.dir/cvsdiffparser.cpp.o
[ 85%] Building CXX object src/CMakeFiles/komparediff2.dir/diffparser.cpp.o
[ 87%] Building CXX object src/CMakeFiles/komparediff2.dir/perforceparser.cpp.o
[ 89%] Building CXX object src/CMakeFiles/komparediff2.dir/stringlistpair.cpp.o
[ 90%] Linking CXX executable ../bin/interactiveDiffTest
cd /build/reproducible-path/libkomparediff2-24.12.1/obj-x86_64-linux-gnu/tests && /usr/bin/cmake -E cmake_link_script CMakeFiles/interactiveDiffTest.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/interactiveDiffTest.dir/__/src/perforceparser.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/interactiveDiffTest.dir/interactivedifftest.cpp.o:(.rodata+0x390): first defined here
/usr/bin/ld: CMakeFiles/interactiveDiffTest.dir/__/src/cvsdiffparser.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/interactiveDiffTest.dir/interactivedifftest.cpp.o:(.rodata+0x390): first defined here
/usr/bin/ld: CMakeFiles/interactiveDiffTest.dir/__/src/difference.cpp.o:(.rodata+0xc8): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/interactiveDiffTest.dir/interactivedifftest.cpp.o:(.rodata+0x390): first defined here
/usr/bin/ld: CMakeFiles/interactiveDiffTest.dir/__/src/diffhunk.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/interactiveDiffTest.dir/interactivedifftest.cpp.o:(.rodata+0x390): first defined here
/usr/bin/ld: CMakeFiles/interactiveDiffTest.dir/__/src/diffmodel.cpp.o:(.rodata+0xc8): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/interactiveDiffTest.dir/interactivedifftest.cpp.o:(.rodata+0x390): first defined here
/usr/bin/ld: CMakeFiles/interactiveDiffTest.dir/__/src/diffmodel_p.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/interactiveDiffTest.dir/interactivedifftest.cpp.o:(.rodata+0x390): first defined here
/usr/bin/ld: CMakeFiles/interactiveDiffTest.dir/__/src/diffmodellist.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/interactiveDiffTest.dir/interactivedifftest.cpp.o:(.rodata+0x390): first defined here
/usr/bin/ld: CMakeFiles/interactiveDiffTest.dir/__/src/diffparser.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/interactiveDiffTest.dir/interactivedifftest.cpp.o:(.rodata+0x390): first defined here
/usr/bin/ld: CMakeFiles/interactiveDiffTest.dir/__/src/modellist.cpp.o:(.rodata+0x89c): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/interactiveDiffTest.dir/interactivedifftest.cpp.o:(.rodata+0x390): first defined here
/usr/bin/ld: CMakeFiles/interactiveDiffTest.dir/__/src/modellist_p.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/interactiveDiffTest.dir/interactivedifftest.cpp.o:(.rodata+0x390): first defined here
/usr/bin/ld: CMakeFiles/interactiveDiffTest.dir/__/src/kompareprocess.cpp.o:(.rodata+0x144): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/interactiveDiffTest.dir/interactivedifftest.cpp.o:(.rodata+0x390): first defined here
/usr/bin/ld: CMakeFiles/interactiveDiffTest.dir/__/src/parser.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/interactiveDiffTest.dir/interactivedifftest.cpp.o:(.rodata+0x390): first defined here
/usr/bin/ld: CMakeFiles/interactiveDiffTest.dir/__/src/parserbase.cpp.o:(.rodata+0x14): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/interactiveDiffTest.dir/interactivedifftest.cpp.o:(.rodata+0x390): first defined here
/usr/bin/ld: CMakeFiles/interactiveDiffTest.dir/komparediff2_logging.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/interactiveDiffTest.dir/interactivedifftest.cpp.o:(.rodata+0x390): first defined here
[ 92%] Building CXX object src/CMakeFiles/komparediff2.dir/komparediff2_logging.cpp.o
collect2: error: ld returned 1 exit status
make[3]: *** [tests/CMakeFiles/interactiveDiffTest.dir/build.make:399: bin/interactiveDiffTest] Error 1
make[3]: Leaving directory '/build/reproducible-path/libkomparediff2-24.12.1/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:936: tests/CMakeFiles/interactiveDiffTest.dir/all] Error 2
[ 94%] Linking CXX shared library ../bin/libkomparediff2.so
cd /build/reproducible-path/libkomparediff2-24.12.1/obj-x86_64-linux-gnu/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/komparediff2.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/komparediff2.dir/modellist.cpp.o:(.rodata+0x89c): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/komparediff2.dir/kompareprocess.cpp.o:(.rodata+0x144): first defined here
/usr/bin/ld: CMakeFiles/komparediff2.dir/modellist_p.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/komparediff2.dir/kompareprocess.cpp.o:(.rodata+0x144): first defined here
/usr/bin/ld: CMakeFiles/komparediff2.dir/diffmodellist.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/komparediff2.dir/kompareprocess.cpp.o:(.rodata+0x144): first defined here
/usr/bin/ld: CMakeFiles/komparediff2.dir/diffmodel.cpp.o:(.rodata+0xc8): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/komparediff2.dir/kompareprocess.cpp.o:(.rodata+0x144): first defined here
/usr/bin/ld: CMakeFiles/komparediff2.dir/diffmodel_p.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/komparediff2.dir/kompareprocess.cpp.o:(.rodata+0x144): first defined here
/usr/bin/ld: CMakeFiles/komparediff2.dir/difference.cpp.o:(.rodata+0xc8): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/komparediff2.dir/kompareprocess.cpp.o:(.rodata+0x144): first defined here
/usr/bin/ld: CMakeFiles/komparediff2.dir/diffhunk.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/komparediff2.dir/kompareprocess.cpp.o:(.rodata+0x144): first defined here
/usr/bin/ld: CMakeFiles/komparediff2.dir/diffsettings.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/komparediff2.dir/kompareprocess.cpp.o:(.rodata+0x144): first defined here
/usr/bin/ld: CMakeFiles/komparediff2.dir/parser.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/komparediff2.dir/kompareprocess.cpp.o:(.rodata+0x144): first defined here
/usr/bin/ld: CMakeFiles/komparediff2.dir/parserbase.cpp.o:(.rodata+0x14): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/komparediff2.dir/kompareprocess.cpp.o:(.rodata+0x144): first defined here
/usr/bin/ld: CMakeFiles/komparediff2.dir/cvsdiffparser.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/komparediff2.dir/kompareprocess.cpp.o:(.rodata+0x144): first defined here
/usr/bin/ld: CMakeFiles/komparediff2.dir/diffparser.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/komparediff2.dir/kompareprocess.cpp.o:(.rodata+0x144): first defined here
/usr/bin/ld: CMakeFiles/komparediff2.dir/perforceparser.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/komparediff2.dir/kompareprocess.cpp.o:(.rodata+0x144): first defined here
/usr/bin/ld: CMakeFiles/komparediff2.dir/komparediff2_logging.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/komparediff2.dir/kompareprocess.cpp.o:(.rodata+0x144): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [src/CMakeFiles/komparediff2.dir/build.make:399: bin/libkomparediff2.so.6.0.0] Error 1
make[3]: Leaving directory '/build/reproducible-path/libkomparediff2-24.12.1/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:839: src/CMakeFiles/komparediff2.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/libkomparediff2-24.12.1/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/libkomparediff2-24.12.1/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