satacker

Untitled

Aug 27th, 2023
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. satacker@pop-os:~/studyspace/csc3380/csc3380-fall-2023-assignment0-SAtacker/build$ ninja
  2. [1/2] Building CXX object CMakeFiles/assignment0.dir/code/assignment0.cpp.o
  3. FAILED: CMakeFiles/assignment0.dir/code/assignment0.cpp.o
  4. /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
  5. In file included from /home/satacker/studyspace/csc3380/csc3380-fall-2023-assignment0-SAtacker/code/assignment0.cpp:4:
  6. /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
  7. static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
  8. ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9. /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
  10. static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
  11. ^
  12. /usr/include/x86_64-linux-gnu/bits/sigstksz.h:32:22: note: expanded from macro 'MINSIGSTKSZ'
  13. # define MINSIGSTKSZ SIGSTKSZ
  14. ^
  15. /usr/include/x86_64-linux-gnu/bits/sigstksz.h:28:19: note: expanded from macro 'SIGSTKSZ'
  16. # define SIGSTKSZ sysconf (_SC_SIGSTKSZ)
  17. ^
  18. /usr/include/unistd.h:640:17: note: declared here
  19. extern long int sysconf (int __name) __THROW;
  20. ^
  21. In file included from /home/satacker/studyspace/csc3380/csc3380-fall-2023-assignment0-SAtacker/code/assignment0.cpp:4:
  22. /home/satacker/studyspace/csc3380/csc3380-fall-2023-assignment0-SAtacker/code/catch.hpp:10795:33: error: variable length array declaration not allowed at file scope
  23. char FatalConditionHandler::altStackMem[sigStackSize] = {};
  24. ^ ~~~~~~~~~~~~
  25. 2 errors generated.
  26. ninja: build stopped: subcommand failed.
  27.  
Advertisement
Add Comment
Please, Sign In to add comment