fishtest icon indicating copy to clipboard operation
fishtest copied to clipboard

worker: build fastchess with build=release for static linking on Windows

Open maximmasiutin opened this issue 1 month ago • 2 comments

Build fastchess with build=release to ensure static linking on Windows.

Without this, the binary depends on MSYS64 UCRT DLLs, causing nanosleep64 entry point errors or Engine didn't respond to uciok failures when run outside MSYS64.

Related: https://github.com/Disservin/fastchess/pull/950

maximmasiutin avatar Nov 23 '25 16:11 maximmasiutin

i don't understand this.. the environment you compile fastchess in, is also the one supposed to execute it.. there's no need for static linking

Disservin avatar Nov 23 '25 17:11 Disservin

msys2 ucrt64 builds an application that needs:

  • msys2 ucrt64 dlls, for fastchess they are:
  c/msys64/ucrt64/bin/libgcc_s_seh-1.dll
  c/msys64/ucrt64/bin/libwinpthread-1.dll
  c/msys64/ucrt64/bin/libstdc++-6.dll 
  • Microsoft UCRT dlls

If fastchess.exe does not find the 3 msys2 ucrt64 libraries, neither python3.exe, g++.exe, stockfish.exe should find their required libraries.

ppigazzini avatar Nov 23 '25 17:11 ppigazzini