robotology / osqp-eigen

Simple Eigen-C++ wrapper for OSQP library
https://robotology.github.io/osqp-eigen/
BSD 3-Clause "New" or "Revised" License
381 stars 112 forks source link

Scheduled CI is failing since December 2022 #132

Closed traversaro closed 1 year ago

traversaro commented 1 year ago

See https://github.com/robotology/osqp-eigen/actions/runs/3635274476 . I can't see log because they experied, but recent CI runs fail with:

[ 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

Probably it is just a problem of too recent or too old catch or similar, see https://github.com/catchorg/Catch2/issues/2421 .