cinder / Cinder

Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
http://libcinder.org
Other
5.28k stars 939 forks source link

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

Open MaxBrain opened 1 year ago

MaxBrain commented 1 year ago

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
richardeakin commented 1 year ago

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