Subject: flatpak-kcm: ftbfs with GCC-15

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

Package: src:flatpak-kcm
Version: 6.3.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/flatpak-kcm_6.3.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

[...]
AutoMoc: Merging MOC dependencies into "SRC:/obj-x86_64-linux-gnu/kcm_flatpak_autogen/deps"
AutoGen: Writing the parse cache file "SRC:/obj-x86_64-linux-gnu/CMakeFiles/kcm_flatpak_autogen.dir/ParseCache.txt"
AutoGen: Writing the settings file "SRC:/obj-x86_64-linux-gnu/CMakeFiles/kcm_flatpak_autogen.dir/AutogenUsed.txt"
/usr/bin/cmake -E touch /build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu/kcm_flatpak_autogen/timestamp
make[3]: Leaving directory '/build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu'
[ 62%] Built target kcm_flatpak_autogen
make  -f CMakeFiles/kcm_flatpak.dir/build.make CMakeFiles/kcm_flatpak.dir/depend
make[3]: Entering directory '/build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu'
[ 65%] Generating qrc_kcm_flatpak.cpp
/usr/lib/qt6/libexec/rcc --name kcm_flatpak --output /build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu/qrc_kcm_flatpak.cpp /build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu/kcm_flatpak.qrc
cd /build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/flatpak-kcm-6.3.0 /build/reproducible-path/flatpak-kcm-6.3.0 /build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu /build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu /build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu/CMakeFiles/kcm_flatpak.dir/DependInfo.cmake "--color="
Dependencies file "kcm_flatpak_autogen/deps" is newer than depends file "/build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu/CMakeFiles/kcm_flatpak.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target kcm_flatpak
make[3]: Leaving directory '/build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu'
make  -f CMakeFiles/kcm_flatpak.dir/build.make CMakeFiles/kcm_flatpak.dir/build
make[3]: Entering directory '/build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu'
[ 68%] Building CXX object CMakeFiles/kcm_flatpak.dir/kcm.cpp.o
[ 75%] Building CXX object CMakeFiles/kcm_flatpak.dir/qrc_kcm_flatpak.cpp.o
[ 75%] Building CXX object CMakeFiles/kcm_flatpak.dir/kcm_flatpak_autogen/mocs_compilation.cpp.o
[ 78%] Linking CXX executable ../bin/FlatpakSimpleEntryTest
cd /build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu/autotests && /usr/bin/cmake -E cmake_link_script CMakeFiles/FlatpakSimpleEntryTest.dir/link.txt --verbose=1
/usr/bin/ld: ../lib/libkcm_flatpak_static.a(flatpakpermission.cpp.o):(.rodata+0xbac): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/FlatpakSimpleEntryTest.dir/FlatpakSimpleEntryTest.cpp.o:(.rodata+0x1a8): first defined here
/usr/bin/ld: ../lib/libkcm_flatpak_static.a(flatpakhelper.cpp.o):(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/FlatpakSimpleEntryTest.dir/FlatpakSimpleEntryTest.cpp.o:(.rodata+0x1a8): first defined here
/usr/bin/ld: ../lib/libkcm_flatpak_static.a(flatpakcommon.cpp.o):(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/FlatpakSimpleEntryTest.dir/FlatpakSimpleEntryTest.cpp.o:(.rodata+0x1a8): first defined here
/usr/bin/ld: ../lib/libkcm_flatpak_static.a(flatpakreference.cpp.o):(.rodata+0x2e4): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/FlatpakSimpleEntryTest.dir/FlatpakSimpleEntryTest.cpp.o:(.rodata+0x1a8): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [autotests/CMakeFiles/FlatpakSimpleEntryTest.dir/build.make:132: bin/FlatpakSimpleEntryTest] Error 1
make[3]: Leaving directory '/build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:932: autotests/CMakeFiles/FlatpakSimpleEntryTest.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 81%] Linking CXX shared module bin/plasma/kcms/systemsettings/kcm_flatpak.so
/usr/bin/cmake -E cmake_link_script CMakeFiles/kcm_flatpak.dir/link.txt --verbose=1
/usr/bin/ld: lib/libkcm_flatpak_static.a(flatpakreference.cpp.o):(.rodata+0x2e4): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_flatpak.dir/kcm.cpp.o:(.rodata+0x2fc): first defined here
/usr/bin/ld: lib/libkcm_flatpak_static.a(flatpakpermission.cpp.o):(.rodata+0xbac): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_flatpak.dir/kcm.cpp.o:(.rodata+0x2fc): first defined here
/usr/bin/ld: lib/libkcm_flatpak_static.a(flatpakhelper.cpp.o):(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/kcm_flatpak.dir/kcm.cpp.o:(.rodata+0x2fc): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/kcm_flatpak.dir/build.make:159: bin/plasma/kcms/systemsettings/kcm_flatpak.so] Error 1
make[3]: Leaving directory '/build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:508: CMakeFiles/kcm_flatpak.dir/all] Error 2
[ 84%] Linking CXX executable ../bin/flatpakfilesystemstest
cd /build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu/autotests && /usr/bin/cmake -E cmake_link_script CMakeFiles/flatpakfilesystemstest.dir/link.txt --verbose=1
/usr/bin/ld: ../lib/libkcm_flatpak_static.a(flatpakpermission.cpp.o):(.rodata+0xbac): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/flatpakfilesystemstest.dir/flatpakfilesystemstest.cpp.o:(.rodata+0x1d0): first defined here
/usr/bin/ld: ../lib/libkcm_flatpak_static.a(flatpakhelper.cpp.o):(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/flatpakfilesystemstest.dir/flatpakfilesystemstest.cpp.o:(.rodata+0x1d0): first defined here
/usr/bin/ld: ../lib/libkcm_flatpak_static.a(flatpakreference.cpp.o):(.rodata+0x2e4): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/flatpakfilesystemstest.dir/flatpakfilesystemstest.cpp.o:(.rodata+0x1d0): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [autotests/CMakeFiles/flatpakfilesystemstest.dir/build.make:132: bin/flatpakfilesystemstest] Error 1
make[3]: Leaving directory '/build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:966: autotests/CMakeFiles/flatpakfilesystemstest.dir/all] Error 2
[ 87%] Linking CXX executable ../bin/flatpakpermissiontest
cd /build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu/autotests && /usr/bin/cmake -E cmake_link_script CMakeFiles/flatpakpermissiontest.dir/link.txt --verbose=1
/usr/bin/ld: ../lib/libkcm_flatpak_static.a(flatpakreference.cpp.o):(.rodata+0x2e4): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/flatpakpermissiontest.dir/flatpakpermissiontest.cpp.o:(.rodata+0x664): first defined here
/usr/bin/ld: ../lib/libkcm_flatpak_static.a(flatpakpermission.cpp.o):(.rodata+0xbac): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/flatpakpermissiontest.dir/flatpakpermissiontest.cpp.o:(.rodata+0x664): first defined here
/usr/bin/ld: ../lib/libkcm_flatpak_static.a(flatpakhelper.cpp.o):(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/flatpakpermissiontest.dir/flatpakpermissiontest.cpp.o:(.rodata+0x664): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [autotests/CMakeFiles/flatpakpermissiontest.dir/build.make:132: bin/flatpakpermissiontest] Error 1
make[3]: Leaving directory '/build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:897: autotests/CMakeFiles/flatpakpermissiontest.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/flatpak-kcm-6.3.0/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/flatpak-kcm-6.3.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