make -C .. CC=cc EXE=Schoenemann-5648830C make[1]: Entering directory '/tmp/tmp66zpe59_/Schoenemann/Schoenemann-tmp' cd Schoenemann && clang++ -Wall -O3 -std=c++20 -funroll-loops -flto -fno-exceptions -DIS_64BIT -DNDEBUG schoenemann.cpp search.cpp timeman.cpp helper.cpp tt.cpp main.cpp moveorder.cpp see.cpp tune.cpp tuneconsts.cpp datagen.cpp -o ../src/Schoenemann-5648830C In file included from schoenemann.cpp:9: In file included from ./schoenemann.h:5: In file included from ./consts.h:6: In file included from ./tt.h:6: ./chess.hpp:1334:13: error: cannot use 'throw' with exceptions disabled 1334 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1344:13: error: cannot use 'throw' with exceptions disabled 1344 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1852:31: error: cannot use 'throw' with exceptions disabled 1852 | if (parts.size() < 1) throw std::runtime_error("Invalid EPD"); | ^ ./chess.hpp:1863:13: error: cannot use 'try' with exceptions disabled 1863 | try { | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:3984:17: error: cannot use 'throw' with exceptions disabled 3984 | throw StreamParserException("LineBuffer underflow"); | ^ ./chess.hpp:4161:29: error: cannot use 'throw' with exceptions disabled 4161 | throw StreamParserException("Invalid PGN, missing closing quote in header"); | ^ ./chess.hpp:4702:13: error: cannot use 'throw' with exceptions disabled 4702 | throw SanParseError("Failed to parse san. At step 2: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4748:9: error: cannot use 'throw' with exceptions disabled 4748 | throw SanParseError("Failed to parse san. At step 3: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4775:17: error: cannot use 'throw' with exceptions disabled 4775 | throw SanParseError("Failed to parse san. At step 0: " + std::string(san)); | ^ ./chess.hpp:4851:17: error: cannot use 'throw' with exceptions disabled 4851 | throw SanParseError("Failed to parse promotion, during san conversion." + std::string(san)); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ 16 errors generated. In file included from search.cpp:1: In file included from ./search.h:6: ./chess.hpp:1334:13: error: cannot use 'throw' with exceptions disabled 1334 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1344:13: error: cannot use 'throw' with exceptions disabled 1344 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1852:31: error: cannot use 'throw' with exceptions disabled 1852 | if (parts.size() < 1) throw std::runtime_error("Invalid EPD"); | ^ ./chess.hpp:1863:13: error: cannot use 'try' with exceptions disabled 1863 | try { | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:3984:17: error: cannot use 'throw' with exceptions disabled 3984 | throw StreamParserException("LineBuffer underflow"); | ^ ./chess.hpp:4161:29: error: cannot use 'throw' with exceptions disabled 4161 | throw StreamParserException("Invalid PGN, missing closing quote in header"); | ^ ./chess.hpp:4702:13: error: cannot use 'throw' with exceptions disabled 4702 | throw SanParseError("Failed to parse san. At step 2: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4748:9: error: cannot use 'throw' with exceptions disabled 4748 | throw SanParseError("Failed to parse san. At step 3: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4775:17: error: cannot use 'throw' with exceptions disabled 4775 | throw SanParseError("Failed to parse san. At step 0: " + std::string(san)); | ^ ./chess.hpp:4851:17: error: cannot use 'throw' with exceptions disabled 4851 | throw SanParseError("Failed to parse promotion, during san conversion." + std::string(san)); | ^ search.cpp:714:33: warning: '&&' within '||' [-Wlogical-op-parentheses] 714 | if (shouldStopID(start) && !isInfinite || i == 256) | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ ~~ search.cpp:714:33: note: place parentheses around the '&&' expression to silence this warning 714 | if (shouldStopID(start) && !isInfinite || i == 256) | ^ | ( ) In file included from search.cpp:1: In file included from ./search.h:6: ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ 1 warning and 16 errors generated. In file included from timeman.cpp:1: In file included from ./timeman.h:3: In file included from ./consts.h:6: In file included from ./tt.h:6: ./chess.hpp:1334:13: error: cannot use 'throw' with exceptions disabled 1334 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1344:13: error: cannot use 'throw' with exceptions disabled 1344 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1852:31: error: cannot use 'throw' with exceptions disabled 1852 | if (parts.size() < 1) throw std::runtime_error("Invalid EPD"); | ^ ./chess.hpp:1863:13: error: cannot use 'try' with exceptions disabled 1863 | try { | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:3984:17: error: cannot use 'throw' with exceptions disabled 3984 | throw StreamParserException("LineBuffer underflow"); | ^ ./chess.hpp:4161:29: error: cannot use 'throw' with exceptions disabled 4161 | throw StreamParserException("Invalid PGN, missing closing quote in header"); | ^ ./chess.hpp:4702:13: error: cannot use 'throw' with exceptions disabled 4702 | throw SanParseError("Failed to parse san. At step 2: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4748:9: error: cannot use 'throw' with exceptions disabled 4748 | throw SanParseError("Failed to parse san. At step 3: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4775:17: error: cannot use 'throw' with exceptions disabled 4775 | throw SanParseError("Failed to parse san. At step 0: " + std::string(san)); | ^ ./chess.hpp:4851:17: error: cannot use 'throw' with exceptions disabled 4851 | throw SanParseError("Failed to parse promotion, during san conversion." + std::string(san)); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ 16 errors generated. In file included from helper.cpp:1: In file included from ./helper.h:3: In file included from ./consts.h:6: In file included from ./tt.h:6: ./chess.hpp:1334:13: error: cannot use 'throw' with exceptions disabled 1334 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1344:13: error: cannot use 'throw' with exceptions disabled 1344 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1852:31: error: cannot use 'throw' with exceptions disabled 1852 | if (parts.size() < 1) throw std::runtime_error("Invalid EPD"); | ^ ./chess.hpp:1863:13: error: cannot use 'try' with exceptions disabled 1863 | try { | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:3984:17: error: cannot use 'throw' with exceptions disabled 3984 | throw StreamParserException("LineBuffer underflow"); | ^ ./chess.hpp:4161:29: error: cannot use 'throw' with exceptions disabled 4161 | throw StreamParserException("Invalid PGN, missing closing quote in header"); | ^ ./chess.hpp:4702:13: error: cannot use 'throw' with exceptions disabled 4702 | throw SanParseError("Failed to parse san. At step 2: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4748:9: error: cannot use 'throw' with exceptions disabled 4748 | throw SanParseError("Failed to parse san. At step 3: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4775:17: error: cannot use 'throw' with exceptions disabled 4775 | throw SanParseError("Failed to parse san. At step 0: " + std::string(san)); | ^ ./chess.hpp:4851:17: error: cannot use 'throw' with exceptions disabled 4851 | throw SanParseError("Failed to parse promotion, during san conversion." + std::string(san)); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ 16 errors generated. In file included from tt.cpp:1: In file included from ./tt.h:6: ./chess.hpp:1334:13: error: cannot use 'throw' with exceptions disabled 1334 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1344:13: error: cannot use 'throw' with exceptions disabled 1344 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1852:31: error: cannot use 'throw' with exceptions disabled 1852 | if (parts.size() < 1) throw std::runtime_error("Invalid EPD"); | ^ ./chess.hpp:1863:13: error: cannot use 'try' with exceptions disabled 1863 | try { | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:3984:17: error: cannot use 'throw' with exceptions disabled 3984 | throw StreamParserException("LineBuffer underflow"); | ^ ./chess.hpp:4161:29: error: cannot use 'throw' with exceptions disabled 4161 | throw StreamParserException("Invalid PGN, missing closing quote in header"); | ^ ./chess.hpp:4702:13: error: cannot use 'throw' with exceptions disabled 4702 | throw SanParseError("Failed to parse san. At step 2: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4748:9: error: cannot use 'throw' with exceptions disabled 4748 | throw SanParseError("Failed to parse san. At step 3: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4775:17: error: cannot use 'throw' with exceptions disabled 4775 | throw SanParseError("Failed to parse san. At step 0: " + std::string(san)); | ^ ./chess.hpp:4851:17: error: cannot use 'throw' with exceptions disabled 4851 | throw SanParseError("Failed to parse promotion, during san conversion." + std::string(san)); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ 16 errors generated. In file included from main.cpp:1: In file included from ./schoenemann.h:5: In file included from ./consts.h:6: In file included from ./tt.h:6: ./chess.hpp:1334:13: error: cannot use 'throw' with exceptions disabled 1334 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1344:13: error: cannot use 'throw' with exceptions disabled 1344 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1852:31: error: cannot use 'throw' with exceptions disabled 1852 | if (parts.size() < 1) throw std::runtime_error("Invalid EPD"); | ^ ./chess.hpp:1863:13: error: cannot use 'try' with exceptions disabled 1863 | try { | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:3984:17: error: cannot use 'throw' with exceptions disabled 3984 | throw StreamParserException("LineBuffer underflow"); | ^ ./chess.hpp:4161:29: error: cannot use 'throw' with exceptions disabled 4161 | throw StreamParserException("Invalid PGN, missing closing quote in header"); | ^ ./chess.hpp:4702:13: error: cannot use 'throw' with exceptions disabled 4702 | throw SanParseError("Failed to parse san. At step 2: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4748:9: error: cannot use 'throw' with exceptions disabled 4748 | throw SanParseError("Failed to parse san. At step 3: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4775:17: error: cannot use 'throw' with exceptions disabled 4775 | throw SanParseError("Failed to parse san. At step 0: " + std::string(san)); | ^ ./chess.hpp:4851:17: error: cannot use 'throw' with exceptions disabled 4851 | throw SanParseError("Failed to parse promotion, during san conversion." + std::string(san)); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ 16 errors generated. In file included from moveorder.cpp:1: In file included from ./moveorder.h:5: In file included from ./consts.h:6: In file included from ./tt.h:6: ./chess.hpp:1334:13: error: cannot use 'throw' with exceptions disabled 1334 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1344:13: error: cannot use 'throw' with exceptions disabled 1344 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1852:31: error: cannot use 'throw' with exceptions disabled 1852 | if (parts.size() < 1) throw std::runtime_error("Invalid EPD"); | ^ ./chess.hpp:1863:13: error: cannot use 'try' with exceptions disabled 1863 | try { | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:3984:17: error: cannot use 'throw' with exceptions disabled 3984 | throw StreamParserException("LineBuffer underflow"); | ^ ./chess.hpp:4161:29: error: cannot use 'throw' with exceptions disabled 4161 | throw StreamParserException("Invalid PGN, missing closing quote in header"); | ^ ./chess.hpp:4702:13: error: cannot use 'throw' with exceptions disabled 4702 | throw SanParseError("Failed to parse san. At step 2: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4748:9: error: cannot use 'throw' with exceptions disabled 4748 | throw SanParseError("Failed to parse san. At step 3: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4775:17: error: cannot use 'throw' with exceptions disabled 4775 | throw SanParseError("Failed to parse san. At step 0: " + std::string(san)); | ^ ./chess.hpp:4851:17: error: cannot use 'throw' with exceptions disabled 4851 | throw SanParseError("Failed to parse promotion, during san conversion." + std::string(san)); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ 16 errors generated. In file included from see.cpp:1: In file included from ./see.h:3: ./chess.hpp:1334:13: error: cannot use 'throw' with exceptions disabled 1334 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1344:13: error: cannot use 'throw' with exceptions disabled 1344 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1852:31: error: cannot use 'throw' with exceptions disabled 1852 | if (parts.size() < 1) throw std::runtime_error("Invalid EPD"); | ^ ./chess.hpp:1863:13: error: cannot use 'try' with exceptions disabled 1863 | try { | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:3984:17: error: cannot use 'throw' with exceptions disabled 3984 | throw StreamParserException("LineBuffer underflow"); | ^ ./chess.hpp:4161:29: error: cannot use 'throw' with exceptions disabled 4161 | throw StreamParserException("Invalid PGN, missing closing quote in header"); | ^ ./chess.hpp:4702:13: error: cannot use 'throw' with exceptions disabled 4702 | throw SanParseError("Failed to parse san. At step 2: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4748:9: error: cannot use 'throw' with exceptions disabled 4748 | throw SanParseError("Failed to parse san. At step 3: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4775:17: error: cannot use 'throw' with exceptions disabled 4775 | throw SanParseError("Failed to parse san. At step 0: " + std::string(san)); | ^ ./chess.hpp:4851:17: error: cannot use 'throw' with exceptions disabled 4851 | throw SanParseError("Failed to parse promotion, during san conversion." + std::string(san)); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ 16 errors generated. In file included from datagen.cpp:1: In file included from ./datagen.h:2: In file included from ./consts.h:6: In file included from ./tt.h:6: ./chess.hpp:1334:13: error: cannot use 'throw' with exceptions disabled 1334 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1344:13: error: cannot use 'throw' with exceptions disabled 1344 | throw std::out_of_range("Movelist::at: pos (which is " + std::to_string(pos) + ") >= size (which is " + | ^ ./chess.hpp:1852:31: error: cannot use 'throw' with exceptions disabled 1852 | if (parts.size() < 1) throw std::runtime_error("Invalid EPD"); | ^ ./chess.hpp:1863:13: error: cannot use 'try' with exceptions disabled 1863 | try { | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:3984:17: error: cannot use 'throw' with exceptions disabled 3984 | throw StreamParserException("LineBuffer underflow"); | ^ ./chess.hpp:4161:29: error: cannot use 'throw' with exceptions disabled 4161 | throw StreamParserException("Invalid PGN, missing closing quote in header"); | ^ ./chess.hpp:4702:13: error: cannot use 'throw' with exceptions disabled 4702 | throw SanParseError("Failed to parse san. At step 2: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4748:9: error: cannot use 'throw' with exceptions disabled 4748 | throw SanParseError("Failed to parse san. At step 3: " + std::string(san) + " " + board.getFen()); | ^ ./chess.hpp:4775:17: error: cannot use 'throw' with exceptions disabled 4775 | throw SanParseError("Failed to parse san. At step 0: " + std::string(san)); | ^ ./chess.hpp:4851:17: error: cannot use 'throw' with exceptions disabled 4851 | throw SanParseError("Failed to parse promotion, during san conversion." + std::string(san)); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1836:9: note: in instantiation of function template specialization 'chess::Board::setFenInternal<true>' requested here 1836 | setFenInternal<true>(fen); | ^ ./chess.hpp:2935:13: error: cannot use 'try' with exceptions disabled 2935 | try { | ^ ./chess.hpp:2932:90: note: while substituting into a lambda expression here 2932 | static auto parseStringViewToInt = [](std::string_view sv) -> std::optional<int> { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ ./chess.hpp:3005:13: error: cannot use 'throw' with exceptions disabled 3005 | throw std::runtime_error("Invalid position"); | ^ ./chess.hpp:2989:102: note: while substituting into a lambda expression here 2989 | static const auto find_rook = [](const Board &board, CastlingRights::Side side, Color color) { | ^ ./chess.hpp:1839:49: note: in instantiation of function template specialization 'chess::Board::setFenInternal<false>' requested here 1839 | virtual void setFen(std::string_view fen) { setFenInternal(fen); } | ^ 16 errors generated. make[1]: *** [Makefile:13: all] Error 1 make[1]: Leaving directory '/tmp/tmp66zpe59_/Schoenemann/Schoenemann-tmp' make: *** [Makefile:2: all] Error 2