Starting with glibc2.34+, SIGSTKSZ is now a syscall instead of a constant. This issue is already known to the doctest team (see this thread), and a fix is already in place as of this commit. Replacing /unit-test/doctest.h with the newest version (2.4.9) seems to fix the issue.
Environment:
Ubuntu 22.04
box2d-2.4.1
glibc 2.35
Build output:
(base) snietfeld@morpheus:~/flightcode_cpp/box2d-2.4.1$ ./build.sh
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/snietfeld/flightcode_cpp/box2d-2.4.1/build
[ 0%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_broad_phase.cpp.o
[ 1%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_chain_shape.cpp.o
[ 2%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_circle_shape.cpp.o
[ 2%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_collide_circle.cpp.o
[ 3%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_collide_edge.cpp.o
[ 4%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_collide_polygon.cpp.o
[ 4%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_collision.cpp.o
[ 5%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_distance.cpp.o
[ 6%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_dynamic_tree.cpp.o
[ 6%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_edge_shape.cpp.o
[ 7%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_polygon_shape.cpp.o
[ 8%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_time_of_impact.cpp.o
[ 9%] Building CXX object src/CMakeFiles/box2d.dir/common/b2_block_allocator.cpp.o
[ 9%] Building CXX object src/CMakeFiles/box2d.dir/common/b2_draw.cpp.o
[ 10%] Building CXX object src/CMakeFiles/box2d.dir/common/b2_math.cpp.o
[ 11%] Building CXX object src/CMakeFiles/box2d.dir/common/b2_settings.cpp.o
[ 11%] Building CXX object src/CMakeFiles/box2d.dir/common/b2_stack_allocator.cpp.o
[ 12%] Building CXX object src/CMakeFiles/box2d.dir/common/b2_timer.cpp.o
[ 13%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_body.cpp.o
[ 13%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_chain_circle_contact.cpp.o
[ 14%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_chain_polygon_contact.cpp.o
[ 15%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_circle_contact.cpp.o
[ 16%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_contact.cpp.o
[ 16%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_contact_manager.cpp.o
[ 17%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_contact_solver.cpp.o
[ 18%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_distance_joint.cpp.o
[ 18%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_edge_circle_contact.cpp.o
[ 19%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_edge_polygon_contact.cpp.o
[ 20%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_fixture.cpp.o
[ 20%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_friction_joint.cpp.o
[ 21%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_gear_joint.cpp.o
[ 22%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_island.cpp.o
[ 23%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_joint.cpp.o
[ 23%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_motor_joint.cpp.o
[ 24%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_mouse_joint.cpp.o
[ 25%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_polygon_circle_contact.cpp.o
[ 25%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_polygon_contact.cpp.o
[ 26%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_prismatic_joint.cpp.o
[ 27%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_pulley_joint.cpp.o
[ 27%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_revolute_joint.cpp.o
[ 28%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_weld_joint.cpp.o
[ 29%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_wheel_joint.cpp.o
[ 30%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_world.cpp.o
[ 30%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_world_callbacks.cpp.o
[ 31%] Building CXX object src/CMakeFiles/box2d.dir/rope/b2_rope.cpp.o
[ 32%] Linking CXX static library ../bin/libbox2d.a
[ 32%] Built target box2d
[ 33%] Building CXX object unit-test/CMakeFiles/unit_test.dir/hello_world.cpp.o
In file included from /home/snietfeld/flightcode_cpp/box2d-2.4.1/unit-test/hello_world.cpp:25:
/home/snietfeld/flightcode_cpp/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];
| ^
gmake[2]: *** [unit-test/CMakeFiles/unit_test.dir/build.make:76: unit-test/CMakeFiles/unit_test.dir/hello_world.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:232: unit-test/CMakeFiles/unit_test.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
After updating doctest.h, the build completes and all unit tests pass:
(base) snietfeld@morpheus:~/flightcode_cpp/box2d-2.4.1$ ./build.sh
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/snietfeld/flightcode_cpp/box2d-2.4.1/build
[ 0%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_broad_phase.cpp.o
[ 1%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_chain_shape.cpp.o
[ 2%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_circle_shape.cpp.o
[ 2%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_collide_circle.cpp.o
[ 3%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_collide_edge.cpp.o
[ 4%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_collide_polygon.cpp.o
[ 4%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_collision.cpp.o
[ 5%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_distance.cpp.o
[ 6%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_dynamic_tree.cpp.o
[ 6%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_edge_shape.cpp.o
[ 7%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_polygon_shape.cpp.o
[ 8%] Building CXX object src/CMakeFiles/box2d.dir/collision/b2_time_of_impact.cpp.o
[ 9%] Building CXX object src/CMakeFiles/box2d.dir/common/b2_block_allocator.cpp.o
[ 9%] Building CXX object src/CMakeFiles/box2d.dir/common/b2_draw.cpp.o
[ 10%] Building CXX object src/CMakeFiles/box2d.dir/common/b2_math.cpp.o
[ 11%] Building CXX object src/CMakeFiles/box2d.dir/common/b2_settings.cpp.o
[ 11%] Building CXX object src/CMakeFiles/box2d.dir/common/b2_stack_allocator.cpp.o
[ 12%] Building CXX object src/CMakeFiles/box2d.dir/common/b2_timer.cpp.o
[ 13%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_body.cpp.o
[ 13%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_chain_circle_contact.cpp.o
[ 14%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_chain_polygon_contact.cpp.o
[ 15%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_circle_contact.cpp.o
[ 16%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_contact.cpp.o
[ 16%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_contact_manager.cpp.o
[ 17%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_contact_solver.cpp.o
[ 18%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_distance_joint.cpp.o
[ 18%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_edge_circle_contact.cpp.o
[ 19%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_edge_polygon_contact.cpp.o
[ 20%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_fixture.cpp.o
[ 20%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_friction_joint.cpp.o
[ 21%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_gear_joint.cpp.o
[ 22%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_island.cpp.o
[ 23%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_joint.cpp.o
[ 23%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_motor_joint.cpp.o
[ 24%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_mouse_joint.cpp.o
[ 25%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_polygon_circle_contact.cpp.o
[ 25%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_polygon_contact.cpp.o
[ 26%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_prismatic_joint.cpp.o
[ 27%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_pulley_joint.cpp.o
[ 27%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_revolute_joint.cpp.o
[ 28%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_weld_joint.cpp.o
[ 29%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_wheel_joint.cpp.o
[ 30%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_world.cpp.o
[ 30%] Building CXX object src/CMakeFiles/box2d.dir/dynamics/b2_world_callbacks.cpp.o
[ 31%] Building CXX object src/CMakeFiles/box2d.dir/rope/b2_rope.cpp.o
[ 32%] Linking CXX static library ../bin/libbox2d.a
[ 32%] Built target box2d
[ 33%] Building CXX object unit-test/CMakeFiles/unit_test.dir/hello_world.cpp.o
[ 34%] Building CXX object unit-test/CMakeFiles/unit_test.dir/collision_test.cpp.o
[ 34%] Building CXX object unit-test/CMakeFiles/unit_test.dir/joint_test.cpp.o
[ 35%] Building CXX object unit-test/CMakeFiles/unit_test.dir/math_test.cpp.o
[ 36%] Building CXX object unit-test/CMakeFiles/unit_test.dir/world_test.cpp.o
[ 37%] Linking CXX executable ../bin/unit_test
[ 37%] Built target unit_test
[ 37%] Building C object extern/glad/CMakeFiles/glad.dir/src/gl.c.o
[ 38%] Linking C static library ../../bin/libglad.a
[ 38%] Built target glad
[ 39%] Building C object extern/glfw/CMakeFiles/glfw.dir/src/context.c.o
[ 39%] Building C object extern/glfw/CMakeFiles/glfw.dir/src/init.c.o
[ 40%] Building C object extern/glfw/CMakeFiles/glfw.dir/src/input.c.o
[ 41%] Building C object extern/glfw/CMakeFiles/glfw.dir/src/monitor.c.o
[ 42%] Building C object extern/glfw/CMakeFiles/glfw.dir/src/vulkan.c.o
[ 42%] Building C object extern/glfw/CMakeFiles/glfw.dir/src/window.c.o
[ 43%] Building C object extern/glfw/CMakeFiles/glfw.dir/src/x11_init.c.o
[ 44%] Building C object extern/glfw/CMakeFiles/glfw.dir/src/x11_monitor.c.o
[ 44%] Building C object extern/glfw/CMakeFiles/glfw.dir/src/x11_window.c.o
[ 45%] Building C object extern/glfw/CMakeFiles/glfw.dir/src/xkb_unicode.c.o
[ 46%] Building C object extern/glfw/CMakeFiles/glfw.dir/src/posix_time.c.o
[ 46%] Building C object extern/glfw/CMakeFiles/glfw.dir/src/posix_thread.c.o
[ 47%] Building C object extern/glfw/CMakeFiles/glfw.dir/src/glx_context.c.o
[ 48%] Building C object extern/glfw/CMakeFiles/glfw.dir/src/egl_context.c.o
[ 49%] Building C object extern/glfw/CMakeFiles/glfw.dir/src/osmesa_context.c.o
[ 49%] Building C object extern/glfw/CMakeFiles/glfw.dir/src/linux_joystick.c.o
[ 50%] Linking C static library ../../bin/libglfw.a
[ 50%] Built target glfw
[ 51%] Building CXX object extern/imgui/CMakeFiles/imgui.dir/imgui.cpp.o
[ 51%] Building CXX object extern/imgui/CMakeFiles/imgui.dir/imgui_demo.cpp.o
[ 52%] Building CXX object extern/imgui/CMakeFiles/imgui.dir/imgui_draw.cpp.o
[ 53%] Building CXX object extern/imgui/CMakeFiles/imgui.dir/imgui_widgets.cpp.o
[ 53%] Linking CXX static library ../../bin/libimgui.a
[ 53%] Built target imgui
[ 54%] Building CXX object extern/sajson/CMakeFiles/sajson.dir/sajson.cpp.o
[ 55%] Linking CXX static library ../../bin/libsajson.a
[ 55%] Built target sajson
[ 56%] Building CXX object testbed/CMakeFiles/testbed.dir/draw.cpp.o
[ 56%] Building CXX object testbed/CMakeFiles/testbed.dir/imgui_impl_glfw.cpp.o
[ 57%] Building CXX object testbed/CMakeFiles/testbed.dir/imgui_impl_opengl3.cpp.o
[ 58%] Building CXX object testbed/CMakeFiles/testbed.dir/main.cpp.o
[ 58%] Building CXX object testbed/CMakeFiles/testbed.dir/settings.cpp.o
[ 59%] Building CXX object testbed/CMakeFiles/testbed.dir/test.cpp.o
[ 60%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/add_pair.cpp.o
[ 60%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/apply_force.cpp.o
[ 61%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/body_types.cpp.o
[ 62%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/box_stack.cpp.o
[ 63%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/breakable.cpp.o
[ 63%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/bridge.cpp.o
[ 64%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/bullet_test.cpp.o
[ 65%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/cantilever.cpp.o
[ 65%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/car.cpp.o
[ 66%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/chain.cpp.o
[ 67%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/chain_problem.cpp.o
[ 67%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/character_collision.cpp.o
[ 68%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/circle_stack.cpp.o
[ 69%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/collision_filtering.cpp.o
[ 70%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/collision_processing.cpp.o
[ 70%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/compound_shapes.cpp.o
[ 71%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/confined.cpp.o
[ 72%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/continuous_test.cpp.o
[ 72%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/convex_hull.cpp.o
[ 73%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/conveyor_belt.cpp.o
[ 74%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/distance_joint.cpp.o
[ 74%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/distance_test.cpp.o
[ 75%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/dominos.cpp.o
[ 76%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/dump_loader.cpp.o
[ 77%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/dynamic_tree.cpp.o
[ 77%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/edge_shapes.cpp.o
[ 78%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/edge_test.cpp.o
[ 79%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/friction.cpp.o
[ 79%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/gear_joint.cpp.o
[ 80%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/heavy1.cpp.o
[ 81%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/heavy2.cpp.o
[ 81%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/mobile_balanced.cpp.o
[ 82%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/mobile_unbalanced.cpp.o
[ 83%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/motor_joint.cpp.o
[ 84%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/pinball.cpp.o
[ 84%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/platformer.cpp.o
[ 85%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/polygon_collision.cpp.o
[ 86%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/polygon_shapes.cpp.o
[ 86%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/prismatic_joint.cpp.o
[ 87%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/pulley_joint.cpp.o
[ 88%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/pyramid.cpp.o
[ 88%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/ray_cast.cpp.o
[ 89%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/restitution.cpp.o
[ 90%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/revolute_joint.cpp.o
[ 91%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/rope.cpp.o
[ 91%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/sensor.cpp.o
[ 92%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/shape_cast.cpp.o
[ 93%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/shape_editing.cpp.o
[ 93%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/skier.cpp.o
[ 94%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/slider_crank_1.cpp.o
[ 95%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/slider_crank_2.cpp.o
[ 95%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/theo_jansen.cpp.o
[ 96%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/tiles.cpp.o
[ 97%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/time_of_impact.cpp.o
[ 98%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/tumbler.cpp.o
[ 98%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/web.cpp.o
[ 99%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/wheel_joint.cpp.o
[100%] Building CXX object testbed/CMakeFiles/testbed.dir/tests/wrecking_ball.cpp.o
[100%] Linking CXX executable ../bin/testbed
[100%] Built target testbed
(base) snietfeld@morpheus:~/flightcode_cpp/box2d-2.4.1/build/bin$ ./unit_test
[doctest] doctest version is "2.4.9"
[doctest] run with "--help" for options
0.00 4.00 0.00
0.00 3.99 0.00
0.00 3.98 0.00
0.00 3.97 0.00
0.00 3.96 0.00
0.00 3.94 0.00
0.00 3.92 0.00
0.00 3.90 0.00
0.00 3.87 0.00
0.00 3.85 0.00
0.00 3.82 0.00
0.00 3.78 0.00
0.00 3.75 0.00
0.00 3.71 0.00
0.00 3.67 0.00
0.00 3.62 0.00
0.00 3.57 0.00
0.00 3.52 0.00
0.00 3.47 0.00
0.00 3.42 0.00
0.00 3.36 0.00
0.00 3.30 0.00
0.00 3.23 0.00
0.00 3.17 0.00
0.00 3.10 0.00
0.00 3.02 0.00
0.00 2.95 0.00
0.00 2.87 0.00
0.00 2.79 0.00
0.00 2.71 0.00
0.00 2.62 0.00
0.00 2.53 0.00
0.00 2.44 0.00
0.00 2.35 0.00
0.00 2.25 0.00
0.00 2.15 0.00
0.00 2.05 0.00
0.00 1.94 0.00
0.00 1.83 0.00
0.00 1.72 0.00
0.00 1.61 0.00
0.00 1.49 0.00
0.00 1.37 0.00
0.00 1.25 0.00
0.00 1.13 0.00
0.00 1.01 0.00
0.00 1.01 0.00
0.00 1.01 0.00
0.00 1.01 0.00
0.00 1.01 0.00
0.00 1.01 0.00
0.00 1.01 0.00
0.00 1.01 0.00
0.00 1.01 0.00
0.00 1.01 0.00
0.00 1.01 0.00
0.00 1.01 0.00
0.00 1.01 0.00
0.00 1.01 0.00
0.00 1.01 0.00
===============================================================================
[doctest] test cases: 5 | 5 passed | 0 failed | 0 skipped
[doctest] assertions: 36 | 36 passed | 0 failed |
[doctest] Status: SUCCESS!
Starting with glibc2.34+, SIGSTKSZ is now a syscall instead of a constant. This issue is already known to the doctest team (see this thread), and a fix is already in place as of this commit. Replacing /unit-test/doctest.h with the newest version (2.4.9) seems to fix the issue.
Environment:
Build output:
After updating doctest.h, the build completes and all unit tests pass: