fatal: not a git repository (or any of the parent directories): .git clang++ -O3 -march=native -fno-finite-math-only -funroll-loops -flto -std=c++20 -DNDEBUG -static -fuse-ld=lld ./src/board.cpp ./src/Chaos.cpp ./src/eval.cpp ./src/move.cpp ./src/movegen.cpp ./src/search.cpp ./external/fmt/format.cc -o Chaos-0C83F7FB ld.lld: error: undefined symbol: pthread_mutex_destroy >>> referenced by libstdc++.a(eh_alloc.o):(.text$__tcf_0) >>> referenced by libstdc++.a(locale.o):(.text$__tcf_0) >>> referenced by libstdc++.a(locale_init.o):(.text$__tcf_0) ld.lld: error: undefined symbol: pthread_mutex_lock >>> referenced by libstdc++.a(eh_alloc.o):(.text$_ZN12_GLOBAL__N_14pool4freeEPv.constprop.0) >>> referenced by libstdc++.a(eh_alloc.o):(.text$_ZN12_GLOBAL__N_14pool8allocateEy.constprop.0) >>> referenced by libstdc++.a(guard.o):(.text$__cxa_guard_acquire) >>> referenced 6 more times ld.lld: error: undefined symbol: pthread_mutex_unlock >>> referenced by libstdc++.a(eh_alloc.o):(.text$_ZN12_GLOBAL__N_14pool4freeEPv.constprop.0) >>> referenced by libstdc++.a(eh_alloc.o):(.text$_ZN12_GLOBAL__N_14pool8allocateEy.constprop.0) >>> referenced by libstdc++.a(guard.o):(.text.unlikely.__cxa_guard_acquire) >>> referenced 10 more times ld.lld: error: undefined symbol: pthread_mutex_init >>> referenced by libstdc++.a(eh_alloc.o):(.text.startup._GLOBAL__sub_I__ZN9__gnu_cxx9__freeresEv) >>> referenced by libstdc++.a(locale.o):(.text$_ZNSt6locale5_Impl16_M_install_cacheEPKNS_5facetEy) >>> referenced by libstdc++.a(locale_init.o):(.text$_ZN12_GLOBAL__N_116get_locale_mutexEv) >>> referenced 1 more times ld.lld: error: undefined symbol: pthread_once >>> referenced by libstdc++.a(guard.o):(.text$__cxa_guard_acquire) >>> referenced by libstdc++.a(guard.o):(.text$__cxa_guard_acquire) >>> referenced by libstdc++.a(guard.o):(.text$__cxa_guard_acquire) >>> referenced 10 more times ld.lld: error: undefined symbol: pthread_cond_wait >>> referenced by libstdc++.a(guard.o):(.text$__cxa_guard_acquire) ld.lld: error: undefined symbol: pthread_cond_broadcast >>> referenced by libstdc++.a(guard.o):(.text$__cxa_guard_abort) >>> referenced by libstdc++.a(guard.o):(.text$__cxa_guard_release) ld.lld: error: undefined symbol: clock_gettime >>> referenced by libstdc++.a(chrono.o):(.text$_ZNSt6chrono3_V212system_clock3nowEv) >>> referenced by libstdc++.a(chrono.o):(.text$_ZNSt6chrono3_V212steady_clock3nowEv) ld.lld: error: undefined symbol: pthread_join >>> referenced by libstdc++.a(thread.o):(.text$_ZNSt6thread4joinEv) ld.lld: error: undefined symbol: pthread_detach >>> referenced by libstdc++.a(thread.o):(.text$_ZNSt6thread6detachEv) ld.lld: error: undefined symbol: pthread_create >>> referenced by libstdc++.a(thread.o):(.text$_ZNSt6thread15_M_start_threadESt10unique_ptrINS_6_StateESt14default_deleteIS1_EEPFvvE) >>> referenced by libstdc++.a(thread.o):(.text$_ZNSt6thread15_M_start_threadESt10shared_ptrINS_10_Impl_baseEEPFvvE) ld.lld: error: undefined symbol: pthread_num_processors_np >>> referenced by libstdc++.a(thread.o):(.text$_ZNSt6thread20hardware_concurrencyEv) ld.lld: error: undefined symbol: nanosleep >>> referenced by libstdc++.a(thread.o):(.text$_ZNSt11this_thread11__sleep_forENSt6chrono8durationIxSt5ratioILx1ELx1EEEENS1_IxS2_ILx1ELx1000000000EEEE) ld.lld: error: undefined symbol: pthread_key_create >>> referenced by R:/winlibs_staging_ucrt64/gcc-14.2.0/build_mingw/x86_64-w64-mingw32/libgcc/./gthr-default.h:721 >>> libgcc_eh.a(emutls.o):(emutls_init) ld.lld: error: undefined symbol: pthread_getspecific >>> referenced by R:/winlibs_staging_ucrt64/gcc-14.2.0/build_mingw/x86_64-w64-mingw32/libgcc/./gthr-default.h:733 >>> libgcc_eh.a(emutls.o):(__emutls_get_address) ld.lld: error: undefined symbol: pthread_setspecific >>> referenced by R:/winlibs_staging_ucrt64/gcc-14.2.0/build_mingw/x86_64-w64-mingw32/libgcc/./gthr-default.h:739 >>> libgcc_eh.a(emutls.o):(__emutls_get_address) >>> referenced by R:/winlibs_staging_ucrt64/gcc-14.2.0/build_mingw/x86_64-w64-mingw32/libgcc/./gthr-default.h:739 >>> libgcc_eh.a(emutls.o):(__emutls_get_address) clang++: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [Chaos-0C83F7FB] Error 1