clang++ -O3 -march=native -ffast-math -fno-finite-math-only -funroll-loops -flto -fuse-ld=lld -std=c++20 -static -DNDEBUG -DEVALFILE=\"/OpenBench/Client/Networks/77F8F4D5\" ./src/Prelude.cpp ./src/accumulator.cpp ./src/board.cpp ./src/datagen.cpp ./src/move.cpp ./src/movegen.cpp ./src/nnue.cpp ./src/search.cpp ./src/searcher.cpp ./external/fmt/format.cc -o Prelude-0300556D-77F8F4D5
In file included from ./src/Prelude.cpp:7:
In file included from ./src/board.h:3:
./src/util.h:89:18: error: constexpr function's return type 'std::string' (aka 'basic_string<char>') is not a literal type
constexpr string squareToAlgebraic(int sq) { return fmt::format("{}{}", static_cast<char>('a' + (sq % 8)), static_cast<char>('1' + (sq / 8))); }
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:85:11: note: 'basic_string<char>' is not literal because it is not an aggregate and has no constexpr constructors other than copy or move constructors
class basic_string
^
In file included from ./src/Prelude.cpp:12:
./src/search.h:125:46: warning: implicit conversion from 'unsigned long' to 'const i32' (aka 'const int') changes value from 18446744073709519104 to -32512 [-Wconstant-conversion]
constexpr i32 MATED_IN_MAX_PLY = -MATE_SCORE + MAX_PLY;
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~
1 warning and 1 error generated.
In file included from ./src/accumulator.cpp:4:
In file included from ./src/board.h:3:
./src/util.h:89:18: error: constexpr function's return type 'std::string' (aka 'basic_string<char>') is not a literal type
constexpr string squareToAlgebraic(int sq) { return fmt::format("{}{}", static_cast<char>('a' + (sq % 8)), static_cast<char>('1' + (sq / 8))); }
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:85:11: note: 'basic_string<char>' is not literal because it is not an aggregate and has no constexpr constructors other than copy or move constructors
class basic_string
^
1 error generated.
In file included from ./src/board.cpp:1:
In file included from ./src/board.h:3:
./src/util.h:89:18: error: constexpr function's return type 'std::string' (aka 'basic_string<char>') is not a literal type
constexpr string squareToAlgebraic(int sq) { return fmt::format("{}{}", static_cast<char>('a' + (sq % 8)), static_cast<char>('1' + (sq / 8))); }
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:85:11: note: 'basic_string<char>' is not literal because it is not an aggregate and has no constexpr constructors other than copy or move constructors
class basic_string
^
In file included from ./src/board.cpp:6:
./src/search.h:125:46: warning: implicit conversion from 'unsigned long' to 'const i32' (aka 'const int') changes value from 18446744073709519104 to -32512 [-Wconstant-conversion]
constexpr i32 MATED_IN_MAX_PLY = -MATE_SCORE + MAX_PLY;
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~
In file included from ./src/board.cpp:1:
In file included from ./src/board.h:3:
./src/util.h:37:37: warning: shift count is negative [-Wshift-count-negative]
return dir > 0 ? bb << dir : bb >> -dir;
^ ~~~~
./src/board.cpp:164:22: note: in instantiation of function template specialization 'shift<7>' requested here
checkMask |= shift<NORTH_WEST>(kingBB & ~MASK_FILE[AFILE]) & pieces(BLACK, PAWN);
^
In file included from ./src/board.cpp:1:
In file included from ./src/board.h:3:
./src/util.h:37:37: warning: shift count is negative [-Wshift-count-negative]
return dir > 0 ? bb << dir : bb >> -dir;
^ ~~~~
./src/board.cpp:165:22: note: in instantiation of function template specialization 'shift<9>' requested here
checkMask |= shift<NORTH_EAST>(kingBB & ~MASK_FILE[HFILE]) & pieces(BLACK, PAWN);
^
In file included from ./src/board.cpp:1:
In file included from ./src/board.h:3:
./src/util.h:37:25: warning: shift count is negative [-Wshift-count-negative]
return dir > 0 ? bb << dir : bb >> -dir;
^ ~~~
./src/board.cpp:168:22: note: in instantiation of function template specialization 'shift<-9>' requested here
checkMask |= shift<SOUTH_WEST>(kingBB & ~MASK_FILE[AFILE]) & pieces(WHITE, PAWN);
^
In file included from ./src/board.cpp:1:
In file included from ./src/board.h:3:
./src/util.h:37:25: warning: shift count is negative [-Wshift-count-negative]
return dir > 0 ? bb << dir : bb >> -dir;
^ ~~~
./src/board.cpp:169:22: note: in instantiation of function template specialization 'shift<-7>' requested here
checkMask |= shift<SOUTH_EAST>(kingBB & ~MASK_FILE[HFILE]) & pieces(WHITE, PAWN);
^
In file included from ./src/board.cpp:1:
In file included from ./src/board.h:3:
./src/util.h:37:37: warning: shift count is negative [-Wshift-count-negative]
return dir > 0 ? bb << dir : bb >> -dir;
^ ~~~~
./src/board.cpp:433:39: note: in instantiation of function template specialization 'shift<1>' requested here
&& (pieces(~stm, PAWN) & (shift<EAST>((1ULL << to) & ~MASK_FILE[HFILE]) | shift<WEST>((1ULL << to) & ~MASK_FILE[AFILE])))) // Only set EP square if it could be taken
^
./src/board.cpp:388:28: note: in instantiation of function template specialization 'Board::move<false>' requested here
void Board::move(Move m) { move<false>(m); }
^
In file included from ./src/board.cpp:1:
In file included from ./src/board.h:3:
./src/util.h:37:25: warning: shift count is negative [-Wshift-count-negative]
return dir > 0 ? bb << dir : bb >> -dir;
^ ~~~
./src/board.cpp:433:87: note: in instantiation of function template specialization 'shift<-1>' requested here
&& (pieces(~stm, PAWN) & (shift<EAST>((1ULL << to) & ~MASK_FILE[HFILE]) | shift<WEST>((1ULL << to) & ~MASK_FILE[AFILE])))) // Only set EP square if it could be taken
^
./src/board.cpp:388:28: note: in instantiation of function template specialization 'Board::move<false>' requested here
void Board::move(Move m) { move<false>(m); }
^
7 warnings and 1 error generated.
In file included from ./src/datagen.cpp:2:
In file included from ./src/board.h:3:
./src/util.h:89:18: error: constexpr function's return type 'std::string' (aka 'basic_string<char>') is not a literal type
constexpr string squareToAlgebraic(int sq) { return fmt::format("{}{}", static_cast<char>('a' + (sq % 8)), static_cast<char>('1' + (sq / 8))); }
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:85:11: note: 'basic_string<char>' is not literal because it is not an aggregate and has no constexpr constructors other than copy or move constructors
class basic_string
^
In file included from ./src/datagen.cpp:4:
./src/search.h:125:46: warning: implicit conversion from 'unsigned long' to 'const i32' (aka 'const int') changes value from 18446744073709519104 to -32512 [-Wconstant-conversion]
constexpr i32 MATED_IN_MAX_PLY = -MATE_SCORE + MAX_PLY;
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~
./src/datagen.cpp:126:27: error: no member named 'format' in namespace 'std'
return "data-" + std::format("{:04}-{:02}-{:02}", tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday) + "-" + randomStr + ".preludedata";
~~~~~^
1 warning and 2 errors generated.
In file included from ./src/move.cpp:2:
In file included from ./src/board.h:3:
./src/util.h:89:18: error: constexpr function's return type 'std::string' (aka 'basic_string<char>') is not a literal type
constexpr string squareToAlgebraic(int sq) { return fmt::format("{}{}", static_cast<char>('a' + (sq % 8)), static_cast<char>('1' + (sq / 8))); }
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:85:11: note: 'basic_string<char>' is not literal because it is not an aggregate and has no constexpr constructors other than copy or move constructors
class basic_string
^
1 error generated.
In file included from ./src/movegen.cpp:1:
In file included from ./src/movegen.h:5:
In file included from ./src/board.h:3:
./src/util.h:89:18: error: constexpr function's return type 'std::string' (aka 'basic_string<char>') is not a literal type
constexpr string squareToAlgebraic(int sq) { return fmt::format("{}{}", static_cast<char>('a' + (sq % 8)), static_cast<char>('1' + (sq / 8))); }
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:85:11: note: 'basic_string<char>' is not literal because it is not an aggregate and has no constexpr constructors other than copy or move constructors
class basic_string
^
In file included from ./src/movegen.cpp:1:
In file included from ./src/movegen.h:5:
In file included from ./src/board.h:3:
./src/util.h:37:37: warning: shift count is negative [-Wshift-count-negative]
return dir > 0 ? bb << dir : bb >> -dir;
^ ~~~~
./src/movegen.cpp:245:16: note: in instantiation of function template specialization 'shift<9>' requested here
return shift<NORTH_EAST>(sqBB & ~MASK_FILE[HFILE]) | shift<NORTH_WEST>(sqBB & ~MASK_FILE[AFILE]);
^
In file included from ./src/movegen.cpp:1:
In file included from ./src/movegen.h:5:
In file included from ./src/board.h:3:
./src/util.h:37:37: warning: shift count is negative [-Wshift-count-negative]
return dir > 0 ? bb << dir : bb >> -dir;
^ ~~~~
./src/movegen.cpp:245:62: note: in instantiation of function template specialization 'shift<7>' requested here
return shift<NORTH_EAST>(sqBB & ~MASK_FILE[HFILE]) | shift<NORTH_WEST>(sqBB & ~MASK_FILE[AFILE]);
^
In file included from ./src/movegen.cpp:1:
In file included from ./src/movegen.h:5:
In file included from ./src/board.h:3:
./src/util.h:37:25: warning: shift count is negative [-Wshift-count-negative]
return dir > 0 ? bb << dir : bb >> -dir;
^ ~~~
./src/movegen.cpp:247:12: note: in instantiation of function template specialization 'shift<-7>' requested here
return shift<SOUTH_EAST>(sqBB & ~MASK_FILE[HFILE]) | shift<SOUTH_WEST>(sqBB & ~MASK_FILE[AFILE]);
^
In file included from ./src/movegen.cpp:1:
In file included from ./src/movegen.h:5:
In file included from ./src/board.h:3:
./src/util.h:37:25: warning: shift count is negative [-Wshift-count-negative]
return dir > 0 ? bb << dir : bb >> -dir;
^ ~~~
./src/movegen.cpp:247:58: note: in instantiation of function template specialization 'shift<-9>' requested here
return shift<SOUTH_EAST>(sqBB & ~MASK_FILE[HFILE]) | shift<SOUTH_WEST>(sqBB & ~MASK_FILE[AFILE]);
^
4 warnings and 1 error generated.
In file included from ./src/nnue.cpp:3:
In file included from ./src/board.h:3:
./src/util.h:89:18: error: constexpr function's return type 'std::string' (aka 'basic_string<char>') is not a literal type
constexpr string squareToAlgebraic(int sq) { return fmt::format("{}{}", static_cast<char>('a' + (sq % 8)), static_cast<char>('1' + (sq / 8))); }
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:85:11: note: 'basic_string<char>' is not literal because it is not an aggregate and has no constexpr constructors other than copy or move constructors
class basic_string
^
In file included from ./src/nnue.cpp:6:
./src/search.h:125:46: warning: implicit conversion from 'unsigned long' to 'const i32' (aka 'const int') changes value from 18446744073709519104 to -32512 [-Wconstant-conversion]
constexpr i32 MATED_IN_MAX_PLY = -MATE_SCORE + MAX_PLY;
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~
./src/nnue.cpp:50:17: warning: Using AVX2 NNUE inference [-W#pragma-messages]
#pragma message("Using AVX2 NNUE inference")
^
./src/nnue.cpp:262:132: error: no member named 'format' in namespace 'std'
cout << "| " << padStr(std::to_string(outputBucket), 11, 0) << "| " << (staticEval > 0 ? "+" : "-") << " " << padStr(std::format("{:.2f}", std::abs(staticEval / 100.0)), 8, 0) << "|";
~~~~~^
2 warnings and 2 errors generated.
In file included from ./src/search.cpp:1:
In file included from ./src/search.h:4:
In file included from ./src/board.h:3:
./src/util.h:89:18: error: constexpr function's return type 'std::string' (aka 'basic_string<char>') is not a literal type
constexpr string squareToAlgebraic(int sq) { return fmt::format("{}{}", static_cast<char>('a' + (sq % 8)), static_cast<char>('1' + (sq / 8))); }
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:85:11: note: 'basic_string<char>' is not literal because it is not an aggregate and has no constexpr constructors other than copy or move constructors
class basic_string
^
In file included from ./src/search.cpp:1:
./src/search.h:125:46: warning: implicit conversion from 'unsigned long' to 'const i32' (aka 'const int') changes value from 18446744073709519104 to -32512 [-Wconstant-conversion]
constexpr i32 MATED_IN_MAX_PLY = -MATE_SCORE + MAX_PLY;
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~
1 warning and 1 error generated.
In file included from ./src/searcher.cpp:1:
In file included from ./src/searcher.h:4:
In file included from ./src/search.h:4:
In file included from ./src/board.h:3:
./src/util.h:89:18: error: constexpr function's return type 'std::string' (aka 'basic_string<char>') is not a literal type
constexpr string squareToAlgebraic(int sq) { return fmt::format("{}{}", static_cast<char>('a' + (sq % 8)), static_cast<char>('1' + (sq / 8))); }
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:85:11: note: 'basic_string<char>' is not literal because it is not an aggregate and has no constexpr constructors other than copy or move constructors
class basic_string
^
In file included from ./src/searcher.cpp:1:
In file included from ./src/searcher.h:4:
./src/search.h:125:46: warning: implicit conversion from 'unsigned long' to 'const i32' (aka 'const int') changes value from 18446744073709519104 to -32512 [-Wconstant-conversion]
constexpr i32 MATED_IN_MAX_PLY = -MATE_SCORE + MAX_PLY;
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~
1 warning and 1 error generated.
make: *** [makefile:29: Prelude-0300556D-77F8F4D5] Error 1