Created attachment 716643 [details] emerge --info Building Widelands 1.0 fails on my system with the following error: FAILED: src/ui_basic/CMakeFiles/ui_basic.dir/box.cc.o /usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ALL_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_UNIT_TEST_FRAMEWORK_DYN_LINK -DUSE_XDG -DWL_USE_GLVND -I/var/tmp/portage/games-strategy/widelands-1.0/work/widelands-1.0/src -Isrc -isystem /usr/include/SDL2 -march=znver1 -O3 -mfpmath=sse -pipe -fext-numeric-literals -std=c++11 -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/ui_basic/CMakeFiles/ui_basic.dir/box.cc.o -MF src/ui_basic/CMakeFiles/ui_basic.dir/box.cc.o.d -o src/ui_basic/CMakeFiles/ui_basic.dir/box.cc.o -c /var/tmp/portage/games-strategy/widelands-1.0/work/widelands-1.0/src/ui_basic/box.cc /var/tmp/portage/games-strategy/widelands-1.0/work/widelands-1.0/src/ui_basic/box.cc: In member function ‘virtual void UI::Box::layout()’: /var/tmp/portage/games-strategy/widelands-1.0/work/widelands-1.0/src/ui_basic/box.cc:182:14: error: ‘depth’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 182 | totaldepth += depth; | ~~~~~~~~~~~^~~~~~~~
Created attachment 716646 [details] build log
Seems caused by -O3, try -O2 for now.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06eb3d0bbfc3c4ea5a2c0235e1e3e36b1eb9872e commit 06eb3d0bbfc3c4ea5a2c0235e1e3e36b1eb9872e Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2021-06-17 21:27:29 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2021-06-17 21:36:01 +0000 games-strategy/widelands: drop use of cxxflags patch -Werror=uninitialized cause issues with -O3. Upstream is currently explicitly requesting -O2 but an old patch in Gentoo prevents that. While not ideal, rather than further patch to remove the warning check, simply follow upstream and go with what is being tested more. Closes: https://bugs.gentoo.org/796509 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> games-strategy/widelands/widelands-1.0.ebuild | 4 ---- games-strategy/widelands/widelands-9999.ebuild | 4 ---- 2 files changed, 8 deletions(-)