compiling seer 2.6 how to?

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

chessica
Posts: 994
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

compiling seer 2.6 how to?

Post by chessica »

Good day, i am facing the problem to compile seer 2.6. Iam using clang and msvs 2022.

How do i do this? Has anyone done this before and can report? Thanks in advance.
User avatar
Gabor Szots
Posts: 1486
Joined: Sat Jul 21, 2018 7:43 am
Location: Budapest, Hungary
Full name: Gabor Szots

Re: compiling seer 2.6 how to?

Post by Gabor Szots »

chessica wrote: Mon Feb 27, 2023 11:49 am Good day, i am facing the problem to compile seer 2.6. Iam using clang and msvs 2022.

How do i do this? Has anyone done this before and can report? Thanks in advance.
It may not be relevant to your problem because I use GCC but what I do is:

1. Create a folder called 'weights' under the folder 'build'.
2. Into that folder I copy the newest network.
3. Change the network file name in the makefile to the one I have downloaded.
4. Run the makefile (under 'build').
Gabor Szots
CCRL testing group
chessica
Posts: 994
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: compiling seer 2.6 how to?

Post by chessica »

Thanks Gabor, on my Windows PC I have Ubuntu installed in a virtual box.
After that I was able to compile seer. a 11.9 MB file. But under Linux I can
not start it. How do I get the file out of the virtual machine and
into the Windows machine?
connor_mcmonigle
Posts: 544
Joined: Sun Sep 06, 2020 4:40 am
Full name: Connor McMonigle

Re: compiling seer 2.6 how to?

Post by connor_mcmonigle »

To compile Seer for Windows, my preferred approach is to use https://www.msys2.org/. Once you've installed msys2, you'll want to open the mingw64 msys2 environment (not the ucrt environment). You'll then want to install gcc:

Code: Select all

pacman -S mingw-w64-x86_64-gcc
Finally, you should then be able to follow the compilation instructions outlined in the README: https://github.com/connormcmonigle/seer-nnue#compiling. This will produce a native Windows binary.
chessica
Posts: 994
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: compiling seer 2.6 how to?

Post by chessica »

connor_mcmonigle wrote: Wed Mar 01, 2023 4:05 am To compile Seer for Windows, my preferred approach is to use https://www.msys2.org/. Once you've installed msys2, you'll want to open the mingw64 msys2 environment (not the ucrt environment). You'll then want to install gcc:

Code: Select all

pacman -S mingw-w64-x86_64-gcc
Finally, you should then be able to follow the compilation instructions outlined in the README: https://github.com/connormcmonigle/seer-nnue#compiling. This will produce a native Windows binary.
To compile Seer for Windows, my preferred approach is to use https://www.msys2.org/ ---> its done :-)

you'll want to open the mingw64 msys2 environment ---> its done :-)

install gcc:

Code: Select all

pacman -S mingw-w64-x86_64-gcc
---> its done

be able to follow the compilation instructions outlined in the README: ---> not working

see here:

C:\Users\Privat\Desktop\seer-nnue-2.6.0\seer-nnue-2.6.0\build>wget -O eval.bin https://github.com/connormcmonigle/seer ... 759eb2.bin
--2023-03-01 15:06:27-- https://github.com/connormcmonigle/seer ... 759eb2.bin
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/g ... tet-stream [following]
--2023-03-01 15:06:27-- https://objects.githubusercontent.com/g ... tet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 100699076 (96M) [application/octet-stream]
Saving to: 'eval.bin'

eval.bin 100%[=================================================>] 96,03M 1,43MB/s in 67s

2023-03-01 15:07:36 (1,42 MB/s) - 'eval.bin' saved [100699076/100699076]


C:\Users\Privat\Desktop\seer-nnue-2.6.0\seer-nnue-2.6.0\build>

C:\Users\Privat\Desktop\seer-nnue-2.6.0\seer-nnue-2.6.0\build>make
g++ ../src/seer.cc ../syzygy/tbprobe.c -std=c++17 -O3 -g -DNDEBUG -march=native -mtune=native -fopenmp -flto -Wall -Wextra -fconstexpr-ops-limit=1000000000 -I../include -I../incbin -I../syzygy -DEVALFILE=\"weights/0xbe759eb2.bin\" -lpthread -o seer
process_begin: CreateProcess(NULL, g++ ../src/seer.cc ../syzygy/tbprobe.c -std=c++17 -O3 -g -DNDEBUG -march=native -mtune=native -fopenmp -flto -Wall -Wextra -fconstexpr-ops-limit=1000000000 -I../include -I../incbin -I../syzygy -DEVALFILE=\"weights/0xbe759eb2.bin\" -lpthread -o seer, ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
make: *** [makefile:30: default] Error 2

This eval file seems to be in a wrong format i think.
User avatar
Gabor Szots
Posts: 1486
Joined: Sat Jul 21, 2018 7:43 am
Location: Budapest, Hungary
Full name: Gabor Szots

Re: compiling seer 2.6 how to?

Post by Gabor Szots »

What I see is that you should use make pgo EVALFILE=eval.bin, not simply make.
Gabor Szots
CCRL testing group
chessica
Posts: 994
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: compiling seer 2.6 how to?

Post by chessica »

The same in green: also not working, why?

C:\Users\Privat\Desktop\seer-nnue-2.6.0\seer-nnue-2.6.0\build>make pgo EVALFILE=eval.bin
rm -f *.gcda
process_begin: CreateProcess(NULL, rm -f *.gcda, ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
make: *** [makefile:33: pgo] Error 2
chessica
Posts: 994
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: compiling seer 2.6 how to?

Post by chessica »

chessica wrote: Tue Feb 28, 2023 3:58 pm Thanks Gabor, on my Windows PC I have Ubuntu installed in a virtual box.
After that I was able to compile seer. a 11.9 MB file. But under Linux I can
not start it. How do I get the file out of the virtual machine and
into the Windows machine?
111,9 MB
chessica
Posts: 994
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: compiling seer 2.6 how to?

Post by chessica »

chessica wrote: Tue Feb 28, 2023 3:58 pm Thanks Gabor, on my Windows PC I have Ubuntu installed in a virtual box.
After that I was able to compile seer. a 111.9 MB file. But under Linux I can
not start it. How do I get the file out of the virtual machine and
into the Windows machine?
After compiling under UBUNTU 22.04. apparently worked. I also additionally
installed Arena 3.10 beta for Linux. And lo and behold, I was able to install
the engine there successfully. :D :D :D :D :D :D

With Linux Mint 19.1 and 21.1 I was not able to compile. :(

Also under Windows10 Prof. I have not managed it. :(

Now I only have to manage the file exchange in VirtualBox.

Tips?