[*] Performing initial build for profiling...
cmake -B Build -G Ninja \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_C_COMPILER=clang \
	-DCMAKE_CXX_COMPILER=clang++ \
	-DBUILD_NATIVE=ON \
	-DPGO=ON
-- The C compiler identification is Clang 20.1.2
-- The CXX compiler identification is Clang 20.1.2
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- PGO: Enabled
-- PGO: No existing profile data found. Compiling with instrumentation.
-- Setting CPM.cmake location to /tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/Build/cmake/CPM_0.40.8.cmake
-- CPM.cmake was not found at /tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/Build/cmake/CPM_0.40.8.cmake
-- Attempt: 1/3: Downloading CPM.cmake...
-- CPM.cmake was found at /tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/Build/cmake/CPM_0.40.8.cmake
-- CPM: Adding package MantaRay@0 (1c547d179c7cdf4f24e4f8a1fea228c6178d0ae2)
-- Setting CPM.cmake location to /tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/Build/_deps/mantaray-build/cmake/CPM_0.40.8.cmake
-- CPM.cmake was not found at /tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/Build/_deps/mantaray-build/cmake/CPM_0.40.8.cmake
-- Attempt: 1/3: Downloading CPM.cmake...
-- CPM.cmake was found at /tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/Build/_deps/mantaray-build/cmake/CPM_0.40.8.cmake
-- CPM: Adding package nanothread@ (master)
-- nanothread: targeting the native CPU architecture (specify NANOTHREAD_NATIVE_FLAGS to change this).
-- Generating Information.h
-- Version : 0.1
-- Codename: Starfish
-- Configured to build executable
-- NANOTHREAD COMPILATION: -march=native
-- CXX         FLAGS:  -march=native -flto=full -fprofile-instr-generate=/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/Build/pgo.profraw
-- CXX RELEASE FLAGS: -O3 -DNDEBUG
-- Configuring done (6.3s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/Build
cmake --build Build --config Release
[1/5] Building CXX object _deps/nanothread-build/CMakeFiles/nanothread.dir/src/queue.cpp.o
Elapsed time (seconds): 1.29735
[2/5] Building CXX object _deps/nanothread-build/CMakeFiles/nanothread.dir/src/nanothread.cpp.o
Elapsed time (seconds): 1.40645
[3/5] Linking CXX static library _deps/nanothread-build/libnanothread.a
[4/5] Building CXX object CMakeFiles/StockDory.dir/src/Terminal/main.cpp.o
FAILED: CMakeFiles/StockDory.dir/src/Terminal/main.cpp.o 
/usr/bin/cmake -E time /usr/bin/clang++ -DNANOTHREAD_STATIC -I/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/Build -I/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/Build/_deps/mantaray-src/include -I/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/Build/_deps/nanothread-src/include -march=native -flto=full -fprofile-instr-generate=/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/Build/pgo.profraw -O3 -DNDEBUG -std=gnu++23 -MD -MT CMakeFiles/StockDory.dir/src/Terminal/main.cpp.o -MF CMakeFiles/StockDory.dir/src/Terminal/main.cpp.o.d -o CMakeFiles/StockDory.dir/src/Terminal/main.cpp.o -c /tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/main.cpp
In file included from /tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/main.cpp:10:
In file included from /tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/BenchHash.h:13:
/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/../Engine/Search.h:99:30: error: no member named 'atomic_uint64_t' in namespace 'std'
   99 |         std::shared_ptr<std::atomic_uint64_t>  Nodes = nullptr;
      |                         ~~~~~^
/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/../Engine/Search.h:116:43: error: no member named 'atomic_uint64_t' in namespace 'std'
  116 |               Nodes(std::make_shared<std::atomic_uint64_t>(0))
      |                                      ~~~~~^
/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/../Engine/Search.h:558:38: error: no member named 'memory_order_relaxed' in namespace 'std'
  558 |             Nodes->fetch_add(1, std::memory_order_relaxed);
      |                                 ~~~~~^
In file included from /tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/main.cpp:10:
/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/BenchHash.h:45:24: error: no viable constructor or deduction guide for deduction of template arguments of 'Search'
   45 |                 Search search (board, infinite, history, 0);
      |                        ^
/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/../Engine/Search.h:73:11: note: candidate function template not viable: requires 1 argument, but 4 were provided
   73 |     class Search
      |           ^~~~~~
/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/../Engine/Search.h:73:11: note: implicit deduction guide declared as 'template <class EventHandler = DefaultHandler> Search(Search<EventHandler>) -> Search<EventHandler>'
/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/../Engine/Search.h:110:9: note: candidate function template not viable: requires 0 arguments, but 4 were provided
  110 |         Search() = default;
      |         ^
/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/../Engine/Search.h:110:9: note: implicit deduction guide declared as 'template <class EventHandler = DefaultHandler> Search() -> Search<EventHandler>'
In file included from /tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/main.cpp:11:
In file included from /tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/UCI/UCIInterface.h:28:
/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/UCI/UCISearch.h:89:28: error: no matching constructor for initialization of 'Search' (aka 'Search<UCIHandler>')
   89 |             : EngineSearch(Search(board, timeControl, repetitionHistory, halfMoveCounter)) {}
      |                            ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/../Engine/Search.h:73:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 4 were provided
   73 |     class Search
      |           ^~~~~~
/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/../Engine/Search.h:73:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 4 were provided
   73 |     class Search
      |           ^~~~~~
/tmp/tmpl4ugr9lf/StockDory/StockDory-tmp/src/Terminal/../Engine/Search.h:110:9: note: candidate constructor not viable: requires 0 arguments, but 4 were provided
  110 |         Search() = default;
      |         ^
5 errors generated.
Elapsed time (seconds): 9.58035
ninja: build stopped: subcommand failed.
make: *** [Makefile:40: openbench] Error 1