clang++ -O3 -march=native -ffast-math -funroll-loops -flto -fuse-ld=lld -std=c++20 -static -DNDEBUG -DEVALFILE=\"/home/nocturn9x/OpenBench/Client/Networks/408E3A82\" ./src/accumulator.cpp ./src/board.cpp ./src/move.cpp ./src/movegen.cpp ./src/movepicker.cpp ./src/nnue.cpp ./src/Prelude.cpp ./src/search.cpp -o Prelude-8C075DD1-408E3A82
In file included from ./src/accumulator.cpp:1:
In file included from ./src/accumulator.h:3:
./src/types.h:29:30: error: implicit instantiation of undefined template 'std::numeric_limits<unsigned long>'
29 | constexpr u64 INF_U64 = std::numeric_limits<u64>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/accumulator.cpp:1:
In file included from ./src/accumulator.h:3:
./src/types.h:30:30: error: implicit instantiation of undefined template 'std::numeric_limits<int>'
30 | constexpr int INF_INT = std::numeric_limits<int>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/accumulator.cpp:1:
In file included from ./src/accumulator.h:3:
./src/types.h:31:30: error: implicit instantiation of undefined template 'std::numeric_limits<short>'
31 | constexpr int INF_I16 = std::numeric_limits<i16>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/accumulator.cpp:3:
In file included from ./src/board.h:3:
./src/util.h:73:14: error: no member named 'memcpy' in namespace 'std'; did you mean 'wmemcpy'?
73 | std::memcpy(&result, &v, sizeof(IntType));
| ~~~~~^~~~~~
| wmemcpy
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/cwchar:201:11: note: 'wmemcpy' declared here
201 | using ::wmemcpy;
| ^
4 errors generated.
In file included from ./src/board.cpp:1:
In file included from ./src/board.h:3:
In file included from ./src/util.h:8:
./src/types.h:29:30: error: implicit instantiation of undefined template 'std::numeric_limits<unsigned long>'
29 | constexpr u64 INF_U64 = std::numeric_limits<u64>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/board.cpp:1:
In file included from ./src/board.h:3:
In file included from ./src/util.h:8:
./src/types.h:30:30: error: implicit instantiation of undefined template 'std::numeric_limits<int>'
30 | constexpr int INF_INT = std::numeric_limits<int>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/board.cpp:1:
In file included from ./src/board.h:3:
In file included from ./src/util.h:8:
./src/types.h:31:30: error: implicit instantiation of undefined template 'std::numeric_limits<short>'
31 | constexpr int INF_I16 = std::numeric_limits<i16>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/board.cpp:1:
In file included from ./src/board.h:3:
./src/util.h:73:14: error: no member named 'memcpy' in namespace 'std'; did you mean 'wmemcpy'?
73 | std::memcpy(&result, &v, sizeof(IntType));
| ~~~~~^~~~~~
| wmemcpy
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/cwchar:201:11: note: 'wmemcpy' declared here
201 | using ::wmemcpy;
| ^
In file included from ./src/board.cpp:1:
In file included from ./src/board.h:3:
./src/util.h:38:37: warning: shift count is negative [-Wshift-count-negative]
38 | return dir > 0 ? bb << dir : bb >> -dir;
| ^ ~~~~
./src/board.cpp:166:22: note: in instantiation of function template specialization 'shift<7>' requested here
166 | 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:38:37: warning: shift count is negative [-Wshift-count-negative]
38 | return dir > 0 ? bb << dir : bb >> -dir;
| ^ ~~~~
./src/board.cpp:167:22: note: in instantiation of function template specialization 'shift<9>' requested here
167 | 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:38:25: warning: shift count is negative [-Wshift-count-negative]
38 | return dir > 0 ? bb << dir : bb >> -dir;
| ^ ~~~
./src/board.cpp:170:22: note: in instantiation of function template specialization 'shift<-9>' requested here
170 | 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:38:25: warning: shift count is negative [-Wshift-count-negative]
38 | return dir > 0 ? bb << dir : bb >> -dir;
| ^ ~~~
./src/board.cpp:171:22: note: in instantiation of function template specialization 'shift<-7>' requested here
171 | 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:38:37: warning: shift count is negative [-Wshift-count-negative]
38 | return dir > 0 ? bb << dir : bb >> -dir;
| ^ ~~~~
./src/board.cpp:374:39: note: in instantiation of function template specialization 'shift<1>' requested here
374 | && (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:330:28: note: in instantiation of function template specialization 'Board::move<false>' requested here
330 | 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:38:25: warning: shift count is negative [-Wshift-count-negative]
38 | return dir > 0 ? bb << dir : bb >> -dir;
| ^ ~~~
./src/board.cpp:374:87: note: in instantiation of function template specialization 'shift<-1>' requested here
374 | && (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:330:28: note: in instantiation of function template specialization 'Board::move<false>' requested here
330 | void Board::move(Move m) { move<false>(m); }
| ^
6 warnings and 4 errors generated.
In file included from ./src/move.cpp:1:
In file included from ./src/move.h:5:
./src/types.h:29:30: error: implicit instantiation of undefined template 'std::numeric_limits<unsigned long>'
29 | constexpr u64 INF_U64 = std::numeric_limits<u64>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/move.cpp:1:
In file included from ./src/move.h:5:
./src/types.h:30:30: error: implicit instantiation of undefined template 'std::numeric_limits<int>'
30 | constexpr int INF_INT = std::numeric_limits<int>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/move.cpp:1:
In file included from ./src/move.h:5:
./src/types.h:31:30: error: implicit instantiation of undefined template 'std::numeric_limits<short>'
31 | constexpr int INF_I16 = std::numeric_limits<i16>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/move.cpp:2:
In file included from ./src/board.h:3:
./src/util.h:73:14: error: no member named 'memcpy' in namespace 'std'; did you mean 'wmemcpy'?
73 | std::memcpy(&result, &v, sizeof(IntType));
| ~~~~~^~~~~~
| wmemcpy
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/cwchar:201:11: note: 'wmemcpy' declared here
201 | using ::wmemcpy;
| ^
4 errors generated.
In file included from ./src/movegen.cpp:1:
In file included from ./src/movegen.h:3:
./src/types.h:29:30: error: implicit instantiation of undefined template 'std::numeric_limits<unsigned long>'
29 | constexpr u64 INF_U64 = std::numeric_limits<u64>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/movegen.cpp:1:
In file included from ./src/movegen.h:3:
./src/types.h:30:30: error: implicit instantiation of undefined template 'std::numeric_limits<int>'
30 | constexpr int INF_INT = std::numeric_limits<int>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/movegen.cpp:1:
In file included from ./src/movegen.h:3:
./src/types.h:31:30: error: implicit instantiation of undefined template 'std::numeric_limits<short>'
31 | constexpr int INF_I16 = std::numeric_limits<i16>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
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:73:14: error: no member named 'memcpy' in namespace 'std'; did you mean 'wmemcpy'?
73 | std::memcpy(&result, &v, sizeof(IntType));
| ~~~~~^~~~~~
| wmemcpy
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/cwchar:201:11: note: 'wmemcpy' declared here
201 | using ::wmemcpy;
| ^
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:38:37: warning: shift count is negative [-Wshift-count-negative]
38 | return dir > 0 ? bb << dir : bb >> -dir;
| ^ ~~~~
./src/movegen.cpp:241:16: note: in instantiation of function template specialization 'shift<9>' requested here
241 | 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:38:37: warning: shift count is negative [-Wshift-count-negative]
38 | return dir > 0 ? bb << dir : bb >> -dir;
| ^ ~~~~
./src/movegen.cpp:241:62: note: in instantiation of function template specialization 'shift<7>' requested here
241 | 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:38:25: warning: shift count is negative [-Wshift-count-negative]
38 | return dir > 0 ? bb << dir : bb >> -dir;
| ^ ~~~
./src/movegen.cpp:243:12: note: in instantiation of function template specialization 'shift<-7>' requested here
243 | 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:38:25: warning: shift count is negative [-Wshift-count-negative]
38 | return dir > 0 ? bb << dir : bb >> -dir;
| ^ ~~~
./src/movegen.cpp:243:58: note: in instantiation of function template specialization 'shift<-9>' requested here
243 | return shift<SOUTH_EAST>(sqBB & ~MASK_FILE[HFILE]) | shift<SOUTH_WEST>(sqBB & ~MASK_FILE[AFILE]);
| ^
4 warnings and 4 errors generated.
In file included from ./src/movepicker.cpp:1:
In file included from ./src/movepicker.h:3:
./src/types.h:29:30: error: implicit instantiation of undefined template 'std::numeric_limits<unsigned long>'
29 | constexpr u64 INF_U64 = std::numeric_limits<u64>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/movepicker.cpp:1:
In file included from ./src/movepicker.h:3:
./src/types.h:30:30: error: implicit instantiation of undefined template 'std::numeric_limits<int>'
30 | constexpr int INF_INT = std::numeric_limits<int>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/movepicker.cpp:1:
In file included from ./src/movepicker.h:3:
./src/types.h:31:30: error: implicit instantiation of undefined template 'std::numeric_limits<short>'
31 | constexpr int INF_I16 = std::numeric_limits<i16>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/movepicker.cpp:1:
In file included from ./src/movepicker.h:5:
In file included from ./src/board.h:3:
./src/util.h:73:14: error: no member named 'memcpy' in namespace 'std'; did you mean 'wmemcpy'?
73 | std::memcpy(&result, &v, sizeof(IntType));
| ~~~~~^~~~~~
| wmemcpy
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/cwchar:201:11: note: 'wmemcpy' declared here
201 | using ::wmemcpy;
| ^
4 errors generated.
In file included from ./src/nnue.cpp:1:
In file included from ./src/nnue.h:3:
./src/types.h:29:30: error: implicit instantiation of undefined template 'std::numeric_limits<unsigned long>'
29 | constexpr u64 INF_U64 = std::numeric_limits<u64>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/nnue.cpp:1:
In file included from ./src/nnue.h:3:
./src/types.h:30:30: error: implicit instantiation of undefined template 'std::numeric_limits<int>'
30 | constexpr int INF_INT = std::numeric_limits<int>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/nnue.cpp:1:
In file included from ./src/nnue.h:3:
./src/types.h:31:30: error: implicit instantiation of undefined template 'std::numeric_limits<short>'
31 | constexpr int INF_I16 = std::numeric_limits<i16>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/nnue.cpp:3:
In file included from ./src/board.h:3:
./src/util.h:73:14: error: no member named 'memcpy' in namespace 'std'; did you mean 'wmemcpy'?
73 | std::memcpy(&result, &v, sizeof(IntType));
| ~~~~~^~~~~~
| wmemcpy
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/cwchar:201:11: note: 'wmemcpy' declared here
201 | using ::wmemcpy;
| ^
In file included from ./src/nnue.cpp:6:
./src/search.h:77:46: warning: implicit conversion from 'u64' (aka 'unsigned long') to 'const i16' (aka 'const short') changes value from 18446744073709519104 to -32512 [-Wconstant-conversion]
77 | constexpr i16 MATED_IN_MAX_PLY = -MATE_SCORE + MAX_PLY;
| ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~
In file included from ./src/nnue.cpp:3:
In file included from ./src/board.h:3:
./src/util.h:73:21: error: cannot initialize a parameter of type 'wchar_t *' with an rvalue of type 'short *'
73 | std::memcpy(&result, &v, sizeof(IntType));
| ^~~~~~~
./src/nnue.cpp:44:26: note: in instantiation of function template specialization 'readLittleEndian<short>' requested here
44 | weightsToHL[i] = readLittleEndian<int16_t>(stream);
| ^
/usr/include/wchar.h:263:46: note: passing argument to parameter '__s1' here
263 | extern wchar_t *wmemcpy (wchar_t *__restrict __s1,
| ^
1 warning and 5 errors generated.
In file included from ./src/Prelude.cpp:5:
In file included from ./src/board.h:3:
./src/util.h:73:14: error: no member named 'memcpy' in namespace 'std'; did you mean 'wmemcpy'?
73 | std::memcpy(&result, &v, sizeof(IntType));
| ~~~~~^~~~~~
| wmemcpy
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/cwchar:201:11: note: 'wmemcpy' declared here
201 | using ::wmemcpy;
| ^
In file included from ./src/Prelude.cpp:10:
./src/search.h:77:46: warning: implicit conversion from 'u64' (aka 'unsigned long') to 'const i16' (aka 'const short') changes value from 18446744073709519104 to -32512 [-Wconstant-conversion]
77 | constexpr i16 MATED_IN_MAX_PLY = -MATE_SCORE + MAX_PLY;
| ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~
In file included from ./src/Prelude.cpp:5:
In file included from ./src/board.h:3:
./src/util.h:155:15: error: no matching function for call to 'find'
155 | auto it = std::find(arr.begin(), arr.end(), entry);
| ^~~~~~~~~
./src/Prelude.cpp:84:60: note: in instantiation of function template specialization 'findIndexOf<std::vector<std::basic_string<char>>>' requested here
84 | auto index = [&](string sub, int offset = 0) { return findIndexOf(tokens, sub) + offset; };
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/streambuf_iterator.h:435:5: note: candidate template ignored: could not match 'istreambuf_iterator' against '__normal_iterator'
435 | find(istreambuf_iterator<_CharT> __first,
| ^
1 warning and 2 errors generated.
In file included from ./src/search.cpp:1:
In file included from ./src/search.h:3:
./src/types.h:29:30: error: implicit instantiation of undefined template 'std::numeric_limits<unsigned long>'
29 | constexpr u64 INF_U64 = std::numeric_limits<u64>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/search.cpp:1:
In file included from ./src/search.h:3:
./src/types.h:30:30: error: implicit instantiation of undefined template 'std::numeric_limits<int>'
30 | constexpr int INF_INT = std::numeric_limits<int>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
In file included from ./src/search.cpp:1:
In file included from ./src/search.h:3:
./src/types.h:31:30: error: implicit instantiation of undefined template 'std::numeric_limits<short>'
31 | constexpr int INF_I16 = std::numeric_limits<i16>::max();
| ^
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/max_size_type.h:53:10: note: template is declared here
53 | struct numeric_limits;
| ^
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:73:14: error: no member named 'memcpy' in namespace 'std'; did you mean 'wmemcpy'?
73 | std::memcpy(&result, &v, sizeof(IntType));
| ~~~~~^~~~~~
| wmemcpy
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/cwchar:201:11: note: 'wmemcpy' declared here
201 | using ::wmemcpy;
| ^
In file included from ./src/search.cpp:1:
./src/search.h:77:46: warning: implicit conversion from 'u64' (aka 'unsigned long') to 'const i16' (aka 'const short') changes value from 18446744073709519104 to -32512 [-Wconstant-conversion]
77 | constexpr i16 MATED_IN_MAX_PLY = -MATE_SCORE + MAX_PLY;
| ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~
1 warning and 4 errors generated.
make: *** [makefile:29: Prelude-8C075DD1-408E3A82] Error 1