Closed koutoftimer closed 9 months ago
You can fix it by adding #include <stdexcept>
in glPortal/external/RadixEngine/source/data/screen/XmlScreenLoader.cpp
@MuriloucoLouco Thank you, I will patch this. If I forget, just ping me here again.
@MuriloucoLouco
[ 83%] Building CXX object external/RadixEngine/tests/CMakeFiles/XmlHelperTest.dir/XmlHelperTest.cpp.o
In file included from /usr/include/signal.h:328,
from /tmp/glPortal/external/RadixEngine/external/catch/single_include/catch.hpp:6262,
from /tmp/glPortal/external/RadixEngine/tests/XmlHelperTest.cpp:4:
/tmp/glPortal/external/RadixEngine/external/catch/single_include/catch.hpp:6285:33: error: size of array ‘altStackMem’ is not an integral constant-expression
6285 | static char altStackMem[SIGSTKSZ];
| ^~~~~~~~
/tmp/glPortal/external/RadixEngine/external/catch/single_include/catch.hpp:6336:45: error: size of array ‘altStackMem’ is not an integral constant-expression
6336 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
| ^~~~~~~~
In file included from /usr/include/signal.h:328,
from /tmp/glPortal/external/RadixEngine/external/catch/single_include/catch.hpp:6262,
from /tmp/glPortal/external/RadixEngine/tests/core/math/QuaternionTest.cpp:6:
/tmp/glPortal/external/RadixEngine/external/catch/single_include/catch.hpp:6285:33: error: size of array ‘altStackMem’ is not an integral constant-expression
6285 | static char altStackMem[SIGSTKSZ];
| ^~~~~~~~
/tmp/glPortal/external/RadixEngine/external/catch/single_include/catch.hpp:6336:45: error: size of array ‘altStackMem’ is not an integral constant-expression
6336 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
| ^~~~~~~~
Looks like all errors are about RadixEngine. Let me know if it is wrong place to report such issues.
/tmp/glPortal $ rg SIGSTKSZ
external/RadixEngine/external/catch/include/internal/catch_fatal_condition.hpp
140: static char altStackMem[SIGSTKSZ];
160: sigStack.ss_size = SIGSTKSZ;
192: char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
external/RadixEngine/external/catch/single_include/catch.hpp
6285: static char altStackMem[SIGSTKSZ];
6305: sigStack.ss_size = SIGSTKSZ;
6336: char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
Where it even comes from? There is no declaration in sources, only usage.
I was also unable to compile on a modern system. Been trying on and off when I had a bit of spare time.
Fixed in https://github.com/GlPortal/RadixEngine/commit/c9647067fbd1c65fe02db9e6012cc6f37420b854 let's discuss follow up errors in new tickets.
Describe the bug Compilation error.
To Reproduce Steps to reproduce the behavior:
COMPILE.md
make
Desktop (please complete the following information):
Additional context Add any other context about the problem here.