Bug#1097061: kmbox: ftbfs with GCC-15
Package: src:kmbox
Version: 24.12.0-2
Severity: important
Tags: sid forky
User: debian-gcc@lists.debian.org
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/kmbox_24.12.0-2_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
[...]
/build/reproducible-path/kmbox-24.12.0/src/mbox.cpp: In destructor ‘KMBox::MBox::~MBox()’:
/build/reproducible-path/kmbox-24.12.0/src/mbox.cpp:41:15: warning: ignoring return value of ‘bool KMBox::MBox::unlock()’, declared with attribute ‘nodiscard’ [-Wunused-result]
41 | unlock();
| ~~~~~~^~
In file included from /build/reproducible-path/kmbox-24.12.0/src/mbox.cpp:13:
/build/reproducible-path/kmbox-24.12.0/src/mbox.h:218:24: note: declared here
218 | [[nodiscard]] bool unlock();
| ^~~~~~
/build/reproducible-path/kmbox-24.12.0/src/mbox.cpp: In member function ‘bool KMBox::MBox::lock()’:
/build/reproducible-path/kmbox-24.12.0/src/mbox.cpp:208:34: warning: ignoring return value of ‘bool KMBox::MBoxPrivate::startTimerIfNeeded()’, declared with attribute ‘nodiscard’ [-Wunused-result]
208 | d->startTimerIfNeeded();
| ~~~~~~~~~~~~~~~~~~~~~^~
In file included from /build/reproducible-path/kmbox-24.12.0/src/mbox.cpp:14:
/build/reproducible-path/kmbox-24.12.0/src/mbox_p.h:33:24: note: declared here
33 | [[nodiscard]] bool startTimerIfNeeded();
| ^~~~~~~~~~~~~~~~~~
/build/reproducible-path/kmbox-24.12.0/src/mbox.cpp:279:26: warning: ignoring return value of ‘bool KMBox::MBoxPrivate::startTimerIfNeeded()’, declared with attribute ‘nodiscard’ [-Wunused-result]
279 | d->startTimerIfNeeded();
| ~~~~~~~~~~~~~~~~~~~~~^~
/build/reproducible-path/kmbox-24.12.0/src/mbox_p.h:33:24: note: declared here
33 | [[nodiscard]] bool startTimerIfNeeded();
| ^~~~~~~~~~~~~~~~~~
/build/reproducible-path/kmbox-24.12.0/src/mbox.cpp: In member function ‘bool KMBox::MBox::purge(const KMBox::MBoxEntry::List&, QList<std::pair<KMBox::MBoxEntry, KMBox::MBoxEntry> >*)’:
/build/reproducible-path/kmbox-24.12.0/src/mbox.cpp:313:19: warning: ignoring return value of ‘bool KMBox::MBox::unlock()’, declared with attribute ‘nodiscard’ [-Wunused-result]
313 | unlock();
| ~~~~~~^~
/build/reproducible-path/kmbox-24.12.0/src/mbox.h:218:24: note: declared here
218 | [[nodiscard]] bool unlock();
| ^~~~~~
/build/reproducible-path/kmbox-24.12.0/src/mbox.cpp: In member function ‘QByteArray KMBox::MBox::readRawMessage(const KMBox::MBoxEntry&)’:
/build/reproducible-path/kmbox-24.12.0/src/mbox.cpp:424:23: warning: ignoring return value of ‘bool KMBox::MBox::unlock()’, declared with attribute ‘nodiscard’ [-Wunused-result]
424 | unlock();
| ~~~~~~^~
/build/reproducible-path/kmbox-24.12.0/src/mbox.h:218:24: note: declared here
218 | [[nodiscard]] bool unlock();
| ^~~~~~
/build/reproducible-path/kmbox-24.12.0/src/mbox.cpp:441:23: warning: ignoring return value of ‘bool KMBox::MBox::unlock()’, declared with attribute ‘nodiscard’ [-Wunused-result]
441 | unlock();
| ~~~~~~^~
/build/reproducible-path/kmbox-24.12.0/src/mbox.h:218:24: note: declared here
218 | [[nodiscard]] bool unlock();
| ^~~~~~
/build/reproducible-path/kmbox-24.12.0/src/mbox.cpp:455:23: warning: ignoring return value of ‘bool KMBox::MBox::unlock()’, declared with attribute ‘nodiscard’ [-Wunused-result]
455 | unlock();
| ~~~~~~^~
/build/reproducible-path/kmbox-24.12.0/src/mbox.h:218:24: note: declared here
218 | [[nodiscard]] bool unlock();
| ^~~~~~
/build/reproducible-path/kmbox-24.12.0/src/mbox.cpp: In member function ‘QByteArray KMBox::MBox::readMessageHeaders(const KMBox::MBoxEntry&)’:
/build/reproducible-path/kmbox-24.12.0/src/mbox.cpp:537:15: warning: ignoring return value of ‘bool KMBox::MBox::unlock()’, declared with attribute ‘nodiscard’ [-Wunused-result]
537 | unlock();
| ~~~~~~^~
/build/reproducible-path/kmbox-24.12.0/src/mbox.h:218:24: note: declared here
218 | [[nodiscard]] bool unlock();
| ^~~~~~
[ 38%] Linking CXX shared library ../bin/libKPim6Mbox.so
cd /build/reproducible-path/kmbox-24.12.0/obj-x86_64-linux-gnu/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/KPim6Mbox.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/KPim6Mbox.dir/mbox.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KPim6Mbox.dir/mbox_p.cpp.o:(.rodata+0x98): first defined here
/usr/bin/ld: CMakeFiles/KPim6Mbox.dir/kmbox_debug.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KPim6Mbox.dir/mbox_p.cpp.o:(.rodata+0x98): first defined here
collect2: error: ld returned 1 exit status
/usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/build/reproducible-path/kmbox-24.12.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Werror=undef -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -pedantic -Wzero-as-null-pointer-constant -Wmissing-include-dirs -Wl,--no-undefined -Wl,--fatal-warnings -Wl,--enable-new-dtags -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libKPim6Mbox.so.6 -o ../bin/libKPim6Mbox.so.6.3.0 CMakeFiles/KPim6Mbox.dir/KPim6Mbox_autogen/mocs_compilation.cpp.o CMakeFiles/KPim6Mbox.dir/mboxentry.cpp.o CMakeFiles/KPim6Mbox.dir/mbox_p.cpp.o CMakeFiles/KPim6Mbox.dir/mbox.cpp.o CMakeFiles/KPim6Mbox.dir/kmbox_debug.cpp.o /usr/lib/x86_64-linux-gnu/libKPim6Mime.so.6.3.0 /usr/li
b/x86_64-linux-gnu/libQt6Core.so.6.7.2
make[3]: *** [src/CMakeFiles/KPim6Mbox.dir/build.make:173: bin/libKPim6Mbox.so.6.3.0] Error 1
make[3]: Leaving directory '/build/reproducible-path/kmbox-24.12.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:274: src/CMakeFiles/KPim6Mbox.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/kmbox-24.12.0/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/kmbox-24.12.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:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: