Bug#1013066: widelands: ftbfs with GCC-12

Matthias Klose doko at debian.org
Thu Jun 16 13:15:03 BST 2022


Package: src:widelands
Version: 1:21-1
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-12

[This bug is targeted to the upcoming bookworm 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-12/g++-12, but succeeds to build with gcc-11/g++-11. The
severity of this report will be raised before the bookworm release.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/gcc12/widelands_21-1_unstable_gcc12.log
The last lines of the build log are at the end of this report.

To build with GCC 11, either set CC=gcc-11 CXX=g++-11 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

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-11/porting_to.html

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/editor && /usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_UNIT_TEST_FRAMEWORK_DYN_LINK -DHAVE_SYSTEM_MINIZIP -DUSE_XDG -DWL_USE_GLVND -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -isystem /usr/include/SDL2 -isystem /usr/include/GL -isystem /usr/include/minizip -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG  -std=c++11 -fext-numeric-literals -g -O1 -DNDEBUG -DNOPARACHUTE -Wredundant-decls -Wall -Wpedantic -Wdeprecated-declarations -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wformat-y2k -Winit-self -Winvalid-pch -Wlogical-op -Wmissing-include-dirs -Wno-undef -Wold-style-cast -Woverlength-strings -Wpacked -Wpointer-arith -Wsign-promo -Wsync-nand -Wtrampolines -Wundef -Wunused -Wunused-macros -Werror=format-security -Werror=return-type -Werror=shadow -Werror=uninitialized -MD -MT src/editor/CMakeFiles/editor.dir/tools/draw_tool.cc.o -MF CMakeFiles/editor.dir/tools/draw_tool.cc.o.d -o CMakeFiles/editor.dir/tools/draw_tool.cc.o -c /<<PKGBUILDDIR>>/src/editor/tools/draw_tool.cc
[ 94%] Building CXX object src/editor/CMakeFiles/editor.dir/tools/increase_height_tool.cc.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/editor && /usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_UNIT_TEST_FRAMEWORK_DYN_LINK -DHAVE_SYSTEM_MINIZIP -DUSE_XDG -DWL_USE_GLVND -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -isystem /usr/include/SDL2 -isystem /usr/include/GL -isystem /usr/include/minizip -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG  -std=c++11 -fext-numeric-literals -g -O1 -DNDEBUG -DNOPARACHUTE -Wredundant-decls -Wall -Wpedantic -Wdeprecated-declarations -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wformat-y2k -Winit-self -Winvalid-pch -Wlogical-op -Wmissing-include-dirs -Wno-undef -Wold-style-cast -Woverlength-strings -Wpacked -Wpointer-arith -Wsign-promo -Wsync-nand -Wtrampolines -Wundef -Wunused -Wunused-macros -Werror=format-security -Werror=return-type -Werror=shadow -Werror=uninitialized -MD -MT src/editor/CMakeFiles/editor.dir/tools/increase_height_tool.cc.o -MF CMakeFiles/editor.dir/tools/increase_height_tool.cc.o.d -o CMakeFiles/editor.dir/tools/increase_height_tool.cc.o -c /<<PKGBUILDDIR>>/src/editor/tools/increase_height_tool.cc
[ 94%] Building CXX object src/editor/CMakeFiles/editor.dir/tools/increase_resources_tool.cc.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/editor && /usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_UNIT_TEST_FRAMEWORK_DYN_LINK -DHAVE_SYSTEM_MINIZIP -DUSE_XDG -DWL_USE_GLVND -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -isystem /usr/include/SDL2 -isystem /usr/include/GL -isystem /usr/include/minizip -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG  -std=c++11 -fext-numeric-literals -g -O1 -DNDEBUG -DNOPARACHUTE -Wredundant-decls -Wall -Wpedantic -Wdeprecated-declarations -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wformat-y2k -Winit-self -Winvalid-pch -Wlogical-op -Wmissing-include-dirs -Wno-undef -Wold-style-cast -Woverlength-strings -Wpacked -Wpointer-arith -Wsign-promo -Wsync-nand -Wtrampolines -Wundef -Wunused -Wunused-macros -Werror=format-security -Werror=return-type -Werror=shadow -Werror=uninitialized -MD -MT src/editor/CMakeFiles/editor.dir/tools/increase_resources_tool.cc.o -MF CMakeFiles/editor.dir/tools/increase_resources_tool.cc.o.d -o CMakeFiles/editor.dir/tools/increase_resources_tool.cc.o -c /<<PKGBUILDDIR>>/src/editor/tools/increase_resources_tool.cc
In file included from /<<PKGBUILDDIR>>/src/editor/tools/history.cc:22:
/<<PKGBUILDDIR>>/src/editor/editorinteractive.h: In constructor ‘EditorInteractive::Tools::Tools(const Widelands::Map&)’:
/<<PKGBUILDDIR>>/src/editor/editorinteractive.h:60:37: error: member ‘EditorInteractive::Tools::unset_port_space’ is used uninitialized [-Werror=uninitialized]
   60 |                      set_port_space(unset_port_space),
      |                                     ^~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/editor/tools/decrease_height_tool.cc:22:
/<<PKGBUILDDIR>>/src/editor/editorinteractive.h: In constructor ‘EditorInteractive::Tools::Tools(const Widelands::Map&)’:
/<<PKGBUILDDIR>>/src/editor/editorinteractive.h:60:37: error: member ‘EditorInteractive::Tools::unset_port_space’ is used uninitialized [-Werror=uninitialized]
   60 |                      set_port_space(unset_port_space),
      |                                     ^~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/editor/tools/decrease_resources_tool.cc:22:
/<<PKGBUILDDIR>>/src/editor/editorinteractive.h: In constructor ‘EditorInteractive::Tools::Tools(const Widelands::Map&)’:
/<<PKGBUILDDIR>>/src/editor/editorinteractive.h:60:37: error: member ‘EditorInteractive::Tools::unset_port_space’ is used uninitialized [-Werror=uninitialized]
   60 |                      set_port_space(unset_port_space),
      |                                     ^~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/editor/editorinteractive.cc:20:
/<<PKGBUILDDIR>>/src/editor/editorinteractive.h: In constructor ‘EditorInteractive::Tools::Tools(const Widelands::Map&)’:
/<<PKGBUILDDIR>>/src/editor/editorinteractive.h:60:37: error: member ‘EditorInteractive::Tools::unset_port_space’ is used uninitialized [-Werror=uninitialized]
   60 |                      set_port_space(unset_port_space),
      |                                     ^~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/editor/tools/delete_immovable_tool.cc:23:
/<<PKGBUILDDIR>>/src/editor/editorinteractive.h: In constructor ‘EditorInteractive::Tools::Tools(const Widelands::Map&)’:
/<<PKGBUILDDIR>>/src/editor/editorinteractive.h:60:37: error: member ‘EditorInteractive::Tools::unset_port_space’ is used uninitialized [-Werror=uninitialized]
   60 |                      set_port_space(unset_port_space),
      |                                     ^~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/editor/tools/delete_critter_tool.cc:22:
/<<PKGBUILDDIR>>/src/editor/editorinteractive.h: In constructor ‘EditorInteractive::Tools::Tools(const Widelands::Map&)’:
/<<PKGBUILDDIR>>/src/editor/editorinteractive.h:60:37: error: member ‘EditorInteractive::Tools::unset_port_space’ is used uninitialized [-Werror=uninitialized]
   60 |                      set_port_space(unset_port_space),
      |                                     ^~~~~~~~~~~~~~~~
cc1plus: some warnings being treated as errors
cc1plus: some warnings being treated as errors
cc1plus: some warnings being treated as errors
cc1plus: some warnings being treated as errors
make[3]: *** [src/editor/CMakeFiles/editor.dir/build.make:107: src/editor/CMakeFiles/editor.dir/tools/decrease_height_tool.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [src/editor/CMakeFiles/editor.dir/build.make:121: src/editor/CMakeFiles/editor.dir/tools/decrease_resources_tool.cc.o] Error 1
make[3]: *** [src/editor/CMakeFiles/editor.dir/build.make:135: src/editor/CMakeFiles/editor.dir/tools/delete_critter_tool.cc.o] Error 1
make[3]: *** [src/editor/CMakeFiles/editor.dir/build.make:149: src/editor/CMakeFiles/editor.dir/tools/delete_immovable_tool.cc.o] Error 1
cc1plus: some warnings being treated as errors
make[3]: *** [src/editor/CMakeFiles/editor.dir/build.make:177: src/editor/CMakeFiles/editor.dir/tools/history.cc.o] Error 1
In file included from /<<PKGBUILDDIR>>/src/editor/tools/increase_height_tool.cc:22:
/<<PKGBUILDDIR>>/src/editor/editorinteractive.h: In constructor ‘EditorInteractive::Tools::Tools(const Widelands::Map&)’:
/<<PKGBUILDDIR>>/src/editor/editorinteractive.h:60:37: error: member ‘EditorInteractive::Tools::unset_port_space’ is used uninitialized [-Werror=uninitialized]
   60 |                      set_port_space(unset_port_space),
      |                                     ^~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/editor/tools/increase_resources_tool.cc:22:
/<<PKGBUILDDIR>>/src/editor/editorinteractive.h: In constructor ‘EditorInteractive::Tools::Tools(const Widelands::Map&)’:
/<<PKGBUILDDIR>>/src/editor/editorinteractive.h:60:37: error: member ‘EditorInteractive::Tools::unset_port_space’ is used uninitialized [-Werror=uninitialized]
   60 |                      set_port_space(unset_port_space),
      |                                     ^~~~~~~~~~~~~~~~
cc1plus: some warnings being treated as errors
make[3]: *** [src/editor/CMakeFiles/editor.dir/build.make:191: src/editor/CMakeFiles/editor.dir/tools/increase_height_tool.cc.o] Error 1
cc1plus: some warnings being treated as errors
make[3]: *** [src/editor/CMakeFiles/editor.dir/build.make:205: src/editor/CMakeFiles/editor.dir/tools/increase_resources_tool.cc.o] Error 1
cc1plus: some warnings being treated as errors
make[3]: *** [src/editor/CMakeFiles/editor.dir/build.make:79: src/editor/CMakeFiles/editor.dir/editorinteractive.cc.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:9741: src/editor/CMakeFiles/editor.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/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:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-games-devel mailing list