-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
Trying make termox.unit.tests produces the following errors:
$ make termox.unit.tests
[ 17%] Built target escape
[ 94%] Built target TermOx
[ 94%] Building CXX object tests/CMakeFiles/termox.unit.tests.dir/catch2.main.cpp.o
In file included from /usr/include/signal.h:328,
from /home/samara/Projects/TermOx/external/signals-light/external/Catch2/single_include/catch2/catch.hpp:7959,
from /home/samara/Projects/TermOx/tests/catch2.main.cpp:2:
/home/samara/Projects/TermOx/external/signals-light/external/Catch2/single_include/catch2/catch.hpp:10822:58: error: call to non-‘constexpr’ function ‘long int sysconf(int)’
10822 | static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
| ^~~~~~~~~~~
In file included from /usr/include/aarch64-linux-gnu/bits/sigstksz.h:24:
/usr/include/unistd.h:640:17: note: ‘long int sysconf(int)’ declared here
640 | extern long int sysconf (int __name) __THROW;
| ^~~~~~~
/home/samara/Projects/TermOx/external/signals-light/external/Catch2/single_include/catch2/catch.hpp:10881:45: error: size of array ‘altStackMem’ is not an integral constant-expression
10881 | char FatalConditionHandler::altStackMem[sigStackSize] = {};
| ^~~~~~~~~~~~
make[3]: *** [tests/CMakeFiles/termox.unit.tests.dir/build.make:76: tests/CMakeFiles/termox.unit.tests.dir/catch2.main.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:623: tests/CMakeFiles/termox.unit.tests.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:630: tests/CMakeFiles/termox.unit.tests.dir/rule] Error 2
make: *** [Makefile:364: termox.unit.tests] Error 2
This is because MINSIGSTKSZ is no longer a constant on Linux
Metadata
Metadata
Assignees
Labels
No labels