adams161 wrote: ↑Sat Jul 02, 2022 11:22 pm
I wanted to try to compile stockfish 15 from source for Mac because i heard it could be compiled for UCI only at a smaller file size without that learning stuff. I'm having two issues. I"ve not much experience compiling c or c++ from make files or things normally made for linux.
I chmodded the make file executable but when i run it on Mac i get
./Makefile: line 23: shell: command not found
./Makefile: line 23: KERNEL: command not found
./Makefile: line 24: syntax error near unexpected token `$(KERNEL),Linux'
./Makefile: line 24: `ifeq ($(KERNEL),Linux)'
I also dont know what to set to get that smaller file size not 47 megs that has only classical uci stockfish.
Any assistance appreciated.
Mike
Terminal + HomeBrew
brew unlink stockfish
brew install stockfish --HEAD
(with --HEAD = newest development version)
Terminal + Github Stockfish Source Code
https://github.com/official-stockfish/Stockfish
cd /Users/me/Stockfish-master/src
make clean
make -j profile-build COMP=clang ARCH=apple-silicon
./stockfish compiler
Starting position:
(brew install stockfish --HEAD = 4 Mn/s)
(make build = 5 Mn/s)
(make -j profile-build ARCH=apple-silicon = 9 Mn/s)
(make profile-build COMP=clang ARCH=apple-silicon = 9 Mn/s)
(make -j profile-build COMP=clang ARCH=apple-silicon = 9.3 Mn/s)