#1097783 redshift-qt: ftbfs with GCC-15

#1097783#5
Date:
2025-02-17 17:50:13 UTC
From:
To:
[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/redshift-qt_0.6-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

[...]
UPUeRDCGV4Vm/zhRL6UnaO8uDgHrBMdoLdm0MlTORLfBkTVyUsh2HdVQnoP+UyFc
uZEPhxUytYoKeoUwPm/ZTwvtQbL71nQEZGRx9IQKZFkbljNnOHo92+MnL8i8pe6d
lwryo2lD7eas3e4HKN85w8TvHdKtAiziwEDQlFXm5Mkgl14OeGxDs7UloCNaTcf/
kvSemxpbpyOcjyYc1nt+sRV3o92GHUFPbAbVtDz9On3hzRwPBZ9aZFvQad2Tibjt
ywD6ACj0mN8VWS4zyVetO5n09hgFzd28UJD3TllaTTYVHAYKrqA=
=H2Ia
-----END PGP SIGNATURE-----

dpkg-source: warning: cannot verify inline signature for ./redshift-qt_0.6-4.dsc: unsupported subcommand
dpkg-source: info: extracting redshift-qt in /build/reproducible-path/redshift-qt-0.6
dpkg-source: info: unpacking redshift-qt_0.6.orig.tar.gz
dpkg-source: info: unpacking redshift-qt_0.6-4.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying add-translations-to-desktop.patch
dpkg-source: info: applying qt6-port.patch

Check disk space
----------------

Sufficient free space for build

User Environment
----------------

APT_CONFIG=/var/lib/sbuild/apt.conf
HOME=/sbuild-nonexistent
LANG=C.UTF-8
LC_ALL=C.UTF-8
LOGNAME=user42
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SHELL=/bin/sh
USER=user42

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage --sanitize-env -us -uc -b
dpkg-buildpackage: info: source package redshift-qt
dpkg-buildpackage: info: source version 0.6-4
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Simon Quigley <tsimonq2@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
dh clean --buildsystem=qmake6
   dh_auto_clean -O--buildsystem=qmake6
   dh_autoreconf_clean -O--buildsystem=qmake6
   dh_clean -O--buildsystem=qmake6
 debian/rules binary
dh binary --buildsystem=qmake6
   dh_update_autotools_config -O--buildsystem=qmake6
   dh_autoreconf -O--buildsystem=qmake6
   dh_auto_configure -O--buildsystem=qmake6
	qmake6 -makefile "QMAKE_CFLAGS_RELEASE=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/redshift-qt-0.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CFLAGS_DEBUG=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/redshift-qt-0.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CXXFLAGS_RELEASE=-g -O2 -ffile-prefix-map=/build/reproducible-path/redshift-qt-0.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CXXFLAGS_DEBUG=-g -O2 -ffile-prefix-map=/build/reproducible-path/redshift-qt-0.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_LFLAGS_RELEASE=-Wl,-z,relro -Wl,-z,now" "QMAKE_LFLAGS_DEBUG=-Wl,-z,relro -Wl,-z,now" QMAKE_STRIP=: PREFIX=/usr
Info: creating stash file /build/reproducible-path/redshift-qt-0.6/.qmake.stash
   dh_auto_build -O--buildsystem=qmake6
	make -j8
make[1]: Entering directory '/build/reproducible-path/redshift-qt-0.6'
g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/redshift-qt-0.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -D_REENTRANT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/include/x86_64-linux-gnu/qt6 -I/usr/include/x86_64-linux-gnu/qt6/QtWidgets -I/usr/include/x86_64-linux-gnu/qt6/QtGui -I/usr/include/x86_64-linux-gnu/qt6/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -o main.o main.cpp
g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/redshift-qt-0.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -D_REENTRANT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/include/x86_64-linux-gnu/qt6 -I/usr/include/x86_64-linux-gnu/qt6/QtWidgets -I/usr/include/x86_64-linux-gnu/qt6/QtGui -I/usr/include/x86_64-linux-gnu/qt6/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -o systemtray.o systemtray.cpp
/usr/lib/qt6/libexec/rcc -name resources resources.qrc -o qrc_resources.cpp
g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/redshift-qt-0.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -D_REENTRANT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/include/x86_64-linux-gnu/qt6 -I/usr/include/x86_64-linux-gnu/qt6/QtWidgets -I/usr/include/x86_64-linux-gnu/qt6/QtGui -I/usr/include/x86_64-linux-gnu/qt6/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -o qrc_resources.o qrc_resources.cpp
g++ -Wl,-z,relro -Wl,-z,now -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu -o redshift-qt  main.o systemtray.o qrc_resources.o   /usr/lib/x86_64-linux-gnu/libQt6Widgets.so /usr/lib/x86_64-linux-gnu/libQt6Gui.so /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libOpenGL.so /usr/lib/x86_64-linux-gnu/libQt6Core.so -lpthread -lGLX -lOpenGL
/usr/bin/ld: systemtray.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; main.o:(.rodata+0x0): first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:138: redshift-qt] Error 1
make[1]: Leaving directory '/build/reproducible-path/redshift-qt-0.6'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2