[ 35%] Building CXX object CMakeFiles/CatchTestMain.dir/Testing/Catch2Main.cpp.o
In file included from /usr/include/signal.h:328,
from /home/runner/work/osqp-eigen/osqp-eigen/install/deps/include/catch2/catch.hpp:8007,
from /home/runner/work/osqp-eigen/osqp-eigen/build/Testing/Catch2Main.cpp:9:
/home/runner/work/osqp-eigen/osqp-eigen/install/deps/include/catch2/catch.hpp:10791:58: error: call to non-‘constexpr’ function ‘long int sysconf(int)’
10791 | static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
| ^~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /home/runner/work/osqp-eigen/osqp-eigen/install/deps/include/catch2/catch.hpp:8007,
from /home/runner/work/osqp-eigen/osqp-eigen/build/Testing/Catch2Main.cpp:9:
/usr/include/unistd.h:640:17: note: ‘long int sysconf(int)’ declared here
640 | extern long int sysconf (int __name) __THROW;
| ^~~~~~~
In file included from /home/runner/work/osqp-eigen/osqp-eigen/build/Testing/Catch2Main.cpp:9:
/home/runner/work/osqp-eigen/osqp-eigen/install/deps/include/catch2/catch.hpp:10850:45: error: size of array ‘altStackMem’ is not an integral constant-expression
10850 | char FatalConditionHandler::altStackMem[sigStackSize] = {};
| ^~~~~~~~~~~~
gmake[2]: *** [CMakeFiles/CatchTestMain.dir/build.make:76: CMakeFiles/CatchTestMain.dir/Testing/Catch2Main.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:893: CMakeFiles/CatchTestMain.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
See https://github.com/robotology/osqp-eigen/actions/runs/3635274476 . I can't see log because they experied, but recent CI runs fail with:
Probably it is just a problem of too recent or too old catch or similar, see https://github.com/catchorg/Catch2/issues/2421 .