j4-dmenu-desktop
j4-dmenu-desktop copied to clipboard
Cannot compile j4-dmenu-desktop due to CMake Error
When I try to compile it I get this error
In file included from /usr/include/signal.h:328,
from /home/matt/.cache/yay/j4-dmenu-desktop-git/src/j4-dmenu-desktop/catch/src/catch/include/internal/catch_fatal_condition.hpp:116,
from /home/matt/.cache/yay/j4-dmenu-desktop-git/src/j4-dmenu-desktop/catch/src/catch/include/internal/catch_run_context.hpp:23,
from /home/matt/.cache/yay/j4-dmenu-desktop-git/src/j4-dmenu-desktop/catch/src/catch/include/catch_session.hpp:13,
from /home/matt/.cache/yay/j4-dmenu-desktop-git/src/j4-dmenu-desktop/catch/src/catch/include/internal/catch_impl.hpp:19,
from /home/matt/.cache/yay/j4-dmenu-desktop-git/src/j4-dmenu-desktop/catch/src/catch/include/catch.hpp:77,
from /home/matt/.cache/yay/j4-dmenu-desktop-git/src/j4-dmenu-desktop/src/Test.cc:5:
/home/matt/.cache/yay/j4-dmenu-desktop-git/src/j4-dmenu-desktop/catch/src/catch/include/internal/catch_fatal_condition.hpp:139:33: error: size of array ‘altStackMem’ is
not an integral constant-expression
139 | static char altStackMem[SIGSTKSZ];
| ^~~~~~~~
/home/matt/.cache/yay/j4-dmenu-desktop-git/src/j4-dmenu-desktop/catch/src/catch/include/internal/catch_fatal_condition.hpp:191:45: error: size of array ‘altStackMem’ is
not an integral constant-expression
191 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
| ^~~~~~~~
make[2]: *** [CMakeFiles/j4-dmenu-tests.dir/build.make:76: CMakeFiles/j4-dmenu-tests.dir/src/Test.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/j4-dmenu-tests.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
-> error making: j4-dmenu-desktop-git
Build without tests: cmake -DWITH_TESTS=OFF
As a proper fix, updating the vendored catch version should fix it; this is broken due to glibc 2.34 making SIGSTKSZ a function call.
I did that already, I was just pointing it out. Thanks!