Cinder icon indicating copy to clipboard operation
Cinder copied to clipboard

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

Open MaxBrain opened this issue 3 years ago • 1 comments

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 avatar Jan 10 '23 00:01 MaxBrain

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

richardeakin avatar Jan 21 '23 22:01 richardeakin