Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- satacker@pop-os:~/studyspace/csc3380/csc3380-fall-2023-assignment0-SAtacker/build$ ninja
- [1/2] Building CXX object CMakeFiles/assignment0.dir/code/assignment0.cpp.o
- FAILED: CMakeFiles/assignment0.dir/code/assignment0.cpp.o
- /usr/bin/c++ -DCATCH_CONFIG_MAIN -std=gnu++20 -MD -MT CMakeFiles/assignment0.dir/code/assignment0.cpp.o -MF CMakeFiles/assignment0.dir/code/assignment0.cpp.o.d -o CMakeFiles/assignment0.dir/code/assignment0.cpp.o -c /home/satacker/studyspace/csc3380/csc3380-fall-2023-assignment0-SAtacker/code/assignment0.cpp
- In file included from /home/satacker/studyspace/csc3380/csc3380-fall-2023-assignment0-SAtacker/code/assignment0.cpp:4:
- /home/satacker/studyspace/csc3380/csc3380-fall-2023-assignment0-SAtacker/code/catch.hpp:10736:34: error: constexpr variable 'sigStackSize' must be initialized by a constant expression
- static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- /home/satacker/studyspace/csc3380/csc3380-fall-2023-assignment0-SAtacker/code/catch.hpp:10736:58: note: non-constexpr function 'sysconf' cannot be used in a constant expression
- static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
- ^
- /usr/include/x86_64-linux-gnu/bits/sigstksz.h:32:22: note: expanded from macro 'MINSIGSTKSZ'
- # define MINSIGSTKSZ SIGSTKSZ
- ^
- /usr/include/x86_64-linux-gnu/bits/sigstksz.h:28:19: note: expanded from macro 'SIGSTKSZ'
- # define SIGSTKSZ sysconf (_SC_SIGSTKSZ)
- ^
- /usr/include/unistd.h:640:17: note: declared here
- extern long int sysconf (int __name) __THROW;
- ^
- In file included from /home/satacker/studyspace/csc3380/csc3380-fall-2023-assignment0-SAtacker/code/assignment0.cpp:4:
- /home/satacker/studyspace/csc3380/csc3380-fall-2023-assignment0-SAtacker/code/catch.hpp:10795:33: error: variable length array declaration not allowed at file scope
- char FatalConditionHandler::altStackMem[sigStackSize] = {};
- ^ ~~~~~~~~~~~~
- 2 errors generated.
- ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment