Skip to content

Compiling Fairy Stockfish

Fabian Fichter edited this page Jul 27, 2021 · 17 revisions

This page is about compiling Fairy-Stockfish from source in case you want to use a development version. Otherwise, you can just download a binary from the releases. You can also get automatically built Windows binaries for development versions from the github actions. Just click on the most recent run and then download the artifact ZIP (you need to be logged in on github), which contains the exe files.

Compiling Fairy-Stockfish works analogous to official Stockfish.

Compiling version for large boards

Just add largeboards=yes to your normal make command, e.g., use make build ARCH=x86-64 largeboards=yes instead of make build ARCH=x86-64. It is required to do a make clean before compiling the large-board version in order to avoid mixing up object files of both versions.

Compiling on Windows

See https://github.com/glinscott/fishtest/wiki/Building-stockfish-on-Windows for instructions on how to compile Stockfish on Windows. It works analogous for Fairy-Stockfish, you just need to clone/download this repository instead of official Stockfish, i.e., replace https://github.com/official-stockfish/Stockfish by https://github.com/ianfab/Fairy-Stockfish and Stockfish-master by Fairy-Stockfish-master.

Compiling on MacOS

See https://github.com/glinscott/fishtest/wiki/Building-Stockfish-on-macOS for instructions on how to compile Stockfish on MacOS. It works analogous for Fairy-Stockfish, you just need to clone/download this repository instead of official Stockfish.

Troubleshooting

If you encounter errors when compiling with certain compilers or hardware, please create an issue. Most of the common compilers (gcc, clang, mingw, MSVC), OS (Windows/Linux), and hardware (64/32 bit) are tested and should work.