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

Compiling test failed with error: size of array ‘altStackMem’ is not an integral constant-expression #39

Closed
AmirInt opened this issue Mar 27, 2023 · 1 comment

Comments

@AmirInt
Copy link
Contributor

AmirInt commented Mar 27, 2023

GCC version:
gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0

CMake version:
cmake version 3.26.0

OS:
Ubuntu 22.04 on WSL2 (Windows 11)

Steps to reproduce:
Attempt the "Compile Tests" section in the README file.
The make command errors out with:

error: size of array ‘altStackMem’ is not an integral constant-expression

image

I simply replaced the macro SIGSTKSZ with its value 8192 in doctest.hpp, and I could successfully generate and run the tests, but that's not the solution. There are related issues like this, but at least I couldn't find anyone directly addressing and fixing it.

@Haibarapink
Copy link
Contributor

The macro SIGSTKSZ is defined as sysconf (_SC_SIGSTKSZ), and the function 'sysconf(...) ' isn't an integral constant-expression.

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