Compiling Berserk 13 (using MSYS2)

Code, algorithms, languages, construction...
Post Reply
St0nkin
Posts: 1
Joined: Sat May 04, 2024 8:48 pm

Compiling Berserk 13 (using MSYS2)

Post by St0nkin » Sat May 04, 2024 8:59 pm

Hello Everyone,

First post here and I'm VERY new to compiling chess engines and don't have a particularly solid programming foundation.

Q: How do I successfully compile Berserk 13 using MSYS2 or another free compiling environment successfully?

I've tried using the MSYS2 Clang 64 compiling environment with the information Jay Honnald provides on his Github page but I'm just too inexperienced to make it work.

Is there anyone out there who's had success compiling it? I don't mind changing out from using MSYS2 to another compiler but I'm going to need some fairly detailed instructions and I know that's a Herculean undertaking.

I was able to get Stockfish 16.1 to compile using MSYS2 but it looks like Berserk uses a different language possibly. Sorry for my ignorance.

Code: Select all

$ make pgo CC=clang && \
> ./berserk
/bin/sh: line 1: clang: command not found
Using the current best network: berserk-d43206fe90e4.nn
Downloading berserk-d43206fe90e4.nn with wget
Downloaded network berserk-d43206fe90e4.nn and verified
make ARCH=native PGOFLAGS="-fprofile-instr-generate" all
make[1]: Entering directory '/home/agibs/berserk-main/src'
/bin/sh: line 1: clang: command not found
clang -std=gnu11 -Wall -Wextra -Wshadow -g -O3 -flto -fprofile-instr-generate -DVERSION=\"13\" -DEVALFILE=\"berserk-d43206fe90e4.nn\" -DNDEBUG -march=native attacks.c bench.c berserk.c bits.c board.c eval.c history.c move.c movegen.c movepick.c perft.c random.c search.c see.c tb.c thread.c transposition.c uci.c util.c zobrist.c nn/accumulator.c nn/evaluate.c pyrrhic/tbprobe.c -pthread -lm -o berserk
make[1]: clang: No such file or directory
make[1]: *** [makefile:99: all] Error 127
make[1]: Leaving directory '/home/agibs/berserk-main/src'
make: *** [makefile:85: pgo] Error 2

Post Reply