Bug#1097867: sddm: ftbfs with GCC-15
Package: src:sddm
Version: 0.21.0+git20241213.4a9aa2e-1
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/sddm_0.21.0+git20241213.4a9aa2e-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
[...]
In file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/qforeach.h:11,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qglobal.h:57,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qnamespace.h:12,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs.h:12,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qobject.h:10,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qsocketnotifier.h:7,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/QSocketNotifier:1,
from /build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e/src/helper/UserSession.cpp:22:
/usr/include/x86_64-linux-gnu/qt6/QtCore/qttypetraits.h:33:45: note: declared here
33 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
| ^~~~~~~~
In file included from /build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e/src/helper/backend/PamBackend.h:25,
from /build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e/src/helper/backend/PamHandle.cpp:21:
/build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e/src/auth/AuthMessages.h: In function ‘QDataStream& SDDM::operator<<(QDataStream&, const Request&)’:
/build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e/src/auth/AuthMessages.h:191:39: warning: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = const QList<SDDM::Prompt>; typename std::add_const<_Tp>::type = const QList<SDDM::Prompt>]’ is deprecated: Use std::as_const() instead. [-Wdeprecated-declarations]
191 | for(const Prompt &p : qAsConst(m.prompts)) {
| ~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/qforeach.h:11,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qglobal.h:57,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qnamespace.h:12,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs.h:12,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qobject.h:10,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/QObject:1,
from /build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e/src/helper/backend/PamHandle.h:24,
from /build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e/src/helper/backend/PamHandle.cpp:20:
/usr/include/x86_64-linux-gnu/qt6/QtCore/qttypetraits.h:33:45: note: declared here
33 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
| ^~~~~~~~
In file included from /build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e/src/helper/backend/PamBackend.h:25,
from /build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e/src/helper/backend/PamBackend.cpp:21:
/build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e/src/auth/AuthMessages.h: In function ‘QDataStream& SDDM::operator<<(QDataStream&, const Request&)’:
/build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e/src/auth/AuthMessages.h:191:39: warning: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = const QList<SDDM::Prompt>; typename std::add_const<_Tp>::type = const QList<SDDM::Prompt>]’ is deprecated: Use std::as_const() instead. [-Wdeprecated-declarations]
191 | for(const Prompt &p : qAsConst(m.prompts)) {
| ~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/qforeach.h:11,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qglobal.h:57,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qscopedpointer.h:7,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qdatastream.h:7,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/QDataStream:1,
from /build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e/src/auth/AuthMessages.h:24:
/usr/include/x86_64-linux-gnu/qt6/QtCore/qttypetraits.h:33:45: note: declared here
33 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
| ^~~~~~~~
[ 57%] Linking CXX executable sddm-helper
cd /build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e/obj-x86_64-linux-gnu/src/helper && /usr/bin/cmake -E cmake_link_script CMakeFiles/sddm-helper.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/sddm-helper.dir/__/common/Configuration.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/sddm-helper.dir/sddm-helper_autogen/mocs_compilation.cpp.o:(.rodata+0x1630): first defined here
/usr/bin/ld: CMakeFiles/sddm-helper.dir/__/common/ConfigReader.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/sddm-helper.dir/sddm-helper_autogen/mocs_compilation.cpp.o:(.rodata+0x1630): first defined here
/usr/bin/ld: CMakeFiles/sddm-helper.dir/__/common/SafeDataStream.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/sddm-helper.dir/sddm-helper_autogen/mocs_compilation.cpp.o:(.rodata+0x1630): first defined here
/usr/bin/ld: CMakeFiles/sddm-helper.dir/__/common/XAuth.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/sddm-helper.dir/sddm-helper_autogen/mocs_compilation.cpp.o:(.rodata+0x1630): first defined here
/usr/bin/ld: CMakeFiles/sddm-helper.dir/__/common/SignalHandler.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/sddm-helper.dir/sddm-helper_autogen/mocs_compilation.cpp.o:(.rodata+0x1630): first defined here
/usr/bin/ld: CMakeFiles/sddm-helper.dir/__/auth/Auth.cpp.o:(.rodata+0x2a8): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/sddm-helper.dir/sddm-helper_autogen/mocs_compilation.cpp.o:(.rodata+0x1630): first defined here
/usr/bin/ld: CMakeFiles/sddm-helper.dir/__/auth/AuthRequest.cpp.o:(.rodata+0xa4): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/sddm-helper.dir/sddm-helper_autogen/mocs_compilation.cpp.o:(.rodata+0x1630): first defined here
/usr/bin/ld: CMakeFiles/sddm-helper.dir/__/auth/AuthPrompt.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/sddm-helper.dir/sddm-helper_autogen/mocs_compilation.cpp.o:(.rodata+0x1630): first defined here
/usr/bin/ld: CMakeFiles/sddm-helper.dir/Backend.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/sddm-helper.dir/sddm-helper_autogen/mocs_compilation.cpp.o:(.rodata+0x1630): first defined here
/usr/bin/ld: CMakeFiles/sddm-helper.dir/HelperApp.cpp.o:(.rodata+0x10): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/sddm-helper.dir/sddm-helper_autogen/mocs_compilation.cpp.o:(.rodata+0x1630): first defined here
/usr/bin/ld: CMakeFiles/sddm-helper.dir/UserSession.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/sddm-helper.dir/sddm-helper_autogen/mocs_compilation.cpp.o:(.rodata+0x1630): first defined here
/usr/bin/ld: CMakeFiles/sddm-helper.dir/__/common/VirtualTerminal.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/sddm-helper.dir/sddm-helper_autogen/mocs_compilation.cpp.o:(.rodata+0x1630): first defined here
/usr/bin/ld: CMakeFiles/sddm-helper.dir/backend/PamHandle.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/sddm-helper.dir/sddm-helper_autogen/mocs_compilation.cpp.o:(.rodata+0x1630): first defined here
/usr/bin/ld: CMakeFiles/sddm-helper.dir/backend/PamBackend.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/sddm-helper.dir/sddm-helper_autogen/mocs_compilation.cpp.o:(.rodata+0x1630): first defined here
collect2: error: ld returned 1 exit status
/usr/bin/c++ -g -O2 -fdebug-prefix-map=/build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -Wl,-z,relro -Wl,-z,now -Wl,--dependency-file=CMakeFiles/sddm-helper.dir/link.d "CMakeFiles/sddm-helper.dir/sddm-helper_autogen/mocs_compilation.cpp.o" "CMakeFiles/sddm-helper.dir/__/common/Configuration.cpp.o" "CMakeFiles/sddm-helper.dir/__/common/ConfigReader.cpp.o" "CMakeFiles/sddm-helper.dir/__/common/SafeDataStream.cpp.o" "CMakeFiles/sddm-helper.dir/__/common/XAuth.cpp.o" "CMakeFiles/sddm-helper.dir/__/common/SignalHandler.cpp.o" "CMakeFiles/sddm-helper.dir/__/auth/Auth.cpp.o" "CMakeFiles/sddm-helper.dir/__/auth/AuthRequest.cpp.o" "CMakeFiles/sddm-helper.dir/__/auth/AuthPrompt.cpp.o" "CMakeFiles/sddm-helper.dir/Backend.cpp.o" "CMakeFiles/sddm-helper.dir/HelperApp.cpp.o" "CMakeFiles/sddm-helper.dir/UserSession.cpp.o" "CMakeFiles/sddm-helper.dir/__/com
mon/VirtualTerminal.cpp.o" "CMakeFiles/sddm-helper.dir/backend/PamHandle.cpp.o" "CMakeFiles/sddm-helper.dir/backend/PamBackend.cpp.o" -o sddm-helper /usr/lib/x86_64-linux-gnu/libQt6DBus.so.6.7.2 /usr/lib/x86_64-linux-gnu/libQt6Qml.so.6.7.2 /usr/lib/x86_64-linux-gnu/libXau.so /usr/lib/x86_64-linux-gnu/libpam.so /usr/lib/x86_64-linux-gnu/libdl.a -lsystemd /usr/lib/x86_64-linux-gnu/libQt6QmlBuiltins.a /usr/lib/x86_64-linux-gnu/libQt6Network.so.6.7.2 /usr/lib/x86_64-linux-gnu/libQt6Core.so.6.7.2
make[3]: *** [src/helper/CMakeFiles/sddm-helper.dir/build.make:342: src/helper/sddm-helper] Error 1
make[3]: Leaving directory '/build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:760: src/helper/CMakeFiles/sddm-helper.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/sddm-0.21.0+git20241213.4a9aa2e/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:22: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: