Subject: lomiri-content-hub: ftbfs with GCC-15

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

Package: src:lomiri-content-hub
Version: 2.0.0-4
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/lomiri-content-hub_2.0.0-4_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

[...]
[ 82%] Building CXX object import/Lomiri/Content/CMakeFiles/lomiri-content-hub-plugin.dir/contenthubplugin.cpp.o
[ 83%] Linking CXX executable lomiri-content-hub-test-importer
cd /build/reproducible-path/lomiri-content-hub-2.0.0/build/tests/peers/importer && /usr/bin/cmake -E cmake_link_script CMakeFiles/lomiri-content-hub-test-importer.dir/link.txt --verbose=1
[ 83%] Building CXX object src/com/lomiri/content/service/CMakeFiles/lomiri-content-hub-service.dir/registry.cpp.o
[ 83%] Linking CXX executable lomiri-content-hub-test-sharer
cd /build/reproducible-path/lomiri-content-hub-2.0.0/build/tests/peers/sharer && /usr/bin/cmake -E cmake_link_script CMakeFiles/lomiri-content-hub-test-sharer.dir/link.txt --verbose=1
make[3]: Leaving directory '/build/reproducible-path/lomiri-content-hub-2.0.0/build'
[ 83%] Built target lomiri-content-hub-test-importer
[ 83%] Building CXX object src/com/lomiri/content/service/CMakeFiles/lomiri-content-hub-service.dir/registry-updater.cpp.o
make[3]: Leaving directory '/build/reproducible-path/lomiri-content-hub-2.0.0/build'
[ 83%] Built target lomiri-content-hub-test-sharer
[ 83%] Building CXX object src/com/lomiri/content/service/CMakeFiles/lomiri-content-hub-service.dir/__/debug.cpp.o
[ 83%] Linking CXX executable lomiri-content-hub-test-exporter
cd /build/reproducible-path/lomiri-content-hub-2.0.0/build/tests/peers/exporter && /usr/bin/cmake -E cmake_link_script CMakeFiles/lomiri-content-hub-test-exporter.dir/link.txt --verbose=1
[ 83%] Building CXX object tools/send/CMakeFiles/lomiri-content-hub-send.dir/__/__/src/com/lomiri/content/debug.cpp.o
make[3]: Leaving directory '/build/reproducible-path/lomiri-content-hub-2.0.0/build'
[ 83%] Built target lomiri-content-hub-test-exporter
[ 83%] Building CXX object src/com/lomiri/content/service/CMakeFiles/lomiri-content-hub-service.dir/__/utils.cpp.o
[ 83%] Building CXX object import/Lomiri/Content/CMakeFiles/lomiri-content-hub-plugin.dir/contenticonprovider.cpp.o
[ 83%] Building CXX object import/Lomiri/Content/CMakeFiles/lomiri-content-hub-plugin.dir/contentitem.cpp.o
[ 84%] Building CXX object src/com/lomiri/content/service/CMakeFiles/lomiri-content-hub-service.dir/serviceadaptor.cpp.o
[ 84%] Linking CXX executable lomiri-content-hub-send
cd /build/reproducible-path/lomiri-content-hub-2.0.0/build/tools/send && /usr/bin/cmake -E cmake_link_script CMakeFiles/lomiri-content-hub-send.dir/link.txt --verbose=1
make[3]: Leaving directory '/build/reproducible-path/lomiri-content-hub-2.0.0/build'
[ 84%] Built target lomiri-content-hub-send
[ 85%] Building CXX object import/Lomiri/Content/CMakeFiles/lomiri-content-hub-plugin.dir/contentpeer.cpp.o
[ 85%] Building CXX object import/Lomiri/Content/CMakeFiles/lomiri-content-hub-plugin.dir/contentpeermodel.cpp.o
[ 85%] Building CXX object import/Lomiri/Content/CMakeFiles/lomiri-content-hub-plugin.dir/contentscope.cpp.o
[ 85%] Building CXX object import/Lomiri/Content/CMakeFiles/lomiri-content-hub-plugin.dir/contentstore.cpp.o
[ 86%] Building CXX object import/Lomiri/Content/CMakeFiles/lomiri-content-hub-plugin.dir/contenttransfer.cpp.o
[ 86%] Building CXX object import/Lomiri/Content/CMakeFiles/lomiri-content-hub-plugin.dir/contenttype.cpp.o
[ 86%] Building CXX object import/Lomiri/Content/CMakeFiles/lomiri-content-hub-plugin.dir/qmlimportexporthandler.cpp.o
[ 86%] Building CXX object import/Lomiri/Content/CMakeFiles/lomiri-content-hub-plugin.dir/__/__/__/src/com/lomiri/content/debug.cpp.o
[ 86%] Linking CXX executable lomiri-content-hub-service
cd /build/reproducible-path/lomiri-content-hub-2.0.0/build/src/com/lomiri/content/service && /usr/bin/cmake -E cmake_link_script CMakeFiles/lomiri-content-hub-service.dir/link.txt --verbose=1
make[3]: Leaving directory '/build/reproducible-path/lomiri-content-hub-2.0.0/build'
[ 86%] Built target lomiri-content-hub-service
[ 87%] Linking CXX shared module liblomiri-content-hub-plugin.so
cd /build/reproducible-path/lomiri-content-hub-2.0.0/build/import/Lomiri/Content && /usr/bin/cmake -E cmake_link_script CMakeFiles/lomiri-content-hub-plugin.dir/link.txt --verbose=1
make[3]: Leaving directory '/build/reproducible-path/lomiri-content-hub-2.0.0/build'
[ 87%] Built target lomiri-content-hub-plugin
make[2]: Leaving directory '/build/reproducible-path/lomiri-content-hub-2.0.0/build'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/lomiri-content-hub-2.0.0/build'
dh_auto_build: error: cd build && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:20: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2