Chess engines compilation
Moderators: Elijah, Igbo, timetraveller
-
- Forum Contributions
- Points: 12 460,00
- Posts: 55
- Joined: 27/02/2023, 12:15
- Status: Offline (Active 8 Hours, 39 Minutes ago)
- Medals: 1
- Topics: 12
- Reputation: 11
- Has thanked: 7 times
- Been thanked: 70 times
Chess engines compilation
When i try to compile, it shows " make " is not recognized as command etc.
Exist a guide with all steps ?
Exist a guide with all steps ?
-
- Founder
- Points: 31 381,00
- Forum Contributions
- Posts: 1457
- Joined: 31/10/2019, 8:50
- Status: Offline (Active 5 Hours, 9 Minutes ago)
- Medals: 2
- Topics: 217
- Reputation: 4120
- Has thanked: 655 times
- Been thanked: 3114 times
-
- Forum Contributions
- Points: 12 460,00
- Posts: 55
- Joined: 27/02/2023, 12:15
- Status: Offline (Active 8 Hours, 39 Minutes ago)
- Medals: 1
- Topics: 12
- Reputation: 11
- Has thanked: 7 times
- Been thanked: 70 times
-
- Founder
- Points: 31 381,00
- Forum Contributions
- Posts: 1457
- Joined: 31/10/2019, 8:50
- Status: Offline (Active 5 Hours, 9 Minutes ago)
- Medals: 2
- Topics: 217
- Reputation: 4120
- Has thanked: 655 times
- Been thanked: 3114 times
-
- Forum Contributions
- Points: 12 460,00
- Posts: 55
- Joined: 27/02/2023, 12:15
- Status: Offline (Active 8 Hours, 39 Minutes ago)
- Medals: 1
- Topics: 12
- Reputation: 11
- Has thanked: 7 times
- Been thanked: 70 times
Chess engines compilation
Yes i have set the environment variables to " system variables ". After i open command prompt, i change the directory, but i get this error, even if i type:
" make -j profile-build ARCH=${arch_cpu} COMP=mingw "
or
" mingw32-make profile-build ARCH=x86-64-bmi2 COMP=mingw CXX=x86_64-w64-mingw32-g++ -j %Number_Of_Processors% "
I am wrong with some ?
-
- Founder
- Points: 31 381,00
- Forum Contributions
- Posts: 1457
- Joined: 31/10/2019, 8:50
- Status: Offline (Active 5 Hours, 9 Minutes ago)
- Medals: 2
- Topics: 217
- Reputation: 4120
- Has thanked: 655 times
- Been thanked: 3114 times
Chess engines compilation
Run this command line:
show list?
Code: Select all
gcc -Q -march=native --help=target
-
- Forum Contributions
- Points: 12 460,00
- Posts: 55
- Joined: 27/02/2023, 12:15
- Status: Offline (Active 8 Hours, 39 Minutes ago)
- Medals: 1
- Topics: 12
- Reputation: 11
- Has thanked: 7 times
- Been thanked: 70 times
Chess engines compilation
Yes. Also i just solved, but just a part of problem ( the first problem was that to variable name i put " MinGW compiler " instead of " PATH ", as i put now ). So i put PATH, and it works ( few ) only with mingw32-make; now it says " no target rule for profile-build ". How i can solve it ?M.Z wrote: ↑03/07/2023, 17:24 Run this command line:show list?Code: Select all
gcc -Q -march=native --help=target
-
- Founder
- Points: 31 381,00
- Forum Contributions
- Posts: 1457
- Joined: 31/10/2019, 8:50
- Status: Offline (Active 5 Hours, 9 Minutes ago)
- Medals: 2
- Topics: 217
- Reputation: 4120
- Has thanked: 655 times
- Been thanked: 3114 times
Chess engines compilation
Which model is your CPU?
Adrian Come on Skype and we'll solve it together with teamviewer
Adrian Come on Skype and we'll solve it together with teamviewer
-
- Chief moderators
- Points: 20 167,00
- Forum Contributions
- Posts: 227
- Joined: 14/08/2022, 20:09
- Status: Offline (Active 6 Hours, 47 Minutes ago)
- Medals: 1
- Topics: 8
- Reputation: 1784
- Has thanked: 360 times
- Been thanked: 1463 times
Chess engines compilation
Is the minGW window pointing to the same directory as the source? Perhaps it cannot locate the makefile
-
- Founder
- Points: 31 381,00
- Forum Contributions
- Posts: 1457
- Joined: 31/10/2019, 8:50
- Status: Offline (Active 5 Hours, 9 Minutes ago)
- Medals: 2
- Topics: 217
- Reputation: 4120
- Has thanked: 655 times
- Been thanked: 3114 times
Chess engines compilation
Forget Ron.. i offered him help with teamviewer but he refused, he doesn't trust me
I have to learn to mind my own business
-
- Forum Contributions
- Points: 11 227,00
- Posts: 135
- Joined: 19/04/2023, 16:17
- Status: Offline (Active 2 Weeks, 4 Days, 23 Hours, 39 Minutes ago)
- Topics: 8
- Reputation: 170
- Has thanked: 77 times
- Been thanked: 232 times
Chess engines compilation
Hi,Marco.I've just try one more time to compile with MingW,but unsuccessfully.I've unzipped it (MingW) in C:,then set environment variables,restart the PC,but that is the result:
Then run this command line
and that's the list
What could be wrong?
By the way that compilation is successful by msys2.
Code: Select all
C:\Users\ZHIVKO>cd C:\Users\ZHIVKO\Polyfish20230621
C:\Users\ZHIVKO\Polyfish20230621>cd src
C:\Users\ZHIVKO\Polyfish20230621\src>mingw32-make profile-build ARCH=general-64 COMP=mingw CXX=x86_64-w64-mingw32-g++ -j14
process_begin: CreateProcess(NULL, uname -s, ...) failed.
mingw32-make: Makefile:24: pipe: No error
The system cannot find the path specified.
process_begin: CreateProcess(NULL, uname -s, ...) failed.
mingw32-make: Makefile:468: pipe: Bad file descriptor
process_begin: CreateProcess(NULL, uname -s, ...) failed.
mingw32-make: Makefile:513: pipe: Bad file descriptor
process_begin: CreateProcess(NULL, uname -s, ...) failed.
mingw32-make: Makefile:576: pipe: Bad file descriptor
The system cannot find the path specified.
The system cannot find the path specified.
'grep' is not recognized as an internal or external command,
operable program or batch file.
curl was unexpected at this time.
shasum was unexpected at this time.
"Default net: "
process_begin: CreateProcess(NULL, rm -f Polyfish Polyfish.exe *.o ./syzygy/*.o ./nnue/*.o ./nnue/features/*.o ./book/*.o ./book/polyglot/*.o ./book/ctg/*.o, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [Makefile:912: objclean] Error 2
mingw32-make: *** Waiting for unfinished jobs....
"x" was unexpected at this time.
mingw32-make: *** [Makefile:881: net] Error 255
C:\Users\ZHIVKO\Polyfish20230621\src>
Code: Select all
gcc -Q -march=native --help=target
Code: Select all
C:\Users\ZHIVKO\Polyfish20230621\src>gcc -Q -march=native --help=target
The following options are target specific:
-m128bit-long-double [enabled]
-m16 [disabled]
-m32 [disabled]
-m3dnow [disabled]
-m3dnowa [disabled]
-m64 [enabled]
-m80387 [enabled]
-m8bit-idiv [disabled]
-m96bit-long-double [disabled]
-mabi= ms
-mabm [disabled]
-maccumulate-outgoing-args [enabled]
-maddress-mode= long
-madx [disabled]
-maes [enabled]
-malign-data= compat
-malign-double [enabled]
-malign-functions= 0
-malign-jumps= 0
-malign-loops= 0
-malign-stringops [enabled]
-march= silvermont
-masm= att
-mavx [disabled]
-mavx2 [disabled]
-mavx256-split-unaligned-load [enabled]
-mavx256-split-unaligned-store [enabled]
-mavx5124fmaps [disabled]
-mavx5124vnniw [disabled]
-mavx512bitalg [disabled]
-mavx512bw [disabled]
-mavx512cd [disabled]
-mavx512dq [disabled]
-mavx512er [disabled]
-mavx512f [disabled]
-mavx512ifma [disabled]
-mavx512pf [disabled]
-mavx512vbmi [disabled]
-mavx512vbmi2 [disabled]
-mavx512vl [disabled]
-mavx512vnni [disabled]
-mavx512vpopcntdq [disabled]
-mbmi [disabled]
-mbmi2 [disabled]
-mbranch-cost=<0,5> 3
-mcall-ms2sysv-xlogues [disabled]
-mcet-switch [disabled]
-mcld [disabled]
-mclflushopt [disabled]
-mclwb [disabled]
-mclzero [disabled]
-mcmodel= [default]
-mconsole [disabled]
-mcpu=
-mcrc32 [disabled]
-mcx16 [enabled]
-mdispatch-scheduler [disabled]
-mdll [disabled]
-mdump-tune-features [disabled]
-mf16c [disabled]
-mfancy-math-387 [enabled]
-mfentry [enabled]
-mfma [disabled]
-mfma4 [disabled]
-mforce-drap [disabled]
-mforce-indirect-call [disabled]
-mfp-ret-in-387 [enabled]
-mfpmath= sse
-mfsgsbase [disabled]
-mfunction-return= keep
-mfused-madd
-mfxsr [enabled]
-mgeneral-regs-only [disabled]
-mgfni [disabled]
-mhard-float [enabled]
-mhle [disabled]
-miamcu [disabled]
-mieee-fp [enabled]
-mincoming-stack-boundary= 0
-mindirect-branch-register [disabled]
-mindirect-branch= keep
-minline-all-stringops [disabled]
-minline-stringops-dynamically [disabled]
-mintel-syntax
-mlarge-data-threshold=<number> 65536
-mlong-double-128 [disabled]
-mlong-double-64 [disabled]
-mlong-double-80 [enabled]
-mlwp [disabled]
-mlzcnt [disabled]
-mmemcpy-strategy=
-mmemset-strategy=
-mmitigate-rop [disabled]
-mmmx [enabled]
-mmovbe [enabled]
-mmovdir64b [disabled]
-mmovdiri [disabled]
-mmpx [disabled]
-mms-bitfields [enabled]
-mmwaitx [disabled]
-mno-align-stringops [disabled]
-mno-default [disabled]
-mno-fancy-math-387 [disabled]
-mno-push-args [disabled]
-mno-red-zone [disabled]
-mno-sse4 [disabled]
-mnop-fun-dllimport [disabled]
-mnop-mcount [disabled]
-momit-leaf-frame-pointer [disabled]
-mpc32 [disabled]
-mpc64 [disabled]
-mpc80 [disabled]
-mpclmul [enabled]
-mpcommit [disabled]
-mpconfig [disabled]
-mpe-aligned-commons [enabled]
-mpku [disabled]
-mpopcnt [enabled]
-mprefer-avx128
-mprefer-vector-width= none
-mpreferred-stack-boundary= 0
-mprefetchwt1 [disabled]
-mprfchw [enabled]
-mpush-args [enabled]
-mrdpid [disabled]
-mrdrnd [enabled]
-mrdseed [disabled]
-mrecip [disabled]
-mrecip=
-mrecord-mcount [disabled]
-mred-zone [enabled]
-mregparm= 4
-mrtd [disabled]
-mrtm [disabled]
-msahf [enabled]
-msgx [disabled]
-msha [disabled]
-mshstk [disabled]
-mskip-rax-setup [disabled]
-msoft-float [disabled]
-msse [enabled]
-msse2 [enabled]
-msse2avx [disabled]
-msse3 [enabled]
-msse4 [enabled]
-msse4.1 [enabled]
-msse4.2 [enabled]
-msse4a [disabled]
-msse5
-msseregparm [disabled]
-mssse3 [enabled]
-mstack-arg-probe [enabled]
-mstack-protector-guard-offset=
-mstack-protector-guard-reg=
-mstack-protector-guard-symbol=
-mstack-protector-guard= tls
-mstackrealign [enabled]
-mstringop-strategy= [default]
-mstv [disabled]
-mtbm [disabled]
-mthreads [disabled]
-mtls-dialect= gnu
-mtls-direct-seg-refs [disabled]
-mtune-ctrl=
-mtune= generic
-municode [disabled]
-mvaes [disabled]
-mveclibabi= [default]
-mvect8-ret-in-mem [disabled]
-mvpclmulqdq [disabled]
-mvzeroupper [enabled]
-mwbnoinvd [disabled]
-mwin32 [disabled]
-mwindows [disabled]
-mx32 [disabled]
-mxop [disabled]
-mxsave [disabled]
-mxsavec [disabled]
-mxsaveopt [disabled]
-mxsaves [disabled]
Known assembler dialects (for use with the -masm= option):
att intel
Known ABIs (for use with the -mabi= option):
ms sysv
Known code models (for use with the -mcmodel= option):
32 kernel large medium small
Valid arguments to -mfpmath=:
387 387+sse 387,sse both sse sse+387 sse,387
Known indirect branch choices (for use with the -mindirect-branch=/-mfunction-return= options):
keep thunk thunk-extern thunk-inline
Known data alignment choices (for use with the -malign-data= option):
abi cacheline compat
Known vectorization library ABIs (for use with the -mveclibabi= option):
acml svml
Known address mode (for use with the -maddress-mode= option):
long short
Known preferred register vector length (to use with the -mprefer-vector-width= option)
128 256 512 none
Known stack protector guard (for use with the -mstack-protector-guard= option):
global tls
Valid arguments to -mstringop-strategy=:
byte_loop libcall loop rep_4byte rep_8byte rep_byte unrolled_loop
vector_loop
Known TLS dialects (for use with the -mtls-dialect= option):
gnu gnu2
C:\Users\ZHIVKO\Polyfish20230621\src>
By the way that compilation is successful by msys2.
-
- Founder
- Points: 31 381,00
- Forum Contributions
- Posts: 1457
- Joined: 31/10/2019, 8:50
- Status: Offline (Active 5 Hours, 9 Minutes ago)
- Medals: 2
- Topics: 217
- Reputation: 4120
- Has thanked: 655 times
- Been thanked: 3114 times
Chess engines compilation
You need to post a screenshot of your environment variable settings first
What compiler version are you trying to use?
What compiler version are you trying to use?
-
- Forum Contributions
- Points: 11 227,00
- Posts: 135
- Joined: 19/04/2023, 16:17
- Status: Offline (Active 2 Weeks, 4 Days, 23 Hours, 39 Minutes ago)
- Topics: 8
- Reputation: 170
- Has thanked: 77 times
- Been thanked: 232 times
Chess engines compilation
First I set environment settings variable like in your post,Marco
That's all I've done and the result is my post upper.Then I set environment settings variable like in that video and they are set in this way
Then the result is
Then I've done all of that your post
And I've installed wget,but the result is the same
That is compiler version
Code: Select all
Environment Variables
Add the C:\MinGW\mingw32\bin folder to your Windows Path variable.
C:\MinGW\mingw32\bin
Add the C:\MinGW\mingw64\bin folder to your Windows Path variable.
C:\MinGW\mingw64\bin
Then the result is
Code: Select all
C:\Users\ZHIVKO\Polyfish20230621\src>mingw32-make profile-build ARCH=general-64 COMP=mingw CXX=x86_64-w64-mingw32-g++ -j14
Default net: nn-78bacfcee510.nnue
Neither curl nor wget is installed. Install one of these tools unless the net has been downloaded manually
shasum / sha256sum not found, skipping net validation
No net found and download not possible
mingw32-make: *** [Makefile:884: net] Error 1
mingw32-make: *** Waiting for unfinished jobs....
C:\Users\ZHIVKO\Polyfish20230621\src>
Code: Select all
Hi Massimiliano,
you have to copy to the subfolders of MinGW 32\64
32
the curl folder to:
i686-w64-mingw32\include\
file libcurl.a to:
i686-w64-mingw32\lib
64
the curl folder to:
x86_w64-mingw32\include
file libcurl.a to:
x86_w64-mingw32\lib
Curl library 32-64 Bit
Code: Select all
C:\Users\ZHIVKO\Polyfish20230621\src>mingw32-make profile-build ARCH=general-64 COMP=mingw CXX=x86_64-w64-mingw32-g++ -j14
Default net: nn-78bacfcee510.nnue
Neither curl nor wget is installed. Install one of these tools unless the net has been downloaded manually
shasum / sha256sum not found, skipping net validation
No net found and download not possible
mingw32-make: *** [Makefile:884: net] Error 1
mingw32-make: *** Waiting for unfinished jobs....
C:\Users\ZHIVKO\Polyfish20230621\src>
Code: Select all
gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)
-
- Founder
- Points: 31 381,00
- Forum Contributions
- Posts: 1457
- Joined: 31/10/2019, 8:50
- Status: Offline (Active 5 Hours, 9 Minutes ago)
- Medals: 2
- Topics: 217
- Reputation: 4120
- Has thanked: 655 times
- Been thanked: 3114 times
-
- Forum Contributions
- Points: 5 554,00
- Posts: 134
- Joined: 02/01/2020, 1:08
- Status: Offline (Active 9 Hours, 53 Minutes ago)
- Medals: 1
- Topics: 13
- Reputation: 149
- Has thanked: 233 times
- Been thanked: 264 times
Chess engines compilation
Hi, Marco,
Could you help me update SF MZ 240623 in order to adapt this to new nnue file? I've tried just to edit the name of nnue with last master net, but engine cannot run properly...
Thank you!
Could you help me update SF MZ 240623 in order to adapt this to new nnue file? I've tried just to edit the name of nnue with last master net, but engine cannot run properly...
Thank you!