stijnfrishert / libLSDJ

Library for working with the LSDj save file format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update Catch2

defensem3ch opened this issue · comments

Catch2 needs to be updated due to a build error with updated glibc

In file included from /usr/include/signal.h:328,
                 from /home/aaron/liblsdj/dependency/Catch2/single_include/catch2/catch.hpp:7955,
                 from /home/aaron/liblsdj/liblsdj/test/main.cpp:2:
/home/aaron/liblsdj/dependency/Catch2/single_include/catch2/catch.hpp:10735:58: error: call to non-‘constexpr’ function ‘long int sysconf(int)’
10735 |     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/aaron/liblsdj/dependency/Catch2/single_include/catch2/catch.hpp:7955,
                 from /home/aaron/liblsdj/liblsdj/test/main.cpp:2:
/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/aaron/liblsdj/liblsdj/test/main.cpp:2:
/home/aaron/liblsdj/dependency/Catch2/single_include/catch2/catch.hpp:10794:45: error: size of array ‘altStackMem’ is not an integral constant-expression
10794 |     char FatalConditionHandler::altStackMem[sigStackSize] = {};
      |                                             ^~~~~~~~~~~~
make[2]: *** [liblsdj/test/CMakeFiles/test.dir/build.make:104: liblsdj/test/CMakeFiles/test.dir/main.cpp.o] Error 1
make[2]: Leaving directory '/home/aaron/liblsdj'
make[1]: *** [CMakeFiles/Makefile2:986: liblsdj/test/CMakeFiles/test.dir/all] Error 2
make[1]: Leaving directory '/home/aaron/liblsdj'
make: *** [Makefile:130: all] Error 2

Updating to Catch v2.13.10 addressed the issue on my system.