fail to build catch2 on gcc 11
There seems to be an issue with building catch2 on the latest gcc 11. The compile error looks like this:
error: call to non-‘constexpr’ function ‘long int sysconf(int)’
10822 | static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
| ^~~~~~~~~~~
and
error: size of array ‘altStackMem’ is not an integral constant-expression
10881 | char FatalConditionHandler::altStackMem[sigStackSize] = {};
| ^~~~~~~~~~~~
In file included from /usr/include/signal.h:328,
from /home/felix/.conan/data/catch2/2.13.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/catch2/catch.hpp:8034,
This matches an issue discussed on the catch2 github. My local solution is to bump catch2 to version 2.13.6, where this issue is fixed. This can be done by changing conanfile.txt in the main corsika dir.
Question is can we change the version for catch2 globally? Maybe someone should check if there are any draw backs with old compilers?