Subject: accounts-qml-module: ftbfs with GCC-15

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

Package: src:accounts-qml-module
Version: 0.7+git20231028.05e79eb-6
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/accounts-qml-module_0.7+git20231028.05e79eb-6_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

[...]
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
rm -f libAccounts.so
/usr/bin/ld: account-service.o:(.rodata+0x40): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: account.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: application-model.o:(.rodata+0x14): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: application.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: credentials.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: debug.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: manager.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: plugin.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: provider-model.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: moc_account-service-model.o:(.rodata+0x45c): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: moc_account-service.o:(.rodata+0x8dc): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: moc_account.o:(.rodata+0x514): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: moc_application-model.o:(.rodata+0x1c8): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: moc_application.o:(.rodata+0x178): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: moc_credentials.o:(.rodata+0x4dc): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: moc_manager.o:(.rodata+0x11c): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: moc_plugin.o:(.rodata+0x60): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
/usr/bin/ld: moc_provider-model.o:(.rodata+0x1d0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; account-service-model.o:(.rodata+0x218): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:228: SSO/OnlineAccounts/libAccounts.so] Error 1
make[3]: Leaving directory '/build/reproducible-path/accounts-qml-module-0.7+git20231028.05e79eb/build-qt6/src'
make[2]: *** [Makefile:48: sub-src-make_first-ordered] Error 2
make[2]: Leaving directory '/build/reproducible-path/accounts-qml-module-0.7+git20231028.05e79eb/build-qt6'
dh_auto_build: error: cd build-qt6 && make -j8 returned exit code 2
make[1]: *** [debian/rules:28: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/accounts-qml-module-0.7+git20231028.05e79eb'
make: *** [debian/rules:12: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2