/usr/bin/x86_64-pc-linux-gnu-g++ -DB2_SHARED -I/var/tmp/portage/games-engines/box2d-2.4.1/work/box2d-2.4.1/src/../include -pipe -march=native -fno-diagnostics-color -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11 -MD -MT unit-test/CMakeFiles/unit_test.dir/hello_world.cpp.o -MF unit-test/CMakeFiles/unit_test.dir/hello_world.cpp.o.d -o unit-test/CMakeFiles/unit_test.dir/hello_world.cpp.o -c /var/tmp/portage/games-engines/box2d-2.4.1/work/box2d-2.4.1/unit-test/hello_world.cpp In file included from /var/tmp/portage/games-engines/box2d-2.4.1/work/box2d-2.4.1/unit-test/hello_world.cpp:25: /var/tmp/portage/games-engines/box2d-2.4.1/work/box2d-2.4.1/unit-test/doctest.h:4021:47: error: size of array ‘altStackMem’ is not an integral constant-expression 4021 | static char altStackMem[4 * SIGSTKSZ]; | ^ ninja: build stopped: subcommand failed. * ERROR: games-engines/box2d-2.4.1::gentoo failed (compile phase): ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_no_multilib_systemd-j3-20210730-192258 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.2.0 * clang version 12.0.1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/12/bin /usr/lib/llvm/12 12.0.1 Python 3.9.6 Available Ruby profiles: (none found) Available Rust versions: [1] rust-bin-1.53.0 * The following VMs are available for generation-2: *) AdoptOpenJDK 8.292_p10 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.10.4 (none found) HEAD of ::gentoo commit 4866136d3d5ea4084e10b583d47348afefd45e76 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Tue Aug 3 20:06:36 2021 +0000 2021-08-03 20:06:35 UTC emerge -qpvO games-engines/box2d [ebuild N ] games-engines/box2d-2.4.1 USE="-doc"
Created attachment 729950 [details] emerge-info.txt
Created attachment 729952 [details] emerge-history.txt
Created attachment 729954 [details] environment
Created attachment 729956 [details] etc.portage.tar.bz2
Created attachment 729958 [details] games-engines:box2d-2.4.1:20210803-203419.log
Created attachment 729960 [details] logs.tar.bz2
Created attachment 729962 [details] temp.tar.bz2
This was fixed, or worked around, by adding "-DBOX2D_BUILD_UNIT_TESTS=OFF" to the src_configure() section of the box2d-2.4.1.ebuild file. the problem is related to changes in glibc-2.34 and seems only to affect the unit test code.
(In reply to FR from comment #8) > This was fixed, or worked around, by adding "-DBOX2D_BUILD_UNIT_TESTS=OFF" > to the src_configure() section of the box2d-2.4.1.ebuild file. > > the problem is related to changes in glibc-2.34 and seems only to affect the > unit test code. Thanks, let's include that workaround to speed up the build anyway.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adea094719995c15eb6642c5cc7691899972ad80 commit adea094719995c15eb6642c5cc7691899972ad80 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-09-05 03:02:11 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-09-05 05:24:44 +0000 games-engines/box2d: conditionally build tests This is also a workaround for the glibc 2.34 build failure. Bug: https://bugs.gentoo.org/806342 Signed-off-by: Sam James <sam@gentoo.org> games-engines/box2d/box2d-2.4.1.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e27625bafd1ff9d1e04b6e8b308638723531ee4c commit e27625bafd1ff9d1e04b6e8b308638723531ee4c Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2021-10-08 12:26:59 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2021-10-11 00:39:12 +0000 games-engines/box2d: unbundle doctest to fix tests with glibc-2.34 Skipping leaving a bugref in the ebuild not to imply this should be removed after it's fixed with glibc-2.34 (upstream has bumped doctest in upcoming version, but may as well use system's anyway). While not the cleanest, use a symlink to avoid patching files. Closes: https://bugs.gentoo.org/806342 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> games-engines/box2d/box2d-2.4.1.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+)