Bug#1037895: wesnoth-1.16: ftbfs with GCC-13

Matthias Klose doko at debian.org
Wed Jun 14 10:32:45 BST 2023


Package: src:wesnoth-1.16
Version: 1:1.16.9-1
Severity: normal
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-13

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

The full build log can be found at:
http://qa-logs.debian.net/2023/05/22/logs/wesnoth-1.16_1.16.9-1_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 13, either set CC=gcc-13 CXX=g++-13 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-13/porting_to.html

[...]
[ 95%] Building CXX object src/CMakeFiles/wesnoth-client.dir/lua/lstrlib.cpp.o
cd /<<PKGBUILDDIR>>/build/src && /usr/bin/c++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"locale\" -DLUA_USE_POSIX -DPREFERENCES_DIR=\".config/wesnoth-1.16\" -DWESNOTH_PATH=\"/usr/share/games/wesnoth/1.16\" -D_FORTIFY_SOURCE=2 -D_X11 -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/build/src -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /usr/include/SDL2 -isystem /usr/include/opus -isystem /usr/include/libinstpatch-2 -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -std=c++11 -fopenmp   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -fPIE -fstack-protector-strong   -I/usr/include/SDL2 -D_REENTRANT -std=c++17 -include "/<<PKGBUILDDIR>>/src/wesnoth_lua_config.h" -Wno-old-style-cast -Wno-useless-cast -Wno-stringop-overflow -MD -MT src/CMakeFiles/wesnoth-client.dir/lua/lstrlib.cpp.o -MF CMakeFiles/wesnoth-client.dir/lua/lstrlib.cpp.o.d -o CMakeFiles/wesnoth-client.dir/lua/lstrlib.cpp.o -c /<<PKGBUILDDIR>>/src/lua/lstrlib.cpp
[ 95%] Building CXX object src/CMakeFiles/wesnoth-client.dir/lua/ltable.cpp.o
cd /<<PKGBUILDDIR>>/build/src && /usr/bin/c++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"locale\" -DLUA_USE_POSIX -DPREFERENCES_DIR=\".config/wesnoth-1.16\" -DWESNOTH_PATH=\"/usr/share/games/wesnoth/1.16\" -D_FORTIFY_SOURCE=2 -D_X11 -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/build/src -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /usr/include/SDL2 -isystem /usr/include/opus -isystem /usr/include/libinstpatch-2 -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -std=c++11 -fopenmp   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -fPIE -fstack-protector-strong   -I/usr/include/SDL2 -D_REENTRANT -std=c++17 -include "/<<PKGBUILDDIR>>/src/wesnoth_lua_config.h" -Wno-old-style-cast -Wno-useless-cast -Wno-stringop-overflow -MD -MT src/CMakeFiles/wesnoth-client.dir/lua/ltable.cpp.o -MF CMakeFiles/wesnoth-client.dir/lua/ltable.cpp.o.d -o CMakeFiles/wesnoth-client.dir/lua/ltable.cpp.o -c /<<PKGBUILDDIR>>/src/lua/ltable.cpp
[ 95%] Building CXX object src/CMakeFiles/wesnoth-client.dir/lua/ltablib.cpp.o
cd /<<PKGBUILDDIR>>/build/src && /usr/bin/c++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"locale\" -DLUA_USE_POSIX -DPREFERENCES_DIR=\".config/wesnoth-1.16\" -DWESNOTH_PATH=\"/usr/share/games/wesnoth/1.16\" -D_FORTIFY_SOURCE=2 -D_X11 -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/build/src -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /usr/include/SDL2 -isystem /usr/include/opus -isystem /usr/include/libinstpatch-2 -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -std=c++11 -fopenmp   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -fPIE -fstack-protector-strong   -I/usr/include/SDL2 -D_REENTRANT -std=c++17 -include "/<<PKGBUILDDIR>>/src/wesnoth_lua_config.h" -Wno-old-style-cast -Wno-useless-cast -Wno-stringop-overflow -MD -MT src/CMakeFiles/wesnoth-client.dir/lua/ltablib.cpp.o -MF CMakeFiles/wesnoth-client.dir/lua/ltablib.cpp.o.d -o CMakeFiles/wesnoth-client.dir/lua/ltablib.cpp.o -c /<<PKGBUILDDIR>>/src/lua/ltablib.cpp
[ 95%] Building CXX object src/CMakeFiles/wesnoth-client.dir/lua/ltm.cpp.o
cd /<<PKGBUILDDIR>>/build/src && /usr/bin/c++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"locale\" -DLUA_USE_POSIX -DPREFERENCES_DIR=\".config/wesnoth-1.16\" -DWESNOTH_PATH=\"/usr/share/games/wesnoth/1.16\" -D_FORTIFY_SOURCE=2 -D_X11 -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/build/src -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /usr/include/SDL2 -isystem /usr/include/opus -isystem /usr/include/libinstpatch-2 -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -std=c++11 -fopenmp   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -fPIE -fstack-protector-strong   -I/usr/include/SDL2 -D_REENTRANT -std=c++17 -include "/<<PKGBUILDDIR>>/src/wesnoth_lua_config.h" -Wno-old-style-cast -Wno-useless-cast -Wno-stringop-overflow -MD -MT src/CMakeFiles/wesnoth-client.dir/lua/ltm.cpp.o -MF CMakeFiles/wesnoth-client.dir/lua/ltm.cpp.o.d -o CMakeFiles/wesnoth-client.dir/lua/ltm.cpp.o -c /<<PKGBUILDDIR>>/src/lua/ltm.cpp
[ 95%] Building CXX object src/CMakeFiles/wesnoth-client.dir/lua/lundump.cpp.o
cd /<<PKGBUILDDIR>>/build/src && /usr/bin/c++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"locale\" -DLUA_USE_POSIX -DPREFERENCES_DIR=\".config/wesnoth-1.16\" -DWESNOTH_PATH=\"/usr/share/games/wesnoth/1.16\" -D_FORTIFY_SOURCE=2 -D_X11 -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/build/src -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /usr/include/SDL2 -isystem /usr/include/opus -isystem /usr/include/libinstpatch-2 -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -std=c++11 -fopenmp   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -fPIE -fstack-protector-strong   -I/usr/include/SDL2 -D_REENTRANT -std=c++17 -include "/<<PKGBUILDDIR>>/src/wesnoth_lua_config.h" -Wno-old-style-cast -Wno-useless-cast -Wno-stringop-overflow -MD -MT src/CMakeFiles/wesnoth-client.dir/lua/lundump.cpp.o -MF CMakeFiles/wesnoth-client.dir/lua/lundump.cpp.o.d -o CMakeFiles/wesnoth-client.dir/lua/lundump.cpp.o -c /<<PKGBUILDDIR>>/src/lua/lundump.cpp
[ 95%] Building CXX object src/CMakeFiles/wesnoth-client.dir/lua/lutf8lib.cpp.o
cd /<<PKGBUILDDIR>>/build/src && /usr/bin/c++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"locale\" -DLUA_USE_POSIX -DPREFERENCES_DIR=\".config/wesnoth-1.16\" -DWESNOTH_PATH=\"/usr/share/games/wesnoth/1.16\" -D_FORTIFY_SOURCE=2 -D_X11 -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/build/src -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /usr/include/SDL2 -isystem /usr/include/opus -isystem /usr/include/libinstpatch-2 -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -std=c++11 -fopenmp   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -fPIE -fstack-protector-strong   -I/usr/include/SDL2 -D_REENTRANT -std=c++17 -include "/<<PKGBUILDDIR>>/src/wesnoth_lua_config.h" -Wno-old-style-cast -Wno-useless-cast -Wno-stringop-overflow -MD -MT src/CMakeFiles/wesnoth-client.dir/lua/lutf8lib.cpp.o -MF CMakeFiles/wesnoth-client.dir/lua/lutf8lib.cpp.o.d -o CMakeFiles/wesnoth-client.dir/lua/lutf8lib.cpp.o -c /<<PKGBUILDDIR>>/src/lua/lutf8lib.cpp
[ 95%] Building CXX object src/CMakeFiles/wesnoth-client.dir/lua/lvm.cpp.o
cd /<<PKGBUILDDIR>>/build/src && /usr/bin/c++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"locale\" -DLUA_USE_POSIX -DPREFERENCES_DIR=\".config/wesnoth-1.16\" -DWESNOTH_PATH=\"/usr/share/games/wesnoth/1.16\" -D_FORTIFY_SOURCE=2 -D_X11 -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/build/src -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /usr/include/SDL2 -isystem /usr/include/opus -isystem /usr/include/libinstpatch-2 -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -std=c++11 -fopenmp   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -fPIE -fstack-protector-strong   -I/usr/include/SDL2 -D_REENTRANT -std=c++17 -include "/<<PKGBUILDDIR>>/src/wesnoth_lua_config.h" -Wno-old-style-cast -Wno-useless-cast -Wno-stringop-overflow -MD -MT src/CMakeFiles/wesnoth-client.dir/lua/lvm.cpp.o -MF CMakeFiles/wesnoth-client.dir/lua/lvm.cpp.o.d -o CMakeFiles/wesnoth-client.dir/lua/lvm.cpp.o -c /<<PKGBUILDDIR>>/src/lua/lvm.cpp
[ 95%] Building CXX object src/CMakeFiles/wesnoth-client.dir/lua/lzio.cpp.o
cd /<<PKGBUILDDIR>>/build/src && /usr/bin/c++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"locale\" -DLUA_USE_POSIX -DPREFERENCES_DIR=\".config/wesnoth-1.16\" -DWESNOTH_PATH=\"/usr/share/games/wesnoth/1.16\" -D_FORTIFY_SOURCE=2 -D_X11 -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/build/src -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /usr/include/SDL2 -isystem /usr/include/opus -isystem /usr/include/libinstpatch-2 -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -std=c++11 -fopenmp   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -fPIE -fstack-protector-strong   -I/usr/include/SDL2 -D_REENTRANT -std=c++17 -include "/<<PKGBUILDDIR>>/src/wesnoth_lua_config.h" -Wno-old-style-cast -Wno-useless-cast -Wno-stringop-overflow -MD -MT src/CMakeFiles/wesnoth-client.dir/lua/lzio.cpp.o -MF CMakeFiles/wesnoth-client.dir/lua/lzio.cpp.o.d -o CMakeFiles/wesnoth-client.dir/lua/lzio.cpp.o -c /<<PKGBUILDDIR>>/src/lua/lzio.cpp
[ 96%] Building CXX object src/CMakeFiles/wesnoth-client.dir/arrow.cpp.o
cd /<<PKGBUILDDIR>>/build/src && /usr/bin/c++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"locale\" -DLUA_USE_POSIX -DPREFERENCES_DIR=\".config/wesnoth-1.16\" -DWESNOTH_PATH=\"/usr/share/games/wesnoth/1.16\" -D_FORTIFY_SOURCE=2 -D_X11 -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/build/src -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /usr/include/SDL2 -isystem /usr/include/opus -isystem /usr/include/libinstpatch-2 -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -std=c++11 -fopenmp   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -fPIE -fstack-protector-strong   -I/usr/include/SDL2 -D_REENTRANT -std=c++17 -MD -MT src/CMakeFiles/wesnoth-client.dir/arrow.cpp.o -MF CMakeFiles/wesnoth-client.dir/arrow.cpp.o.d -o CMakeFiles/wesnoth-client.dir/arrow.cpp.o -c /<<PKGBUILDDIR>>/src/arrow.cpp
[ 96%] Building CXX object src/CMakeFiles/wesnoth-client.dir/cursor.cpp.o
cd /<<PKGBUILDDIR>>/build/src && /usr/bin/c++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"locale\" -DLUA_USE_POSIX -DPREFERENCES_DIR=\".config/wesnoth-1.16\" -DWESNOTH_PATH=\"/usr/share/games/wesnoth/1.16\" -D_FORTIFY_SOURCE=2 -D_X11 -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/build/src -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /usr/include/SDL2 -isystem /usr/include/opus -isystem /usr/include/libinstpatch-2 -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -std=c++11 -fopenmp   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -fPIE -fstack-protector-strong   -I/usr/include/SDL2 -D_REENTRANT -std=c++17 -MD -MT src/CMakeFiles/wesnoth-client.dir/cursor.cpp.o -MF CMakeFiles/wesnoth-client.dir/cursor.cpp.o.d -o CMakeFiles/wesnoth-client.dir/cursor.cpp.o -c /<<PKGBUILDDIR>>/src/cursor.cpp
[ 96%] Building CXX object src/CMakeFiles/wesnoth-client.dir/desktop/clipboard.cpp.o
cd /<<PKGBUILDDIR>>/build/src && /usr/bin/c++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"locale\" -DLUA_USE_POSIX -DPREFERENCES_DIR=\".config/wesnoth-1.16\" -DWESNOTH_PATH=\"/usr/share/games/wesnoth/1.16\" -D_FORTIFY_SOURCE=2 -D_X11 -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/build/src -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /usr/include/SDL2 -isystem /usr/include/opus -isystem /usr/include/libinstpatch-2 -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -std=c++11 -fopenmp   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -fPIE -fstack-protector-strong   -I/usr/include/SDL2 -D_REENTRANT -std=c++17 -MD -MT src/CMakeFiles/wesnoth-client.dir/desktop/clipboard.cpp.o -MF CMakeFiles/wesnoth-client.dir/desktop/clipboard.cpp.o.d -o CMakeFiles/wesnoth-client.dir/desktop/clipboard.cpp.o -c /<<PKGBUILDDIR>>/src/desktop/clipboard.cpp
[ 96%] Building CXX object src/CMakeFiles/wesnoth-client.dir/deprecation.cpp.o
cd /<<PKGBUILDDIR>>/build/src && /usr/bin/c++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"locale\" -DLUA_USE_POSIX -DPREFERENCES_DIR=\".config/wesnoth-1.16\" -DWESNOTH_PATH=\"/usr/share/games/wesnoth/1.16\" -D_FORTIFY_SOURCE=2 -D_X11 -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/build/src -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /usr/include/SDL2 -isystem /usr/include/opus -isystem /usr/include/libinstpatch-2 -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -std=c++11 -fopenmp   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -fPIE -fstack-protector-strong   -I/usr/include/SDL2 -D_REENTRANT -std=c++17 -MD -MT src/CMakeFiles/wesnoth-client.dir/deprecation.cpp.o -MF CMakeFiles/wesnoth-client.dir/deprecation.cpp.o.d -o CMakeFiles/wesnoth-client.dir/deprecation.cpp.o -c /<<PKGBUILDDIR>>/src/deprecation.cpp
[ 96%] Building CXX object src/CMakeFiles/wesnoth-client.dir/display.cpp.o
cd /<<PKGBUILDDIR>>/build/src && /usr/bin/c++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"locale\" -DLUA_USE_POSIX -DPREFERENCES_DIR=\".config/wesnoth-1.16\" -DWESNOTH_PATH=\"/usr/share/games/wesnoth/1.16\" -D_FORTIFY_SOURCE=2 -D_X11 -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/build/src -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /usr/include/SDL2 -isystem /usr/include/opus -isystem /usr/include/libinstpatch-2 -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -std=c++11 -fopenmp   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -fPIE -fstack-protector-strong   -I/usr/include/SDL2 -D_REENTRANT -std=c++17 -MD -MT src/CMakeFiles/wesnoth-client.dir/display.cpp.o -MF CMakeFiles/wesnoth-client.dir/display.cpp.o.d -o CMakeFiles/wesnoth-client.dir/display.cpp.o -c /<<PKGBUILDDIR>>/src/display.cpp
[ 96%] Building CXX object src/CMakeFiles/wesnoth-client.dir/display_context.cpp.o
cd /<<PKGBUILDDIR>>/build/src && /usr/bin/c++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"locale\" -DLUA_USE_POSIX -DPREFERENCES_DIR=\".config/wesnoth-1.16\" -DWESNOTH_PATH=\"/usr/share/games/wesnoth/1.16\" -D_FORTIFY_SOURCE=2 -D_X11 -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/build/src -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /usr/include/SDL2 -isystem /usr/include/opus -isystem /usr/include/libinstpatch-2 -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -std=c++11 -fopenmp   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -fPIE -fstack-protector-strong   -I/usr/include/SDL2 -D_REENTRANT -std=c++17 -MD -MT src/CMakeFiles/wesnoth-client.dir/display_context.cpp.o -MF CMakeFiles/wesnoth-client.dir/display_context.cpp.o.d -o CMakeFiles/wesnoth-client.dir/display_context.cpp.o -c /<<PKGBUILDDIR>>/src/display_context.cpp
In file included from /<<PKGBUILDDIR>>/src/deprecation.cpp:15:
/<<PKGBUILDDIR>>/src/deprecation.hpp:20:6: warning: elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword
   20 | enum class DEP_LEVEL : uint8_t { INDEFINITE = 1, PREEMPTIVE, FOR_REMOVAL, REMOVED };
      | ~~~~ ^~~~~
      |      -----
/<<PKGBUILDDIR>>/src/deprecation.hpp:20:22: error: found ‘:’ in nested-name-specifier, expected ‘::’
   20 | enum class DEP_LEVEL : uint8_t { INDEFINITE = 1, PREEMPTIVE, FOR_REMOVAL, REMOVED };
      |                      ^
      |                      ::
/<<PKGBUILDDIR>>/src/deprecation.hpp:20:12: error: ‘DEP_LEVEL’ has not been declared
   20 | enum class DEP_LEVEL : uint8_t { INDEFINITE = 1, PREEMPTIVE, FOR_REMOVAL, REMOVED };
      |            ^~~~~~~~~
/<<PKGBUILDDIR>>/src/deprecation.hpp:20:32: error: expected unqualified-id before ‘{’ token
   20 | enum class DEP_LEVEL : uint8_t { INDEFINITE = 1, PREEMPTIVE, FOR_REMOVAL, REMOVED };
      |                                ^
/<<PKGBUILDDIR>>/src/deprecation.hpp:43:17: error: ‘DEP_LEVEL’ has not been declared
   43 |                 DEP_LEVEL level,
      |                 ^~~~~~~~~
/<<PKGBUILDDIR>>/src/deprecation.cpp: In function ‘std::string deprecated_message(const std::string&, DEP_LEVEL, const version_info&, const std::string&)’:
/<<PKGBUILDDIR>>/src/deprecation.cpp:38:25: error: ‘INDEFINITE’ is not a member of ‘DEP_LEVEL’
   38 |         case DEP_LEVEL::INDEFINITE:
      |                         ^~~~~~~~~~
/<<PKGBUILDDIR>>/src/deprecation.cpp:43:25: error: ‘PREEMPTIVE’ is not a member of ‘DEP_LEVEL’
   43 |         case DEP_LEVEL::PREEMPTIVE:
      |                         ^~~~~~~~~~
/<<PKGBUILDDIR>>/src/deprecation.cpp:53:25: error: ‘FOR_REMOVAL’ is not a member of ‘DEP_LEVEL’
   53 |         case DEP_LEVEL::FOR_REMOVAL:
      |                         ^~~~~~~~~~~
/<<PKGBUILDDIR>>/src/deprecation.cpp:59:25: error: ‘REMOVED’ is not a member of ‘DEP_LEVEL’
   59 |         case DEP_LEVEL::REMOVED:
      |                         ^~~~~~~
[ 96%] Building CXX object src/CMakeFiles/wesnoth-client.dir/events.cpp.o
cd /<<PKGBUILDDIR>>/build/src && /usr/bin/c++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"locale\" -DLUA_USE_POSIX -DPREFERENCES_DIR=\".config/wesnoth-1.16\" -DWESNOTH_PATH=\"/usr/share/games/wesnoth/1.16\" -D_FORTIFY_SOURCE=2 -D_X11 -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/build/src -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /usr/include/SDL2 -isystem /usr/include/opus -isystem /usr/include/libinstpatch-2 -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -std=c++11 -fopenmp   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/wolfssl -DOPENSSL_ALL -fPIE -fstack-protector-strong   -I/usr/include/SDL2 -D_REENTRANT -std=c++17 -MD -MT src/CMakeFiles/wesnoth-client.dir/events.cpp.o -MF CMakeFiles/wesnoth-client.dir/events.cpp.o.d -o CMakeFiles/wesnoth-client.dir/events.cpp.o -c /<<PKGBUILDDIR>>/src/events.cpp
make[3]: *** [src/CMakeFiles/wesnoth-client.dir/build.make:6116: src/CMakeFiles/wesnoth-client.dir/deprecation.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[2]: *** [CMakeFiles/Makefile2:275: src/CMakeFiles/wesnoth-client.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[1]: *** [Makefile:159: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/build'
make: *** [debian/rules:90: debian/stamp-build] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-games-devel mailing list