jhonnold / berserk

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

Windows 10, Git Bash - bash: git: command not #411

Closed microsmeta closed 1 year ago

microsmeta commented 1 year ago

Hi Jay!

Cannot compile it for sse41 popcnt Windows 11, from your server and even from local folder.

installed git bash following this tutorial: https://www.youtube.com/watch?v=pIbxvTsjqLw

alex@ALESSANDROMC547 MINGW64 ~ $ git clone https://github.com/jhonnold/berserk bash: git: command not found

alex@ALESSANDROMC547 MINGW64 ~/berserk9-220927/src $ make -j build ARCH=x86-64-sse41-popcnt COMP=mingw cc1.exe: error: CPU you selected does not support x86-64 instruction set make: *** No rule to make target 'build'. Stop.

Usually something like:

make -j build ARCH=x86-64-sse41-popcnt COMP=mingw ; make profile-build ARCH=x86-64-sse41-popcnt COMP=mingw works fine for most engines on Windows 11 ARM64

Compiled last dev build 220926 on Mac M1 (simply removing -march=native from Makefile) following your github instructions and it works perfectly without a single crash!!

jhonnold commented 1 year ago

bash: git: command not found

This is not an issue with Berserk, this is an issue with your system not having git or recognizing where it is.

make -j build ARCH=x86-64-sse41-popcnt COMP=mingw

I'm not sure where you got this make command or why you think it would work for Berserk. If you have gcc installed on your system, then running make from the src directory should give you a reasonable build for your system, while make pgo will give you an optimized one.

Compiled last dev build 220926 on Mac M1 (simply removing -march=native from Makefile)

Removing -march=native from the makefile is going to result in significantly weaker binaries.

microsmeta commented 1 year ago

Thank you dear!

Temporary removed git call from makefile (already downloaded net with mac): make PGO doesn't work, but make basic yes!!! (Even saying that my processor isn't supported). Without -march=native it's still very strong and fast on Mac M1, now I'll test it on Windows 11 ARM64 sse41 popcnt or I will use your older x64.exe build or wait your berserk 10 final release.

Thank you again for your kind support! Alex

@.*** MINGW64 ~/berserk9-220927/src

$ make basic

cc1.exe: error: CPU you selected does not support x86-64 instruction set

gcc -std=gnu11 -Wall -Wextra -Wshadow -Werror -O3 -flto -g -DVERSION=\"202209251606\" -DEVALFILE=\"networks/berserk-c982d9682d4e.nn\" -DNDEBUG *.c pyrrhic/tbprobe.c -pthread -lm -o berserk

[image: Screenshot at Sep 28 18-08-00.png]

Il giorno mer 28 set 2022 alle ore 16:53 Jay Honnold < @.***> ha scritto:

bash: git: command not found

This is not an issue with Berserk, this is an issue with your system not having git or recognizing where it is.

make -j build ARCH=x86-64-sse41-popcnt COMP=mingw

I'm not sure where you got this make command or why you think it would work for Berserk. If you have gcc installed on your system, then running make from the src directory should give you a reasonable build for your system, while make pgo will give you an optimized one.

Compiled last dev build 220926 on Mac M1 (simply removing -march=native from Makefile)

Removing -march=native from the makefile is going to result in significantly weaker binaries.

— Reply to this email directly, view it on GitHub https://github.com/jhonnold/berserk/issues/411#issuecomment-1261034247, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAV7W6H37LBE5ZJ5PCKGXLWARLXHANCNFSM6AAAAAAQXPW4YE . You are receiving this because you authored the thread.Message ID: @.***>

microsmeta commented 1 year ago

[image: BERSERK.png]

ALL FINE with my build, you are a very skilled chess developer. Best FREE open source engine!

Il giorno mer 28 set 2022 alle ore 18:16 Alex M @.***> ha scritto:

Thank you dear!

Temporary removed git call from makefile (already downloaded net with mac): make PGO doesn't work, but make basic yes!!! (Even saying that my processor isn't supported). Without -march=native it's still very strong and fast on Mac M1, now I'll test it on Windows 11 ARM64 sse41 popcnt or I will use your older x64.exe build or wait your berserk 10 final release.

Thank you again for your kind support! Alex

@.*** MINGW64 ~/berserk9-220927/src

$ make basic

cc1.exe: error: CPU you selected does not support x86-64 instruction set

gcc -std=gnu11 -Wall -Wextra -Wshadow -Werror -O3 -flto -g -DVERSION=\"202209251606\" -DEVALFILE=\"networks/berserk-c982d9682d4e.nn\" -DNDEBUG *.c pyrrhic/tbprobe.c -pthread -lm -o berserk

[image: Screenshot at Sep 28 18-08-00.png]

Il giorno mer 28 set 2022 alle ore 16:53 Jay Honnold < @.***> ha scritto:

bash: git: command not found

This is not an issue with Berserk, this is an issue with your system not having git or recognizing where it is.

make -j build ARCH=x86-64-sse41-popcnt COMP=mingw

I'm not sure where you got this make command or why you think it would work for Berserk. If you have gcc installed on your system, then running make from the src directory should give you a reasonable build for your system, while make pgo will give you an optimized one.

Compiled last dev build 220926 on Mac M1 (simply removing -march=native from Makefile)

Removing -march=native from the makefile is going to result in significantly weaker binaries.

— Reply to this email directly, view it on GitHub https://github.com/jhonnold/berserk/issues/411#issuecomment-1261034247, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAV7W6H37LBE5ZJ5PCKGXLWARLXHANCNFSM6AAAAAAQXPW4YE . You are receiving this because you authored the thread.Message ID: @.***>