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

Can not compile test: error: size of array ‘altStackMem’ is not an integral constant-expression #2303

Open
MaxBrain opened this issue Jan 10, 2023 · 1 comment
Labels

Comments

@MaxBrain
Copy link

I tried to compile project undep Ubuntu 22.04

cmake -DCINDER_BUILD_TESTS=true ..
make -j12

I had an error message:

cd /home/storage/github/cinder/Cinder/build/test/unit/proj/cmake && /usr/bin/c++ -DCINDER_GL_CORE -DFT2_BUILD_LIBRARY -DFT_DEBUG_LEVEL_TRACE -D_GLFW_X11 -D_UNIX -I/home/storage/github/cinder/Cinder/test/unit/src -isystem /home/storage/github/cinder/Cinder/include -std=c++17  -g   -Wfatal-errors -std=c++17 -MD -MT test/unit/proj/cmake/CMakeFiles/UnitTests.dir/__/__/src/TestMain.cpp.o -MF CMakeFiles/UnitTests.dir/__/__/src/TestMain.cpp.o.d -o CMakeFiles/UnitTests.dir/__/__/src/TestMain.cpp.o -c /home/storage/github/cinder/Cinder/test/unit/src/TestMain.cpp
In file included from /usr/include/signal.h:328,
                 from /home/storage/github/cinder/Cinder/test/unit/src/catch.hpp:6495,
                 from /home/storage/github/cinder/Cinder/test/unit/src/TestMain.cpp:12:
/home/storage/github/cinder/Cinder/test/unit/src/catch.hpp:6518:33: error: size of array ‘altStackMem’ is not an integral constant-expression
 6518 |         static char altStackMem[SIGSTKSZ];
      |                                 ^~~~~~~~

libc version:

ldd --version
ldd (Ubuntu GLIBC 2.35-0ubuntu3.1) 2.35

Compiler version:

/usr/bin/c++ --version
c++ (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
@MaxBrain MaxBrain changed the title Can nat compile test: error: size of array ‘altStackMem’ is not an integral constant-expression Can not compile test: error: size of array ‘altStackMem’ is not an integral constant-expression Jan 11, 2023
@richardeakin
Copy link
Collaborator

richardeakin commented Jan 21, 2023

That looks like the unit test is failing on linux, do the samples build and run for you?

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

No branches or pull requests

2 participants