mkdir -p obj
clang++ -std=c++20 -c -o obj/accumulator.o source/accumulator.cpp -O3 -march=native -flto -static
clang++ -std=c++20 -c -o obj/benchmark.o source/benchmark.cpp -O3 -march=native -flto -static
clang++ -std=c++20 -c -o obj/bitboard.o source/bitboard.cpp -O3 -march=native -flto -static
clang++ -std=c++20 -c -o obj/board.o source/board.cpp -O3 -march=native -flto -static
clang++ -std=c++20 -c -o obj/datagen.o source/datagen.cpp -O3 -march=native -flto -static
clang++ -std=c++20 -c -o obj/main.o source/main.cpp -O3 -march=native -flto -static
clang++ -std=c++20 -c -o obj/movegen.o source/movegen.cpp -O3 -march=native -flto -static
clang++ -std=c++20 -c -o obj/nnue.o source/nnue.cpp -O3 -march=native -flto -static
clang++ -std=c++20 -c -o obj/perft.o source/perft.cpp -O3 -march=native -flto -static
clang++ -std=c++20 -c -o obj/search.o source/search.cpp -O3 -march=native -flto -static
clang++ -std=c++20 -c -o obj/tests.o source/tests.cpp -O3 -march=native -flto -static
clang++ -std=c++20 -c -o obj/tt.o source/tt.cpp -O3 -march=native -flto -static
clang++ -std=c++20 -c -o obj/uci.o source/uci.cpp -O3 -march=native -flto -static
clang++ -std=c++20 -c -o obj/utils.o source/utils.cpp -O3 -march=native -flto -static
In file included from source/accumulator.cpp:1:
In file included from source/accumulator.h:2:
source/nnue.h:11:11: error: unknown type name 'usize'
   11 | constexpr usize ALIGNMENT = 64;
      |           ^
In file included from source/search.cpp:1:
In file included from source/search.h:2:
In file included from source/board.h:6:
In file included from source/accumulator.h:2:
source/nnue.h:11:11: error: unknown type name 'usize'
   11 | constexpr usize ALIGNMENT = 64;
      |           ^
In file included from source/tt.cpp:1:
In file included from source/tt.h:2:
In file included from source/board.h:6:
In file included from source/accumulator.h:2:
source/nnue.h:11:11: error: unknown type name 'usize'
   11 | constexpr usize ALIGNMENT = 64;
      |           ^
In file included from source/main.cpp:1:
In file included from source/board.h:6:
In file included from source/accumulator.h:2:
source/nnue.h:11:11: error: unknown type name 'usize'
   11 | constexpr usize ALIGNMENT = 64;
      |           ^
In file included from source/movegen.cpp:1:
In file included from source/movegen.h:4:
In file included from source/board.h:6:
In file included from source/accumulator.h:2:
source/nnue.h:11:11: error: unknown type name 'usize'
   11 | constexpr usize ALIGNMENT = 64;
      |           ^
In file included from source/uci.cpp:1:
In file included from source/uci.h:3:
In file included from source/board.h:6:
In file included from source/accumulator.h:2:
source/nnue.h:11:11: error: unknown type name 'usize'
   11 | constexpr usize ALIGNMENT = 64;
      |           ^
In file included from source/board.cpp:1:
In file included from source/board.h:6:
In file included from source/accumulator.h:2:
source/nnue.h:11:11: error: unknown type name 'usize'
   11 | constexpr usize ALIGNMENT = 64;
      |           ^
In file included from source/perft.cpp:1:
In file included from source/perft.h:2:
In file included from source/board.h:6:
In file included from source/accumulator.h:2:
source/nnue.h:11:11: error: unknown type name 'usize'
   11 | constexpr usize ALIGNMENT = 64;
      |           ^
In file included from source/tt.cpp:1:
source/tt.h:46:34: warning: implicit conversion from 'int' to 'const int16_t' (aka 'const short') changes value from 111111 to -19961 [-Wconstant-conversion]
   46 | constexpr int16_t invalidEntry = 111111;
      |                   ~~~~~~~~~~~~   ^~~~~~
In file included from source/utils.cpp:1:
In file included from source/utils.h:7:
In file included from source/board.h:6:
In file included from source/accumulator.h:2:
source/nnue.h:11:11: error: unknown type name 'usize'
   11 | constexpr usize ALIGNMENT = 64;
      |           ^
1 error generated.
make: *** [Makefile:33: obj/accumulator.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from source/nnue.cpp:4:
source/nnue.h:11:11: error: unknown type name 'usize'
   11 | constexpr usize ALIGNMENT = 64;
      |           ^
1 warning and 1 error generated.
make: *** [Makefile:33: obj/tt.o] Error 1
In file included from source/benchmark.cpp:6:
In file included from source/search.h:2:
In file included from source/board.h:6:
In file included from source/accumulator.h:2:
source/nnue.h:11:11: error: unknown type name 'usize'
   11 | constexpr usize ALIGNMENT = 64;
      |           ^
In file included from source/tests.cpp:5:
In file included from source/utils.h:7:
In file included from source/board.h:6:
In file included from source/accumulator.h:2:
source/nnue.h:11:11: error: unknown type name 'usize'
   11 | constexpr usize ALIGNMENT = 64;
      |           ^
1 error generated.
make: *** [Makefile:33: obj/utils.o] Error 1
In file included from source/board.cpp:3:
source/tt.h:46:34: warning: implicit conversion from 'int' to 'const int16_t' (aka 'const short') changes value from 111111 to -19961 [-Wconstant-conversion]
   46 | constexpr int16_t invalidEntry = 111111;
      |                   ~~~~~~~~~~~~   ^~~~~~
1 error generated.
make: *** [Makefile:33: obj/movegen.o] Error 1
1 warning and 1 error generated.
make: *** [Makefile:33: obj/board.o] Error 1
In file included from source/datagen.cpp:7:
In file included from source/datagen.h:2:
In file included from source/board.h:6:
In file included from source/accumulator.h:2:
source/nnue.h:11:11: error: unknown type name 'usize'
   11 | constexpr usize ALIGNMENT = 64;
      |           ^
In file included from source/tests.cpp:6:
In file included from source/search.h:8:
source/tt.h:46:34: warning: implicit conversion from 'int' to 'const int16_t' (aka 'const short') changes value from 111111 to -19961 [-Wconstant-conversion]
   46 | constexpr int16_t invalidEntry = 111111;
      |                   ~~~~~~~~~~~~   ^~~~~~
In file included from source/search.cpp:1:
In file included from source/search.h:8:
source/tt.h:46:34: warning: implicit conversion from 'int' to 'const int16_t' (aka 'const short') changes value from 111111 to -19961 [-Wconstant-conversion]
   46 | constexpr int16_t invalidEntry = 111111;
      |                   ~~~~~~~~~~~~   ^~~~~~
In file included from source/nnue.cpp:8:
In file included from source/search.h:8:
source/tt.h:46:34: warning: implicit conversion from 'int' to 'const int16_t' (aka 'const short') changes value from 111111 to -19961 [-Wconstant-conversion]
   46 | constexpr int16_t invalidEntry = 111111;
      |                   ~~~~~~~~~~~~   ^~~~~~
In file included from source/uci.cpp:9:
In file included from source/search.h:8:
source/tt.h:46:34: warning: implicit conversion from 'int' to 'const int16_t' (aka 'const short') changes value from 111111 to -19961 [-Wconstant-conversion]
   46 | constexpr int16_t invalidEntry = 111111;
      |                   ~~~~~~~~~~~~   ^~~~~~
1 error generated.
make: *** [Makefile:33: obj/perft.o] Error 1
1 warning and 1 error generated.
make: *** [Makefile:33: obj/tests.o] Error 1
In file included from source/datagen.cpp:9:
In file included from source/search.h:8:
source/tt.h:46:34: warning: implicit conversion from 'int' to 'const int16_t' (aka 'const short') changes value from 111111 to -19961 [-Wconstant-conversion]
   46 | constexpr int16_t invalidEntry = 111111;
      |                   ~~~~~~~~~~~~   ^~~~~~
In file included from source/benchmark.cpp:6:
In file included from source/search.h:8:
source/tt.h:46:34: warning: implicit conversion from 'int' to 'const int16_t' (aka 'const short') changes value from 111111 to -19961 [-Wconstant-conversion]
   46 | constexpr int16_t invalidEntry = 111111;
      |                   ~~~~~~~~~~~~   ^~~~~~
In file included from source/main.cpp:6:
In file included from source/search.h:8:
source/tt.h:46:34: warning: implicit conversion from 'int' to 'const int16_t' (aka 'const short') changes value from 111111 to -19961 [-Wconstant-conversion]
   46 | constexpr int16_t invalidEntry = 111111;
      |                   ~~~~~~~~~~~~   ^~~~~~
1 warning and 1 error generated.
make: *** [Makefile:33: obj/uci.o] Error 1
1 warning and 1 error generated.
make: *** [Makefile:33: obj/datagen.o] Error 1
1 warning and 1 error generated.
make: *** [Makefile:33: obj/search.o] Error 1
source/nnue.cpp:44:9: warning: Using AVX512 NNUE inference [-W#pragma-messages]
   44 | #pragma message("Using AVX512 NNUE inference")
      |         ^
1 warning and 1 error generated.
make: *** [Makefile:33: obj/benchmark.o] Error 1
1 warning and 1 error generated.
make: *** [Makefile:33: obj/main.o] Error 1
2 warnings and 1 error generated.
make: *** [Makefile:33: obj/nnue.o] Error 1