Subject: kf6-kdeclarative: ftbfs with GCC-15

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

Package: src:kf6-kdeclarative
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-kdeclarative_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

[...]
[ 71%] Building CXX object src/qmlcontrols/draganddrop/CMakeFiles/draganddropplugin.dir/DeclarativeMimeData.cpp.o
collect2: error: ld returned 1 exit status
make[3]: *** [src/qmlcontrols/graphicaleffects/CMakeFiles/graphicaleffects.dir/build.make:334: bin/org/kde/graphicaleffects/libgraphicaleffects.so] Error 1
make[3]: Leaving directory '/build/reproducible-path/kf6-kdeclarative-6.10.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1389: src/qmlcontrols/graphicaleffects/CMakeFiles/graphicaleffects.dir/all] Error 2
[ 71%] Building CXX object src/qmlcontrols/draganddrop/CMakeFiles/draganddropplugin.dir/draganddropplugin.cpp.o
[ 72%] Building CXX object src/qmlcontrols/draganddrop/CMakeFiles/draganddropplugin.dir/MimeDataWrapper.cpp.o
[ 73%] Linking CXX shared module ../../../bin/org/kde/kquickcontrolsaddons/libkquickcontrolsaddonsplugin.so
cd /build/reproducible-path/kf6-kdeclarative-6.10.0/obj-x86_64-linux-gnu/src/qmlcontrols/kquickcontrolsaddons && /usr/bin/cmake -E cmake_link_script CMakeFiles/kquickcontrolsaddonsplugin.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/kquickcontrolsaddonsplugin.dir/kquickcontrolsaddonsplugin_qmltyperegistrations.cpp.o (symbol from plugin): in function `qml_register_types_org_kde_kquickcontrolsaddons()':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kquickcontrolsaddonsplugin.dir/kquickcontrolsaddonsplugin_org_kde_kquickcontrolsaddonsPlugin.cpp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/kquickcontrolsaddonsplugin.dir/clipboard.cpp.o (symbol from plugin): in function `Clipboard::staticMetaObject':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kquickcontrolsaddonsplugin.dir/kquickcontrolsaddonsplugin_org_kde_kquickcontrolsaddonsPlugin.cpp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/kquickcontrolsaddonsplugin.dir/mouseeventlistener.cpp.o (symbol from plugin): in function `KDeclarativeMouseEvent::staticMetaObject':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kquickcontrolsaddonsplugin.dir/kquickcontrolsaddonsplugin_org_kde_kquickcontrolsaddonsPlugin.cpp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/kquickcontrolsaddonsplugin.dir/qimageitem.cpp.o (symbol from plugin): in function `QImageItem::staticMetaObject':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kquickcontrolsaddonsplugin.dir/kquickcontrolsaddonsplugin_org_kde_kquickcontrolsaddonsPlugin.cpp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/kquickcontrolsaddonsplugin.dir/qpixmapitem.cpp.o (symbol from plugin): in function `QPixmapItem::staticMetaObject':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kquickcontrolsaddonsplugin.dir/kquickcontrolsaddonsplugin_org_kde_kquickcontrolsaddonsPlugin.cpp.o (symbol from plugin):(.text+0x0): first defined here
[ 74%] Linking CXX shared library ../../../../bin/libkquickcontrolsprivate.so
cd /build/reproducible-path/kf6-kdeclarative-6.10.0/obj-x86_64-linux-gnu/src/qmlcontrols/kquickcontrols/private && /usr/bin/cmake -E cmake_link_script CMakeFiles/kquickcontrolsprivate.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/kquickcontrolsprivate.dir/kquickcontrolsprivate_qmltyperegistrations.cpp.o (symbol from plugin): in function `qml_register_types_org_kde_private_kquickcontrols()':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kquickcontrolsprivate.dir/kquickcontrolsprivate_autogen/mocs_compilation.cpp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/kquickcontrolsprivate.dir/keysequencehelper.cpp.o (symbol from plugin): in function `KeySequenceHelper::staticMetaObject':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kquickcontrolsprivate.dir/kquickcontrolsprivate_autogen/mocs_compilation.cpp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/kquickcontrolsprivate.dir/keysequencevalidator.cpp.o (symbol from plugin): in function `KeySequenceValidator::staticMetaObject':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kquickcontrolsprivate.dir/kquickcontrolsprivate_autogen/mocs_compilation.cpp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/kquickcontrolsprivate.dir/translationcontext.cpp.o (symbol from plugin): in function `TranslationContext::staticMetaObject':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kquickcontrolsprivate.dir/kquickcontrolsprivate_autogen/mocs_compilation.cpp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/kquickcontrolsprivate.dir/enums.cpp.o (symbol from plugin): in function `QtPrivate::IsFloatType_v<_Float16>':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kquickcontrolsprivate.dir/kquickcontrolsprivate_autogen/mocs_compilation.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [src/qmlcontrols/kquickcontrolsaddons/CMakeFiles/kquickcontrolsaddonsplugin.dir/build.make:264: bin/org/kde/kquickcontrolsaddons/libkquickcontrolsaddonsplugin.so] Error 1
make[3]: Leaving directory '/build/reproducible-path/kf6-kdeclarative-6.10.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1163: src/qmlcontrols/kquickcontrolsaddons/CMakeFiles/kquickcontrolsaddonsplugin.dir/all] Error 2
[ 75%] Linking CXX shared module ../../../bin/org/kde/draganddrop/libdraganddropplugin.so
cd /build/reproducible-path/kf6-kdeclarative-6.10.0/obj-x86_64-linux-gnu/src/qmlcontrols/draganddrop && /usr/bin/cmake -E cmake_link_script CMakeFiles/draganddropplugin.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/draganddropplugin.dir/DeclarativeDragArea.cpp.o (symbol from plugin): in function `DeclarativeDragArea::staticMetaObject':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/draganddropplugin.dir/draganddropplugin_qmltyperegistrations.cpp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/draganddropplugin.dir/DeclarativeDragDropEvent.cpp.o (symbol from plugin): in function `DeclarativeDragDropEvent::staticMetaObject':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/draganddropplugin.dir/draganddropplugin_qmltyperegistrations.cpp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/draganddropplugin.dir/DeclarativeDropArea.cpp.o (symbol from plugin): in function `DeclarativeDropArea::staticMetaObject':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/draganddropplugin.dir/draganddropplugin_qmltyperegistrations.cpp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/draganddropplugin.dir/DeclarativeMimeData.cpp.o (symbol from plugin): in function `DeclarativeMimeData::staticMetaObject':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/draganddropplugin.dir/draganddropplugin_qmltyperegistrations.cpp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/draganddropplugin.dir/draganddropplugin.cpp.o (symbol from plugin): in function `DragAndDropPlugin::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/draganddropplugin.dir/draganddropplugin_qmltyperegistrations.cpp.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/draganddropplugin.dir/MimeDataWrapper.cpp.o (symbol from plugin): in function `MimeDataWrapper::staticMetaObject':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/draganddropplugin.dir/draganddropplugin_qmltyperegistrations.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [src/qmlcontrols/kquickcontrols/private/CMakeFiles/kquickcontrolsprivate.dir/build.make:250: bin/libkquickcontrolsprivate.so.6.10.0] Error 1
make[3]: Leaving directory '/build/reproducible-path/kf6-kdeclarative-6.10.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1908: src/qmlcontrols/kquickcontrols/private/CMakeFiles/kquickcontrolsprivate.dir/all] Error 2
collect2: error: ld returned 1 exit status
make[3]: *** [src/qmlcontrols/draganddrop/CMakeFiles/draganddropplugin.dir/build.make:280: bin/org/kde/draganddrop/libdraganddropplugin.so] Error 1
make[3]: Leaving directory '/build/reproducible-path/kf6-kdeclarative-6.10.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:738: src/qmlcontrols/draganddrop/CMakeFiles/draganddropplugin.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/kf6-kdeclarative-6.10.0/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/kf6-kdeclarative-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