jhonnold / berserk

UCI Chess Engine written in C
GNU General Public License v3.0
198 stars 30 forks source link

Download of network during compilation fails #562

Closed mibere closed 9 hours ago

mibere commented 1 week ago

Hi Jay,

I was able to successfully compile the current source in MSYS2

clang version 18.1.6
Target: x86_64-w64-windows-gnu
Thread model: posix

But there was an issue:

$ make pgo CC=clang ARCH=avx2
Using the current best network: berserk-d43206fe90e4.nn
Downloading berserk-d43206fe90e4.nn with wget
Downloaded network berserk-d43206fe90e4.nn failed validation
...

I guess it's the 'access denied' for https://berserk-networks.s3.amazonaws.com/berserk-d43206fe90e4.nn.

For a successful compilation I had to manually download your released network. Maybe the makefile needs to be adapted?

mibere commented 1 week ago

Side note: compilation with MSYS2 on Windows 10, is it correct that the process is performed without the '-static' flag?

clang -std=gnu11 -Wall -Wextra -Wshadow -g -O3 -flto -fprofile-instr-generate -DVERSION=\"13\" -DEVALFILE=\"berserk-d43206fe90e4.nn\" -DNDEBUG -m64 -mpopcnt -msse -msse2 -mssse3 -msse4.1 -mbmi -mfma -mavx2 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

What about

ifeq ($(OS), Windows_NT)
 ...
endif
mibere commented 9 hours ago

Closed as no feedback after two weeks.