Subject: qt6-grpc: ftbfs with GCC-15

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

Package: src:qt6-grpc
Version: 6.7.2-7
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/qt6-grpc_6.7.2-7_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

[...]
[32/258] cd /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/magic8ball && /usr/bin/cmake -E copy /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/magic8ball/WaitingAnimation.qml /build/reproducible-path/qt6-grpc-6.7.2/obj-x86_64-linux-gnu/examples/grpc/magic8ball/qtgrpc/examples/magic8ball/WaitingAnimation.qml
[33/258] cd /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/magic8ball && /usr/bin/cmake -E copy /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/magic8ball/AnimatedAnswer.qml /build/reproducible-path/qt6-grpc-6.7.2/obj-x86_64-linux-gnu/examples/grpc/magic8ball/qtgrpc/examples/magic8ball/AnimatedAnswer.qml
[34/258] cd /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/magic8ball && /usr/bin/cmake -E copy /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/magic8ball/MagicText.qml /build/reproducible-path/qt6-grpc-6.7.2/obj-x86_64-linux-gnu/examples/grpc/magic8ball/qtgrpc/examples/magic8ball/MagicText.qml
[35/258] cd /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/magic8ball && /usr/bin/cmake -E copy /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/magic8ball/ProgressDot.qml /build/reproducible-path/qt6-grpc-6.7.2/obj-x86_64-linux-gnu/examples/grpc/magic8ball/qtgrpc/examples/magic8ball/ProgressDot.qml
[36/258] cd /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/magic8ball && /usr/bin/cmake -E copy /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/magic8ball/Main.qml /build/reproducible-path/qt6-grpc-6.7.2/obj-x86_64-linux-gnu/examples/grpc/magic8ball/qtgrpc/examples/magic8ball/Main.qml
[37/258] cd /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/magic8ball && /usr/lib/qt6/libexec/qmlimportscanner @/build/reproducible-path/qt6-grpc-6.7.2/obj-x86_64-linux-gnu/examples/grpc/magic8ball/.qt/qml_imports/magic8ball_build.rsp
[42/258] cd /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/chat/client && /usr/bin/cmake -E copy /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/chat/client/Main.qml /build/reproducible-path/qt6-grpc-6.7.2/obj-x86_64-linux-gnu/examples/grpc/chat/client/qtgrpc/examples/chat/Main.qml
[43/258] cd /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/chat/client && /usr/bin/cmake -E copy /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/chat/client/ChatInputField.qml /build/reproducible-path/qt6-grpc-6.7.2/obj-x86_64-linux-gnu/examples/grpc/chat/client/qtgrpc/examples/chat/ChatInputField.qml
[44/258] cd /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/chat/client && /usr/bin/cmake -E copy /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/chat/client/ChatView.qml /build/reproducible-path/qt6-grpc-6.7.2/obj-x86_64-linux-gnu/examples/grpc/chat/client/qtgrpc/examples/chat/ChatView.qml
[46/258] cd /build/reproducible-path/qt6-grpc-6.7.2/examples/grpc/chat/client && /usr/lib/qt6/libexec/qmlimportscanner @/build/reproducible-path/qt6-grpc-6.7.2/obj-x86_64-linux-gnu/examples/grpc/chat/client/.qt/qml_imports/grpcchatclient_build.rsp
[49/258] cd /build/reproducible-path/qt6-grpc-6.7.2/src/grpcquick && /usr/bin/cmake -DIN_FILE=/build/reproducible-path/qt6-grpc-6.7.2/obj-x86_64-linux-gnu/src/grpcquick/grpcquickplugin.version.in -DPRIVATE_CONTENT_FILE= -DOUT_FILE=/build/reproducible-path/qt6-grpc-6.7.2/obj-x86_64-linux-gnu/src/grpcquick/grpcquickplugin.version -P /usr/lib/x86_64-linux-gnu/cmake/Qt6/QtGenerateVersionScript.cmake
[67/258] : && /usr/bin/cmake -E rm -f examples/grpc/magic8ball/grpc_server_example/libMagicServerRunner.a && /usr/bin/ar qc examples/grpc/magic8ball/grpc_server_example/libMagicServerRunner.a  examples/grpc/magic8ball/grpc_server_example/CMakeFiles/MagicServerRunner.dir/MagicServerRunner_autogen/mocs_compilation.cpp.o examples/grpc/magic8ball/grpc_server_example/CMakeFiles/MagicServerRunner.dir/serverrunner.cpp.o && /usr/bin/ranlib examples/grpc/magic8ball/grpc_server_example/libMagicServerRunner.a && :
FAILED: examples/grpc/magic8ball/grpc_server_example/SimpleGrpcServer 
/usr/bin/ld: serverrunner.cpp.o (symbol from plugin): in function `ExampleServer::run()':
(.text+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; examples/grpc/magic8ball/grpc_server_example/CMakeFiles/SimpleGrpcServer.dir/main.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j8 -v returned exit code 1
make: *** [debian/rules:13: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2