Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erros when building under linux #174

Closed
chunleili opened this issue May 2, 2022 · 2 comments
Closed

erros when building under linux #174

chunleili opened this issue May 2, 2022 · 2 comments

Comments

@chunleili
Copy link

two fatal errors occur when building in the manjaro!

building tools: cmake and make

/home/cl/codes/my/SPlisHSPlasH/extern/Catch2/catch.hpp:8223:45: error: size of array ‘altStackMem’ is not an integral constant-expression
8223 | char FatalConditionHandler::altStackMem[sigStackSize] = {};

/home/cl/codes/my/SPlisHSPlasH/extern/Catch2/catch.hpp:8164:58: error: call to non-‘constexpr’ function ‘long int sysconf(int)’
8164 | constexpr static std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
| ^~~~~~~~~~~

image

image

@digitalillusions
Copy link
Member

Hi, thanks for reporting this issue. It seems that this can be fixed by simply upgrading the version of Catch2. If you want a quick fix, just exchange the header extern/Catch2/catch.hpp with a more recent version and everything should work fine. We're working on pushing a fix soon.

@chunleili
Copy link
Author

Hi, thanks for reporting this issue. It seems that this can be fixed by simply upgrading the version of Catch2. If you want a quick fix, just exchange the header extern/Catch2/catch.hpp with a more recent version and everything should work fine. We're working on pushing a fix soon.

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants