Subject: blinken: ftbfs with GCC-15

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

Package: src:blinken
Version: 4:24.12.1-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/blinken_24.12.1-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

[...]
AutoMoc: Generating "SRC:/obj-x86_64-linux-gnu/src/blinken_autogen/include/moc_highscoredialog.cpp", because it doesn't exist, from "SRC:/src/highscoredialog.h"
AutoMoc: Reading dependencies from "SRC:/obj-x86_64-linux-gnu/src/blinken_autogen/include/moc_blinkengame.cpp.d"
AutoMoc: Generating "SRC:/obj-x86_64-linux-gnu/src/blinken_autogen/include/moc_soundsplayer.cpp", because it doesn't exist, from "SRC:/src/soundsplayer.h"
AutoMoc: Reading dependencies from "SRC:/obj-x86_64-linux-gnu/src/blinken_autogen/include/moc_blinken.cpp.d"
AutoMoc: Reading dependencies from "SRC:/obj-x86_64-linux-gnu/src/blinken_autogen/EJRQKI7XPS/moc_settings.cpp.d"
AutoMoc: /build/reproducible-path/blinken-24.12.1/src/highscoredialog.h: note: No relevant classes found. No output generated.
AutoMoc: Reading dependencies from "SRC:/obj-x86_64-linux-gnu/src/blinken_autogen/include/moc_highscoredialog.cpp.d"
AutoMoc: Reading dependencies from "SRC:/obj-x86_64-linux-gnu/src/blinken_autogen/include/moc_soundsplayer.cpp.d"
AutoMoc: Generating MOC compilation "SRC:/obj-x86_64-linux-gnu/src/blinken_autogen/mocs_compilation.cpp"
AutoMoc: Merging MOC dependencies into "SRC:/obj-x86_64-linux-gnu/src/blinken_autogen/deps"
AutoGen: Writing the parse cache file "SRC:/obj-x86_64-linux-gnu/src/CMakeFiles/blinken_autogen.dir/ParseCache.txt"
AutoGen: Writing the settings file "SRC:/obj-x86_64-linux-gnu/src/CMakeFiles/blinken_autogen.dir/AutogenUsed.txt"
cd /build/reproducible-path/blinken-24.12.1/obj-x86_64-linux-gnu/src && /usr/bin/cmake -E touch /build/reproducible-path/blinken-24.12.1/obj-x86_64-linux-gnu/src/blinken_autogen/timestamp
make[3]: Leaving directory '/build/reproducible-path/blinken-24.12.1/obj-x86_64-linux-gnu'
[ 53%] Built target blinken_autogen
make  -f src/CMakeFiles/blinken.dir/build.make src/CMakeFiles/blinken.dir/depend
make[3]: Entering directory '/build/reproducible-path/blinken-24.12.1/obj-x86_64-linux-gnu'
cd /build/reproducible-path/blinken-24.12.1/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/blinken-24.12.1 /build/reproducible-path/blinken-24.12.1/src /build/reproducible-path/blinken-24.12.1/obj-x86_64-linux-gnu /build/reproducible-path/blinken-24.12.1/obj-x86_64-linux-gnu/src /build/reproducible-path/blinken-24.12.1/obj-x86_64-linux-gnu/src/CMakeFiles/blinken.dir/DependInfo.cmake "--color="
Dependencies file "src/blinken_autogen/deps" is newer than depends file "/build/reproducible-path/blinken-24.12.1/obj-x86_64-linux-gnu/src/CMakeFiles/blinken.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target blinken
make[3]: Leaving directory '/build/reproducible-path/blinken-24.12.1/obj-x86_64-linux-gnu'
make  -f src/CMakeFiles/blinken.dir/build.make src/CMakeFiles/blinken.dir/build
make[3]: Entering directory '/build/reproducible-path/blinken-24.12.1/obj-x86_64-linux-gnu'
[ 56%] Building CXX object src/CMakeFiles/blinken.dir/blinkengame.cpp.o
[ 60%] Building CXX object src/CMakeFiles/blinken.dir/blinken_autogen/mocs_compilation.cpp.o
[ 63%] Building CXX object src/CMakeFiles/blinken.dir/highScoreManager.cpp.o
[ 66%] Building CXX object src/CMakeFiles/blinken.dir/main.cpp.o
[ 70%] Building CXX object src/CMakeFiles/blinken.dir/blinken.cpp.o
[ 73%] Building CXX object src/CMakeFiles/blinken.dir/highscoredialog.cpp.o
[ 76%] Building CXX object src/CMakeFiles/blinken.dir/button.cpp.o
[ 80%] Building CXX object src/CMakeFiles/blinken.dir/counter.cpp.o
[ 83%] Building CXX object src/CMakeFiles/blinken.dir/number.cpp.o
[ 86%] Building CXX object src/CMakeFiles/blinken.dir/soundsplayer.cpp.o
[ 90%] Building CXX object src/CMakeFiles/blinken.dir/settings.cpp.o
[ 93%] Linking CXX executable ../bin/blinken
cd /build/reproducible-path/blinken-24.12.1/obj-x86_64-linux-gnu/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/blinken.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/blinken.dir/blinken.cpp.o:(.rodata+0x18c): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/blinken.dir/blinken_autogen/mocs_compilation.cpp.o:(.rodata+0x21c): first defined here
/usr/bin/ld: CMakeFiles/blinken.dir/blinkengame.cpp.o:(.rodata+0x59c): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/blinken.dir/blinken_autogen/mocs_compilation.cpp.o:(.rodata+0x21c): first defined here
/usr/bin/ld: CMakeFiles/blinken.dir/button.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/blinken.dir/blinken_autogen/mocs_compilation.cpp.o:(.rodata+0x21c): first defined here
/usr/bin/ld: CMakeFiles/blinken.dir/counter.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/blinken.dir/blinken_autogen/mocs_compilation.cpp.o:(.rodata+0x21c): first defined here
/usr/bin/ld: CMakeFiles/blinken.dir/highscoredialog.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/blinken.dir/blinken_autogen/mocs_compilation.cpp.o:(.rodata+0x21c): first defined here
/usr/bin/ld: CMakeFiles/blinken.dir/highScoreManager.cpp.o:(.rodata+0x1ec): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/blinken.dir/blinken_autogen/mocs_compilation.cpp.o:(.rodata+0x21c): first defined here
/usr/bin/ld: CMakeFiles/blinken.dir/main.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/blinken.dir/blinken_autogen/mocs_compilation.cpp.o:(.rodata+0x21c): first defined here
/usr/bin/ld: CMakeFiles/blinken.dir/number.cpp.o:(.rodata+0x28): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/blinken.dir/blinken_autogen/mocs_compilation.cpp.o:(.rodata+0x21c): first defined here
/usr/bin/ld: CMakeFiles/blinken.dir/soundsplayer.cpp.o:(.rodata+0x100): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/blinken.dir/blinken_autogen/mocs_compilation.cpp.o:(.rodata+0x21c): first defined here
/usr/bin/ld: CMakeFiles/blinken.dir/settings.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/blinken.dir/blinken_autogen/mocs_compilation.cpp.o:(.rodata+0x21c): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [src/CMakeFiles/blinken.dir/build.make:281: bin/blinken] Error 1
make[3]: Leaving directory '/build/reproducible-path/blinken-24.12.1/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1209: src/CMakeFiles/blinken.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/blinken-24.12.1/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/blinken-24.12.1/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:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2