Compiling Cfish

Moderators: Elijah, Igbo, timetraveller

Nemesis

Top contribute Forum Top Active Users
Forum Contributions
Points: 33 999,00 
Posts: 2585
Joined: 05/02/2020, 10:42
Status: Offline (Active 1 Month, 3 Days, 7 Hours, 1 Minute ago)
Medals: 2
Topics: 194
Reputation: 7481
Has thanked: 6579 times
Been thanked: 6863 times

Compiling Cfish

Post by Nemesis »

Work-In-Progress
Scorpio
Forum Contributions
Points: 6 010,00 
Posts: 1411
Joined: 31/10/2019, 21:37
Status: Offline (Active 3 Weeks, 3 Days, 20 Hours, 37 Minutes ago)
Topics: 115
Reputation: 597
Location: Usa
Has thanked: 338 times
Been thanked: 636 times

Compiling Cfish

Post by Scorpio »

janus wrote:Work-In-Progress
As we spoke in private the tutorial and related posts were moved to this new topic.
The goal was not to let the topic get "buried" under future compilations.
I hope I didn't miss any related post
pardon
Nemesis

Top contribute Forum Top Active Users
Forum Contributions
Points: 33 999,00 
Posts: 2585
Joined: 05/02/2020, 10:42
Status: Offline (Active 1 Month, 3 Days, 7 Hours, 1 Minute ago)
Medals: 2
Topics: 194
Reputation: 7481
Has thanked: 6579 times
Been thanked: 6863 times

Compiling Cfish

Post by Nemesis »

Scorpio wrote:
janus wrote:Work-In-Progress
As we spoke in private the tutorial and related posts were moved to this new topic.
The goal was not to let the topic get "buried" under future compilations.
I hope I didn't miss any related post
pardon

good_job
No I think we're OK - and a good idea !!
gens
Inactive User
Points: 50,00 
Posts: 3
Joined: 06/11/2019, 18:52
Status: Offline (Active 3 Days, 4 Hours, 5 Minutes ago)
Topics: 0
Reputation: 0
Has thanked: 40 times
Been thanked: 2 times

Compiling Cfish

Post by gens »

This is my first attempt to compile Cfish. I am working on Windows 10. I want to run a "make pgo" or “make help” in MSYS2/MINGW64 but following error comes up: “bash: make: command not found”. From where to get it and where to install?
Thanks in advance
hazsan88
Forum Contributions
Points: 6 000,00 
Posts: 130
Joined: 23/11/2019, 19:48
Status: Offline (Active 1 Year, 7 Months, 2 Weeks, 5 Days, 16 Hours, 16 Minutes ago)
Topics: 2
Reputation: 196
Has thanked: 16 times
Been thanked: 204 times

Compiling Cfish

Post by hazsan88 »

gens wrote:This is my first attempt to compile Cfish. I am working on Windows 10. I want to run a "make pgo" or “make help” in MSYS2/MINGW64 but following error comes up: “bash: make: command not found”. From where to get it and where to install?
Thanks in advance
Save Cfish-master in this folder
C:\msys64\home\Hazsan88(your pc name)
----
open MSYS2 terminal
type>>> LS
Enter>>>>
If 'Cfish-master' is visible
type>>> cd Cfish-master/src
Enter>>>>
type>>> make help
Enter>>>>
This one will be visible
► Show Spoiler
Nemesis

Top contribute Forum Top Active Users
Forum Contributions
Points: 33 999,00 
Posts: 2585
Joined: 05/02/2020, 10:42
Status: Offline (Active 1 Month, 3 Days, 7 Hours, 1 Minute ago)
Medals: 2
Topics: 194
Reputation: 7481
Has thanked: 6579 times
Been thanked: 6863 times

Compiling Cfish

Post by Nemesis »

gens wrote:This is my first attempt to compile Cfish. I am working on Windows 10. I want to run a "make pgo" or “make help” in MSYS2/MINGW64 but following error comes up: “bash: make: command not found”. From where to get it and where to install?
Thanks in advance
Try this


Go to ezwinports, https://sourceforge.net/projects/ezwinports/files/

Download make-4.2.1-without-guile-w32-bin.zip (get the version without guile)

Extract zip
Copy the contents to C:\ProgramFiles\Git\mingw64\ merging the folders, but do NOT overwrite/replace any exisiting files.

You're using Powershell right and your $PATH setup is OK ?

then type >> pacman -Syu

follow directions - should be OK now so unzip Cfish on desktop , cd into it and type -- make pgo
gens
Inactive User
Points: 50,00 
Posts: 3
Joined: 06/11/2019, 18:52
Status: Offline (Active 3 Days, 4 Hours, 5 Minutes ago)
Topics: 0
Reputation: 0
Has thanked: 40 times
Been thanked: 2 times

Compiling Cfish

Post by gens »

Thank you very much. There was no "make.exe" file, now everything works. hurrah
One more question, Why my Cfish is 535KB while the others are around 200KB. Does it matter ?
Nemesis

Top contribute Forum Top Active Users
Forum Contributions
Points: 33 999,00 
Posts: 2585
Joined: 05/02/2020, 10:42
Status: Offline (Active 1 Month, 3 Days, 7 Hours, 1 Minute ago)
Medals: 2
Topics: 194
Reputation: 7481
Has thanked: 6579 times
Been thanked: 6863 times

Compiling Cfish

Post by Nemesis »

gens wrote:Thank you very much. There was no "make.exe" file, now everything works. hurrah
One more question, Why my Cfish is 535KB while the others are around 200KB. Does it matter ?
Nope I dont think so (was the binary stripped ?) - just make sure the nnue file is in the same folder as the binary - make a habit of always dumping the nnue in the folder - saves a lot of hassle later - and not just for Cfish.

Glad it works !
Scorpio
Forum Contributions
Points: 6 010,00 
Posts: 1411
Joined: 31/10/2019, 21:37
Status: Offline (Active 3 Weeks, 3 Days, 20 Hours, 37 Minutes ago)
Topics: 115
Reputation: 597
Location: Usa
Has thanked: 338 times
Been thanked: 636 times

Compiling Cfish

Post by Scorpio »

gens wrote:Thank you very much. There was no "make.exe" file, now everything works. hurrah
One more question, Why my Cfish is 535KB while the others are around 200KB. Does it matter ?
:clap:
About the stripping, try this:

Code: Select all

strip cfish.exe
It will reduce the size by roughly half. :smile2:
gens
Inactive User
Points: 50,00 
Posts: 3
Joined: 06/11/2019, 18:52
Status: Offline (Active 3 Days, 4 Hours, 5 Minutes ago)
Topics: 0
Reputation: 0
Has thanked: 40 times
Been thanked: 2 times

Compiling Cfish

Post by gens »

Scorpio wrote:
gens wrote:Thank you very much. There was no "make.exe" file, now everything works. hurrah
One more question, Why my Cfish is 535KB while the others are around 200KB. Does it matter ?
:clap:
About the stripping, try this:

Code: Select all

strip cfish.exe
It will reduce the size by roughly half. :smile2:
224 kB. Thanks :sm36:
timon
Inactive User
Points: 50,00 
Posts: 9
Joined: 12/07/2020, 9:23
Status: Offline (Active 2 Years, 4 Months, 3 Weeks, 4 Days, 15 Minutes ago)
Topics: 0
Reputation: 0
Been thanked: 1 time

Compiling Cfish

Post by timon »

► Show Spoiler
Step 2/4. Running benchmark for pgo-build ...
./cfish bench 16 1 15 default depth nnue > /dev/null
make: *** [Makefile:857: profile-build] Error 1

i got this error xrf03 help me
Post Reply

Return to “Programming, Technical Discussions, Chess related questions etc.”