Subject: fcitx5-skk: ftbfs with GCC-15

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

Package: src:fcitx5-skk
Version: 5.1.6-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/fcitx5-skk_5.1.6-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

[...]
AutoGen: Parsing "SRC:/gui/dictwidget.h"
AutoGen: Parsing "SRC:/gui/adddictdialog.cpp"
AutoGen: Parsing "SRC:/gui/dictmodel.cpp"
AutoGen: Parsing "SRC:/gui/dictwidget.cpp"
AutoGen: Parsing "SRC:/gui/main.cpp"
AutoUic: Generating "SRC:/obj-x86_64-linux-gnu/gui/fcitx5-skk-config_autogen/include/ui_adddictdialog.h", because it doesn't exist, from "SRC:/gui/adddictdialog.ui"
/usr/lib/qt6/libexec/uic -tr=fcitx::tr2fcitx --include=fcitxqti18nhelper.h -o /build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu/gui/fcitx5-skk-config_autogen/include/ui_adddictdialog.h /build/reproducible-path/fcitx5-skk-5.1.6/gui/adddictdialog.ui
AutoUic: Generating "SRC:/obj-x86_64-linux-gnu/gui/fcitx5-skk-config_autogen/include/ui_dictwidget.h", because it doesn't exist, from "SRC:/gui/dictwidget.ui"
/usr/lib/qt6/libexec/uic -tr=fcitx::tr2fcitx --include=fcitxqti18nhelper.h -o /build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu/gui/fcitx5-skk-config_autogen/include/ui_dictwidget.h /build/reproducible-path/fcitx5-skk-5.1.6/gui/dictwidget.ui
AutoMoc: Generating "SRC:/obj-x86_64-linux-gnu/gui/fcitx5-skk-config_autogen/EWIEGA46WW/moc_dictmodel.cpp", because it doesn't exist, from "SRC:/gui/dictmodel.h"
AutoMoc: Generating "SRC:/obj-x86_64-linux-gnu/gui/fcitx5-skk-config_autogen/EWIEGA46WW/moc_adddictdialog.cpp", because it doesn't exist, from "SRC:/gui/adddictdialog.h"
[ 66%] Built target fcitx5-skk-translation
AutoMoc: Generating "SRC:/obj-x86_64-linux-gnu/gui/fcitx5-skk-config_autogen/EWIEGA46WW/moc_dictwidget.cpp", because it doesn't exist, from "SRC:/gui/dictwidget.h"
AutoMoc: Generating "SRC:/obj-x86_64-linux-gnu/gui/fcitx5-skk-config_autogen/EWIEGA46WW/moc_main.cpp", because it doesn't exist, from "SRC:/gui/main.h"
AutoMoc: Reading dependencies from "SRC:/obj-x86_64-linux-gnu/gui/fcitx5-skk-config_autogen/EWIEGA46WW/moc_adddictdialog.cpp.d"
AutoMoc: Reading dependencies from "SRC:/obj-x86_64-linux-gnu/gui/fcitx5-skk-config_autogen/EWIEGA46WW/moc_dictwidget.cpp.d"
AutoMoc: Reading dependencies from "SRC:/obj-x86_64-linux-gnu/gui/fcitx5-skk-config_autogen/EWIEGA46WW/moc_main.cpp.d"
AutoMoc: Reading dependencies from "SRC:/obj-x86_64-linux-gnu/gui/fcitx5-skk-config_autogen/EWIEGA46WW/moc_dictmodel.cpp.d"
AutoMoc: Generating MOC compilation "SRC:/obj-x86_64-linux-gnu/gui/fcitx5-skk-config_autogen/mocs_compilation.cpp"
AutoMoc: Merging MOC dependencies into "SRC:/obj-x86_64-linux-gnu/gui/fcitx5-skk-config_autogen/deps"
AutoGen: Writing the parse cache file "SRC:/obj-x86_64-linux-gnu/gui/CMakeFiles/fcitx5-skk-config_autogen.dir/ParseCache.txt"
AutoGen: Writing the settings file "SRC:/obj-x86_64-linux-gnu/gui/CMakeFiles/fcitx5-skk-config_autogen.dir/AutogenUsed.txt"
cd /build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu/gui && /usr/bin/cmake -E touch /build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu/gui/fcitx5-skk-config_autogen/timestamp
make[3]: Leaving directory '/build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu'
[ 66%] Built target fcitx5-skk-config_autogen
make  -f gui/CMakeFiles/fcitx5-skk-config.dir/build.make gui/CMakeFiles/fcitx5-skk-config.dir/depend
make[3]: Entering directory '/build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu'
cd /build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/fcitx5-skk-5.1.6 /build/reproducible-path/fcitx5-skk-5.1.6/gui /build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu /build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu/gui /build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu/gui/CMakeFiles/fcitx5-skk-config.dir/DependInfo.cmake "--color="
Dependencies file "gui/fcitx5-skk-config_autogen/deps" is newer than depends file "/build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu/gui/CMakeFiles/fcitx5-skk-config.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target fcitx5-skk-config
make[3]: Leaving directory '/build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu'
make  -f gui/CMakeFiles/fcitx5-skk-config.dir/build.make gui/CMakeFiles/fcitx5-skk-config.dir/build
make[3]: Entering directory '/build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu'
[ 70%] Building CXX object gui/CMakeFiles/fcitx5-skk-config.dir/dictwidget.cpp.o
[ 75%] Building CXX object gui/CMakeFiles/fcitx5-skk-config.dir/fcitx5-skk-config_autogen/mocs_compilation.cpp.o
[ 79%] Building CXX object gui/CMakeFiles/fcitx5-skk-config.dir/dictmodel.cpp.o
[ 83%] Building CXX object gui/CMakeFiles/fcitx5-skk-config.dir/adddictdialog.cpp.o
[ 87%] Building CXX object gui/CMakeFiles/fcitx5-skk-config.dir/main.cpp.o
[ 91%] Linking CXX shared module libfcitx5-skk-config.so
cd /build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu/gui && /usr/bin/cmake -E cmake_link_script CMakeFiles/fcitx5-skk-config.dir/link.txt --verbose=1
/usr/bin/ld: CMakeFiles/fcitx5-skk-config.dir/main.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/fcitx5-skk-config.dir/fcitx5-skk-config_autogen/mocs_compilation.cpp.o:(.rodata+0x384): first defined here
/usr/bin/ld: CMakeFiles/fcitx5-skk-config.dir/dictwidget.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/fcitx5-skk-config.dir/fcitx5-skk-config_autogen/mocs_compilation.cpp.o:(.rodata+0x384): first defined here
/usr/bin/ld: CMakeFiles/fcitx5-skk-config.dir/adddictdialog.cpp.o:(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/fcitx5-skk-config.dir/fcitx5-skk-config_autogen/mocs_compilation.cpp.o:(.rodata+0x384): first defined here
/usr/bin/ld: CMakeFiles/fcitx5-skk-config.dir/dictmodel.cpp.o:(.rodata+0x25): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; CMakeFiles/fcitx5-skk-config.dir/fcitx5-skk-config_autogen/mocs_compilation.cpp.o:(.rodata+0x384): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [gui/CMakeFiles/fcitx5-skk-config.dir/build.make:185: gui/libfcitx5-skk-config.so] Error 1
make[3]: Leaving directory '/build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:453: gui/CMakeFiles/fcitx5-skk-config.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 95%] Linking CXX shared module skk.so
cd /build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/skk.dir/link.txt --verbose=1
make[3]: Leaving directory '/build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu'
[ 95%] Built target skk
make[2]: Leaving directory '/build/reproducible-path/fcitx5-skk-5.1.6/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/fcitx5-skk-5.1.6/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:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2