Subject: kweathercore: ftbfs with GCC-15

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

Package: src:kweathercore
Version: 24.12.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/kweathercore_24.12.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

[...]
[ 18%] Building CXX object src/CMakeFiles/KWeatherCore.dir/hourlyweatherforecast.cpp.o
[ 20%] Building CXX object src/CMakeFiles/KWeatherCore.dir/geotimezone.cpp.o
[ 21%] Building CXX object src/CMakeFiles/KWeatherCore.dir/kweathercore.cpp.o
[ 23%] Building CXX object src/CMakeFiles/KWeatherCore.dir/metnoparser.cpp.o
[ 25%] Building CXX object src/CMakeFiles/KWeatherCore.dir/pendingweatherforecast.cpp.o
[ 26%] Building CXX object src/CMakeFiles/KWeatherCore.dir/capalertinfo.cpp.o
[ 28%] Building CXX object src/CMakeFiles/KWeatherCore.dir/capalertmessage.cpp.o
[ 29%] Building CXX object src/CMakeFiles/KWeatherCore.dir/capparser.cpp.o
[ 31%] Building CXX object src/CMakeFiles/KWeatherCore.dir/caparea.cpp.o
[ 32%] Building CXX object src/CMakeFiles/KWeatherCore.dir/capreference.cpp.o
/build/reproducible-path/kweathercore-24.12.0/src/metnoparser.cpp: In member function ‘bool KWeatherCore::MetNoParser::isDayTime(const QDateTime&) const’:
/build/reproducible-path/kweathercore-24.12.0/src/metnoparser.cpp:91:61: warning: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead [-Wdeprecated-declarations]
   91 |     auto sunrise = QDateTime(dt.date(), sunriseTime, Qt::UTC);
      |                                                             ^
In file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/qfileinfo.h:11,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/qdir.h:9,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/QDir:1,
                 from /build/reproducible-path/kweathercore-24.12.0/src/kweathercore_p.h:12,
                 from /build/reproducible-path/kweathercore-24.12.0/src/metnoparser.cpp:8:
/usr/include/x86_64-linux-gnu/qt6/QtCore/qdatetime.h:364:5: note: declared here
  364 |     QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0);
      |     ^~~~~~~~~
/build/reproducible-path/kweathercore-24.12.0/src/metnoparser.cpp:92:59: warning: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead [-Wdeprecated-declarations]
   92 |     auto sunset = QDateTime(dt.date(), sunsetTime, Qt::UTC);
      |                                                           ^
/usr/include/x86_64-linux-gnu/qt6/QtCore/qdatetime.h:364:5: note: declared here
  364 |     QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0);
      |     ^~~~~~~~~
[ 34%] Building CXX object src/CMakeFiles/KWeatherCore.dir/reply.cpp.o
[ 35%] Linking CXX shared library ../bin/libKWeatherCore.so
cd /build/reproducible-path/kweathercore-24.12.0/obj-x86_64-linux-gnu/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/KWeatherCore.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/KWeatherCore.dir/locationqueryreply.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KWeatherCore.dir/locationquery.cpp.o:(.rodata+0x64): first defined here
/usr/bin/ld: CMakeFiles/KWeatherCore.dir/locationqueryresult.cpp.o:(.rodata+0x1a8): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KWeatherCore.dir/locationquery.cpp.o:(.rodata+0x64): first defined here
/usr/bin/ld: CMakeFiles/KWeatherCore.dir/weatherforecastsource.cpp.o:(.rodata+0x6c): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KWeatherCore.dir/locationquery.cpp.o:(.rodata+0x64): first defined here
/usr/bin/ld: CMakeFiles/KWeatherCore.dir/weatherforecast.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KWeatherCore.dir/locationquery.cpp.o:(.rodata+0x64): first defined here
/usr/bin/ld: CMakeFiles/KWeatherCore.dir/hourlyweatherforecast.cpp.o:(.rodata+0x468): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KWeatherCore.dir/locationquery.cpp.o:(.rodata+0x64): first defined here
/usr/bin/ld: CMakeFiles/KWeatherCore.dir/dailyweatherforecast.cpp.o:(.rodata+0x210): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KWeatherCore.dir/locationquery.cpp.o:(.rodata+0x64): first defined here
/usr/bin/ld: CMakeFiles/KWeatherCore.dir/geotimezone.cpp.o:(.rodata+0x64): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KWeatherCore.dir/locationquery.cpp.o:(.rodata+0x64): first defined here
/usr/bin/ld: CMakeFiles/KWeatherCore.dir/kweathercore.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KWeatherCore.dir/locationquery.cpp.o:(.rodata+0x64): first defined here
/usr/bin/ld: CMakeFiles/KWeatherCore.dir/metnoparser.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KWeatherCore.dir/locationquery.cpp.o:(.rodata+0x64): first defined here
/usr/bin/ld: CMakeFiles/KWeatherCore.dir/pendingweatherforecast.cpp.o:(.rodata+0x70): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KWeatherCore.dir/locationquery.cpp.o:(.rodata+0x64): first defined here
/usr/bin/ld: CMakeFiles/KWeatherCore.dir/capalertinfo.cpp.o:(.rodata+0x7b0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KWeatherCore.dir/locationquery.cpp.o:(.rodata+0x64): first defined here
/usr/bin/ld: CMakeFiles/KWeatherCore.dir/capalertmessage.cpp.o:(.rodata+0x398): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KWeatherCore.dir/locationquery.cpp.o:(.rodata+0x64): first defined here
/usr/bin/ld: CMakeFiles/KWeatherCore.dir/capparser.cpp.o:(.rodata+0x74): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KWeatherCore.dir/locationquery.cpp.o:(.rodata+0x64): first defined here
/usr/bin/ld: CMakeFiles/KWeatherCore.dir/caparea.cpp.o:(.rodata+0x1b4): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KWeatherCore.dir/locationquery.cpp.o:(.rodata+0x64): first defined here
/usr/bin/ld: CMakeFiles/KWeatherCore.dir/capreference.cpp.o:(.rodata+0xd4): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KWeatherCore.dir/locationquery.cpp.o:(.rodata+0x64): first defined here
/usr/bin/ld: CMakeFiles/KWeatherCore.dir/reply.cpp.o:(.rodata+0x98): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/KWeatherCore.dir/locationquery.cpp.o:(.rodata+0x64): first defined here
collect2: error: ld returned 1 exit status
/usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/build/reproducible-path/kweathercore-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,libKWeatherCore.so.6 -o ../bin/libKWeatherCore.so.24.12.0 CMakeFiles/KWeatherCore.dir/KWeatherCore_autogen/mocs_compilation.cpp.o CMakeFiles/KWeatherCore.dir/locationquery.cpp.o CMakeFiles/KWeatherCore.dir/locationqueryreply.cpp.o CMakeFiles/KWeatherCore.dir/locationqueryresult.cpp.o CMakeFiles/KWeatherCore.dir/weatherforecastsource.cpp.o CMakeFiles/KWeatherCore.dir/weatherforecast.cpp.o CMakeFiles/KWeatherCore.dir/hourlyweatherforecast.cpp.o CMakeFiles/KWeatherCore.dir/dailyweatherforecast.cpp.o CMakeFiles/KWeatherCore.dir/geotimezone.cpp.o CMakeFiles/KWeatherCore.dir/kweathercore.cpp.o CMakeFiles/KWeatherCore.dir/metnoparser.cpp.o CMakeFiles/KWeatherCore.dir/pendingweatherforecast.cpp.o CMakeFiles/KWeatherCore.dir/capalertinfo.cpp.o CMakeFiles/KWeatherCore.dir/capalertmessage.cpp.o CMakeFiles/KWeatherCore.dir/capparser.cpp.o CMakeFiles/KWeatherCore.dir/caparea.cpp.o CMakeFiles/KWeatherCore.dir/capreference.cpp.o CMakeFiles/KWeatherCore.dir/reply.cpp.o  /usr/lib/x86_64-linux-gnu/libQt6Network.so.6.7.2 /usr/lib/x86_64-linux-gnu/libQt6Positioning.so.6.7.2 /usr/lib/x86_64-linux-gnu/libKF6I18nLocaleData.so.6.10.0 /usr/lib/x86_64-linux-gnu/libKF6Holidays.so.6.10.0 /usr/lib/x86_64-linux-gnu/libKF6I18n.so.6.10.0 /usr/lib/x86_64-linux-gnu/libQt6Core.so.6.7.2
make[3]: *** [src/CMakeFiles/KWeatherCore.dir/build.make:381: bin/libKWeatherCore.so.24.12.0] Error 1
make[3]: Leaving directory '/build/reproducible-path/kweathercore-24.12.0/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:443: src/CMakeFiles/KWeatherCore.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/kweathercore-24.12.0/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/kweathercore-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:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2