Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions to build on older Macintosh #3049

Merged
merged 1 commit into from
Aug 22, 2020

Conversation

snicolet
Copy link
Member

@snicolet snicolet commented Aug 22, 2020

In recent Macs, it is possible to use the Clang compiler provided by Apple
to compile Stockfish out of the box, and this is the method used by default
in our Makefile (the Makefile sets the macosx-version-min=10.14 flag to select
the right libc++ library for the Clang compiler with recent c++17 support).

But is is quite possible to compile and run Stockfish on older Macs! Below
we describe a method to install a recent GNU compiler on these Macs, to get
the c++17 support. We have tested the following procedure to install gcc10 on
machines running Mac OS 10.7, Mac OS 10.9 and Mac OS 10.13:

  1. install XCode for your machine.

  2. install Apple command-line developer tools for XCode, by typing the following
    command in a Terminal:

      sudo xcode-select --install
  1. go to the Stockfish "src", then try a default build and run Stockfish:
      make clean
      make build
      make net
      ./stockfish
  1. if step 3 worked, congrats! You have a compiler recent enough on your Mac
    to compile Stockfish. If not, continue with step 5 to install GNU gcc10 :-)

  2. install the MacPorts package manager (https://www.macports.org/install.php),
    for instance using the fast method in the "macOS Package (.pkg) Installer"
    section of the page.

  3. use the "port" command to install the gcc10 package of MacPorts by typing the
    following command:

    sudo port install gcc10

With this step, MacPorts will install the gcc10 compiler under the name "g++-mp-10"
in the /opt/local/bin directory:

   which g++-mp-10

   /opt/local/bin/g++-mp-10       <--- answer
  1. You can now go back to the "src" directory of Stockfish, and try to build
    Stockfish by pointing at the right compiler:
   make clean
   make build COMP=gcc COMPCXX=/opt/local/bin/g++-mp-10
   make net
   ./stockfish
  1. Enjoy Stockfish on Macintosh!

closes #3049

No functional change

snicolet added a commit to snicolet/Stockfish that referenced this pull request Aug 22, 2020
Stockfish can be compiled and run on older Mac provided we install a recent
compiler on them, so we set down the macosx-version-min flag in the Makefile
from 10.14 back to 10.7.

Note: To compile Stockfish, you need a compiler with decent c++17 support.
In recent Macs, it is possible to use the Clang compiler provided by Apple, but
on older Macs it may be necessary to install a recent GNU compiler instead to
get the c++17 support. We have tested the following method to install gcc10 on
machines running Mac OS 10.7, Mac OS 10.9 and Mac OS 10.13:

1) install XCode for your machine.

2) install Apple command-line developer tools for XCode, by typing the following
   command in a Terminal:

```
      sudo xcode-select --install
```

3) go to the Stockfish "src", then try a default build and run Stockfish:

```
      make clean
      make build
      make net
      ./stockfish
```

4) if step 3 worked, congrats! You have a compiler recent enough on your Mac
to compile Stockfish. If not, continue with step 5 to install GNU gcc10 :-)

5) install the MacPorts package manager (https://www.macports.org/install.php),
for instance using the fast method in the "macOS Package (.pkg) Installer"
section of the page.

6) use the "port" command to install the gcc10 package of MacPorts by typing the
following command:

```
    sudo port install gcc10
```

With this step, MacPorts will install the gcc10 compiler under the name "g++-mp-10"
in the /opt/local/bin directory:

```
   which g++-mp-10

   /opt/local/bin/g++-mp-10       <--- answer
```

7) You can now go back to the "src" directory of Stockfish, and try to build
Stockfish by pointing at the right compiler:

```
   make clean
   make build COMP=gcc COMPCXX=/opt/local/bin/g++-mp-10
   make net
   ./stockfish
```

8) Enjoy Stockfish on Macintosh!

closes official-stockfish/Stockfish#3049

No functional change
@snicolet
Copy link
Member Author

@daylen @gsobala (or anybody with a Mac over there)

Could you confirm that these instructions to install gcc10 work on you Mac?
Or how to improve on the instructions? Thanks in advance!

@snicolet snicolet closed this Aug 22, 2020
@snicolet snicolet reopened this Aug 22, 2020
@gsobala
Copy link
Contributor

gsobala commented Aug 22, 2020

I use Homebrew rather than Macports, which also can install gcc10 with brew install gcc. I can confirm that with Homebrew both of the following work on MacOS 10.15:

make clean
make build
make net
./stockfish

and

make clean
make build COMP=gcc COMPCXX=g++-10
make net
./stockfish
make profile-build ...

also works for both the Xcode-supplied clang and brew's gcc-10.

One caveat though is that in 10.14 and 10.15 Apple have done away with /usr/include. The built-in clang should still work, but users of gcc on Mojave or Catalina may have to run through hoops as detailed in Stackoverflow.

Probably the best solution on Catalina 10.15 if there are issues is

export CPATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/

@snicolet
Copy link
Member Author

snicolet commented Aug 22, 2020

Thanks for testing!

I see that the PR change of macosx-version-min from 10.14 to 10.7 does not pass Travis CI :
https://travis-ci.org/github/official-stockfish/Stockfish/jobs/720166091
https://travis-ci.org/github/official-stockfish/Stockfish/

So I'll probably revert that change, but keep the PR text to make it clear that macosx-version-min=10.14 is meant for helping clang selecting the right libstdc++ library , while in fact the master source can be compiled and run on older Macs with gcc.

Edit: PR message and branch updated

@TonHaver
Copy link

TonHaver commented Aug 22, 2020

MacMini with OSX 10.9.5

Installing MacPorts and gcc10 went fine.
make clean
gave error make: [.depend] Error 1 (ignored)

make build COMP=gcc COMPCXX=g++-mp-10
no errors

make net
no errors

./stockfish
exited with: Illegal instruction: 4

snicolet added a commit to snicolet/Stockfish that referenced this pull request Aug 22, 2020
In recent Macs, it is possible to use the Clang compiler provided by Apple
to compile Stockfish out of the box, and this is the method used by default
in our Makefile (the Makefile use the macosx-version-min=10.14 flag to select
the right libc++ library for the Clang compiler with recent c++17 support).

But is is quite possible to compile and run Stockfish on older Macs! Below
we describe a method to install a recent GNU compiler on these Macs, to get
the c++17 support. We have tested the following procedure to install gcc10 on
machines running Mac OS 10.7, Mac OS 10.9 and Mac OS 10.13:

1) install XCode for your machine.

2) install Apple command-line developer tools for XCode, by typing the following
   command in a Terminal:

```
      sudo xcode-select --install
```

3) go to the Stockfish "src", then try a default build and run Stockfish:

```
      make clean
      make build
      make net
      ./stockfish
```

4) if step 3 worked, congrats! You have a compiler recent enough on your Mac
to compile Stockfish. If not, continue with step 5 to install GNU gcc10 :-)

5) install the MacPorts package manager (https://www.macports.org/install.php),
for instance using the fast method in the "macOS Package (.pkg) Installer"
section of the page.

6) use the "port" command to install the gcc10 package of MacPorts by typing the
following command:

```
    sudo port install gcc10
```

With this step, MacPorts will install the gcc10 compiler under the name "g++-mp-10"
in the /opt/local/bin directory:

```
   which g++-mp-10

   /opt/local/bin/g++-mp-10       <--- answer
```

7) You can now go back to the "src" directory of Stockfish, and try to build
Stockfish by pointing at the right compiler:

```
   make clean
   make build COMP=gcc COMPCXX=/opt/local/bin/g++-mp-10
   make net
   ./stockfish
```

8) Enjoy Stockfish on Macintosh!

closes official-stockfish/Stockfish#3049

No functional change
@snicolet snicolet changed the title Set Mac OS minimal version down to 10.7 Instructions to build on older Macintosh Aug 22, 2020
snicolet added a commit to snicolet/Stockfish that referenced this pull request Aug 22, 2020
In recent Macs, it is possible to use the Clang compiler provided by Apple
to compile Stockfish out of the box, and this is the method used by default
in our Makefile (the Makefile use the macosx-version-min=10.14 flag to select
the right libc++ library for the Clang compiler with recent c++17 support).

But is is quite possible to compile and run Stockfish on older Macs! Below
we describe a method to install a recent GNU compiler on these Macs, to get
the c++17 support. We have tested the following procedure to install gcc10 on
machines running Mac OS 10.7, Mac OS 10.9 and Mac OS 10.13:

1) install XCode for your machine.

2) install Apple command-line developer tools for XCode, by typing the following
   command in a Terminal:

```
      sudo xcode-select --install
```

3) go to the Stockfish "src", then try a default build and run Stockfish:

```
      make clean
      make build
      make net
      ./stockfish
```

4) if step 3 worked, congrats! You have a compiler recent enough on your Mac
to compile Stockfish. If not, continue with step 5 to install GNU gcc10 :-)

5) install the MacPorts package manager (https://www.macports.org/install.php),
for instance using the fast method in the "macOS Package (.pkg) Installer"
section of the page.

6) use the "port" command to install the gcc10 package of MacPorts by typing the
following command:

```
    sudo port install gcc10
```

With this step, MacPorts will install the gcc10 compiler under the name "g++-mp-10"
in the /opt/local/bin directory:

```
   which g++-mp-10

   /opt/local/bin/g++-mp-10       <--- answer
```

7) You can now go back to the "src" directory of Stockfish, and try to build
Stockfish by pointing at the right compiler:

```
   make clean
   make build COMP=gcc COMPCXX=/opt/local/bin/g++-mp-10
   make net
   ./stockfish
```

8) Enjoy Stockfish on Macintosh!

closes official-stockfish/Stockfish#3049

No functional change
@snicolet
Copy link
Member Author

snicolet commented Aug 22, 2020

@TonHaver

./stockfish
exited with: Illegal instruction: 4

This "Illegal instruction" means that the Mac Mini processor is not able to use the processor architecture selected by a default build (ie ARCH=x86-64-modern)

Can you try to use the list of architectures in make help in descending order from top to bottom, and find the first one working for you, and report?

x86-64-vnni
x86-64-avx512
x86-64-bmi2
x86-64-avx2
x86-64-sse41-popcnt
x86-64-modern
x86-64-ssse3
x86-64-sse3-popcnt
x86-64
x86-32-sse41-popcnt
x86-32-sse2
x86-32
ppc-64
ppc-32
armv7
armv7-neon
armv8
apple-silicon
general-64
general-32

For instance testing the first one of the list would be

make clean
make build  ARCH=x86-64-vnni  COMP=gcc COMPCXX=g++-mp-10    -j
make net
./stockfish

and then you change the ARCH=blah parameter, etc.

snicolet added a commit to snicolet/Stockfish that referenced this pull request Aug 22, 2020
In recent Macs, it is possible to use the Clang compiler provided by Apple
to compile Stockfish out of the box, and this is the method used by default
in our Makefile (the Makefile sets the macosx-version-min=10.14 flag to select
the right libc++ library for the Clang compiler with recent c++17 support).

But is is quite possible to compile and run Stockfish on older Macs! Below
we describe a method to install a recent GNU compiler on these Macs, to get
the c++17 support. We have tested the following procedure to install gcc10 on
machines running Mac OS 10.7, Mac OS 10.9 and Mac OS 10.13:

1) install XCode for your machine.

2) install Apple command-line developer tools for XCode, by typing the following
   command in a Terminal:

```
      sudo xcode-select --install
```

3) go to the Stockfish "src", then try a default build and run Stockfish:

```
      make clean
      make build
      make net
      ./stockfish
```

4) if step 3 worked, congrats! You have a compiler recent enough on your Mac
to compile Stockfish. If not, continue with step 5 to install GNU gcc10 :-)

5) install the MacPorts package manager (https://www.macports.org/install.php),
for instance using the fast method in the "macOS Package (.pkg) Installer"
section of the page.

6) use the "port" command to install the gcc10 package of MacPorts by typing the
following command:

```
    sudo port install gcc10
```

With this step, MacPorts will install the gcc10 compiler under the name "g++-mp-10"
in the /opt/local/bin directory:

```
   which g++-mp-10

   /opt/local/bin/g++-mp-10       <--- answer
```

7) You can now go back to the "src" directory of Stockfish, and try to build
Stockfish by pointing at the right compiler:

```
   make clean
   make build COMP=gcc COMPCXX=/opt/local/bin/g++-mp-10
   make net
   ./stockfish
```

8) Enjoy Stockfish on Macintosh!

closes official-stockfish/Stockfish#3049

No functional change
@TonHaver
Copy link

I was lucky, worked already on the second item on the list :-)
x86-64-avx512

snicolet added a commit to snicolet/Stockfish that referenced this pull request Aug 22, 2020
In recent Macs, it is possible to use the Clang compiler provided by Apple
to compile Stockfish out of the box, and this is the method used by default
in our Makefile (the Makefile sets the macosx-version-min=10.14 flag to select
the right libc++ library for the Clang compiler with recent c++17 support).

But it is quite possible to compile and run Stockfish on older Macs! Below
we describe a method to install a recent GNU compiler on these Macs, to get
the c++17 support. We have tested the following procedure to install gcc10 on
machines running Mac OS 10.7, Mac OS 10.9 and Mac OS 10.13:

1) install XCode for your machine.

2) install Apple command-line developer tools for XCode, by typing the following
   command in a Terminal:

```
      sudo xcode-select --install
```

3) go to the Stockfish "src", then try a default build and run Stockfish:

```
      make clean
      make build
      make net
      ./stockfish
```

4) if step 3 worked, congrats! You have a compiler recent enough on your Mac
to compile Stockfish. If not, continue with step 5 to install GNU gcc10 :-)

5) install the MacPorts package manager (https://www.macports.org/install.php),
for instance using the fast method in the "macOS Package (.pkg) Installer"
section of the page.

6) use the "port" command to install the gcc10 package of MacPorts by typing the
following command:

```
    sudo port install gcc10
```

With this step, MacPorts will install the gcc10 compiler under the name "g++-mp-10"
in the /opt/local/bin directory:

```
   which g++-mp-10

   /opt/local/bin/g++-mp-10       <--- answer
```

7) You can now go back to the "src" directory of Stockfish, and try to build
Stockfish by pointing at the right compiler:

```
   make clean
   make build COMP=gcc COMPCXX=/opt/local/bin/g++-mp-10
   make net
   ./stockfish
```

8) Enjoy Stockfish on Macintosh!

See this pull request for further discussion:
official-stockfish/Stockfish#3049

No functional change
In recent Macs, it is possible to use the Clang compiler provided by Apple
to compile Stockfish out of the box, and this is the method used by default
in our Makefile (the Makefile sets the macosx-version-min=10.14 flag to select
the right libc++ library for the Clang compiler with recent c++17 support).

But it is quite possible to compile and run Stockfish on older Macs! Below
we describe a method to install a recent GNU compiler on these Macs, to get
the c++17 support. We have tested the following procedure to install gcc10 on
machines running Mac OS 10.7, Mac OS 10.9 and Mac OS 10.13:

1) install XCode for your machine.

2) install Apple command-line developer tools for XCode, by typing the following
   command in a Terminal:

```
      sudo xcode-select --install
```

3) go to the Stockfish "src" directory, then try a default build and run Stockfish:

```
      make clean
      make build
      make net
      ./stockfish
```

4) if step 3 worked, congrats! You have a compiler recent enough on your Mac
to compile Stockfish. If not, continue with step 5 to install GNU gcc10 :-)

5) install the MacPorts package manager (https://www.macports.org/install.php),
for instance using the fast method in the "macOS Package (.pkg) Installer"
section of the page.

6) use the "port" command to install the gcc10 package of MacPorts by typing the
following command:

```
    sudo port install gcc10
```

With this step, MacPorts will install the gcc10 compiler under the name "g++-mp-10"
in the /opt/local/bin directory:

```
   which g++-mp-10

   /opt/local/bin/g++-mp-10       <--- answer
```

7) You can now go back to the "src" directory of Stockfish, and try to build
Stockfish by pointing at the right compiler:

```
   make clean
   make build COMP=gcc COMPCXX=/opt/local/bin/g++-mp-10
   make net
   ./stockfish
```

8) Enjoy Stockfish on Macintosh!

See this pull request for further discussion:
official-stockfish/Stockfish#3049

No functional change
@snicolet snicolet merged commit 3542033 into official-stockfish:master Aug 22, 2020
@snicolet
Copy link
Member Author

Merged via 3542033, thanks

@daylen
Copy link
Contributor

daylen commented Aug 23, 2020

@TonHaver Wait I'm super curious—you have a Mac Mini running OS X 10.9 Mavericks, and the processor it has supports AVX512? That's an impossible combination :) What CPU is listed when you run sysctl machdep.cpu.brand_string in Terminal?

@TonHaver
Copy link

@daylen

@TonHaver Wait I'm super curious—you have a Mac Mini running OS X 10.9 Mavericks, and the processor it has supports AVX512? That's an impossible combination :) What CPU is listed when you run sysctl machdep.cpu.brand_string in Terminal?

machdep.cpu.brand_string: Intel(R) Core(TM)2 Duo CPU P7350 @ 2.00GHz

After system restart I retried compiling

make clean
make build COMP=gcc COMPCXX=g++-mp-10 ARCH=x86-64-avx-512

Got errors like

g++-mp-10 -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -m64 -arch x86_64 -mmacosx-version-min=10.14 -DUSE_PTHREADS -DNDEBUG -O3 -mdynamic-no-pic -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -DUSE_AVX512 -mavx512f -mavx512bw -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DUSE_PEXT -mbmi2 -flto   -c -o bitboard.o bitboard.cpp
/var/folders/sc/0d3dg6vj0k32ggc6b2pzjhn40000gn/T//ccqJDpJt.s:506:15: error: invalid operand for instruction
        vpbroadcastb    %edx, %zmm0
                        ^~~~

Then again

make build COMP=gcc COMPCXX=g++-mp-10 ARCH=x86-64-avx-512

No errors during compiling,
But when running ./stockfish
Illegal instruction: 4

Then

make clean
make build COMP=gcc COMPCXX=g++-mp-10 ARCH=x86-64-avx-512

No errors when compiling, but lots of flags disappeared.

Config:
debug: 'no'
sanitize: 'no'
optimize: 'yes'
arch: 'x86_64'
bits: '64'
kernel: 'Darwin'
os: ''
prefetch: 'yes'
popcnt: 'no'
pext: 'no'
sse: 'yes'
mmx: 'no'
sse2: 'yes'
ssse3: 'no'
sse41: 'no'
avx2: 'no'
avx512: 'no'
vnni: 'no'
neon: 'no'

./stockfish compiler
Stockfish 230820 by the Stockfish developers (see AUTHORS file)

Compiled by g++ (GNUC) 10.2.0 on Apple
Compilation settings include:  64bit SSE2
__VERSION__ macro expands to: 10.2.0

So make clean is not sufficient to clean previous settings? And make compile errors somehow prevent some flags automatically a next time?
It's obvious I'm a beginner at this.
Sorry for any confusion.

@snicolet
Copy link
Member Author

make build COMP=gcc COMPCXX=g++-mp-10 ARCH=x86-64-avx-512

Note that "x86-64-avx-512" is not one of the architectures in the list, because of the hyphen before 512.

Can you try the same with make build ARCH=x86-64-avx512 COMP=gcc COMPCXX=g++-mp-10 ?

joergoster pushed a commit to joergoster/Stockfish-old that referenced this pull request Aug 23, 2020
In recent Macs, it is possible to use the Clang compiler provided by Apple
to compile Stockfish out of the box, and this is the method used by default
in our Makefile (the Makefile sets the macosx-version-min=10.14 flag to select
the right libc++ library for the Clang compiler with recent c++17 support).

But it is quite possible to compile and run Stockfish on older Macs! Below
we describe a method to install a recent GNU compiler on these Macs, to get
the c++17 support. We have tested the following procedure to install gcc10 on
machines running Mac OS 10.7, Mac OS 10.9 and Mac OS 10.13:

1) install XCode for your machine.

2) install Apple command-line developer tools for XCode, by typing the following
   command in a Terminal:

```
      sudo xcode-select --install
```

3) go to the Stockfish "src" directory, then try a default build and run Stockfish:

```
      make clean
      make build
      make net
      ./stockfish
```

4) if step 3 worked, congrats! You have a compiler recent enough on your Mac
to compile Stockfish. If not, continue with step 5 to install GNU gcc10 :-)

5) install the MacPorts package manager (https://www.macports.org/install.php),
for instance using the fast method in the "macOS Package (.pkg) Installer"
section of the page.

6) use the "port" command to install the gcc10 package of MacPorts by typing the
following command:

```
    sudo port install gcc10
```

With this step, MacPorts will install the gcc10 compiler under the name "g++-mp-10"
in the /opt/local/bin directory:

```
   which g++-mp-10

   /opt/local/bin/g++-mp-10       <--- answer
```

7) You can now go back to the "src" directory of Stockfish, and try to build
Stockfish by pointing at the right compiler:

```
   make clean
   make build COMP=gcc COMPCXX=/opt/local/bin/g++-mp-10
   make net
   ./stockfish
```

8) Enjoy Stockfish on Macintosh!

See this pull request for further discussion:
official-stockfish/Stockfish#3049

No functional change
@TonHaver
Copy link

Aarghh !! Typo :-(
Sorry.

Without hyphen got an error during compiling.

Went down the list again

make clean
make build COMP=gcc COMPCXX=g++-mp-10 ARCH=<list-item> 
./stockfish

First one which is working is: make build COMP=gcc COMPCXX=g++-mp-10 ARCH=x86-64-ssse3

./stockfish compiler
Stockfish 230820 by the Stockfish developers (see AUTHORS file)

Compiled by g++ (GNUC) 10.2.0 on Apple
Compilation settings include:  64bit SSSE3 SSE2
__VERSION__ macro expands to: 10.2.0

@snicolet
Copy link
Member Author

Nice, I am happy that you found a way to use Stockfish-NNUE on your Mac Mini.
Now you may try to get a few % of speed by doing a profile-build..

And btw, using the -j option for make might help with the compilation time, too, so:

make -j profile-build COMP=gcc COMPCXX=g++-mp-10 ARCH=x86-64-ssse3

Good catch by @daylen !

@TonHaver
Copy link

The MacMini goes back in the closet. :-)
I just revived it to confirm your install description is working on older macs.

(I even tried it on an old MacBook white, running on 10.6.8 Snow Leopard, but didn't succeed in installing gcc there. Macports is not available below 10.7, Homebrew is not too, and Tigerbrew didn't succeed in installing gcc7 or gcc6 so I gave up)

lucabrivio pushed a commit to lucabrivio/Stockfish that referenced this pull request Aug 23, 2020
In recent Macs, it is possible to use the Clang compiler provided by Apple
to compile Stockfish out of the box, and this is the method used by default
in our Makefile (the Makefile sets the macosx-version-min=10.14 flag to select
the right libc++ library for the Clang compiler with recent c++17 support).

But it is quite possible to compile and run Stockfish on older Macs! Below
we describe a method to install a recent GNU compiler on these Macs, to get
the c++17 support. We have tested the following procedure to install gcc10 on
machines running Mac OS 10.7, Mac OS 10.9 and Mac OS 10.13:

1) install XCode for your machine.

2) install Apple command-line developer tools for XCode, by typing the following
   command in a Terminal:

```
      sudo xcode-select --install
```

3) go to the Stockfish "src" directory, then try a default build and run Stockfish:

```
      make clean
      make build
      make net
      ./stockfish
```

4) if step 3 worked, congrats! You have a compiler recent enough on your Mac
to compile Stockfish. If not, continue with step 5 to install GNU gcc10 :-)

5) install the MacPorts package manager (https://www.macports.org/install.php),
for instance using the fast method in the "macOS Package (.pkg) Installer"
section of the page.

6) use the "port" command to install the gcc10 package of MacPorts by typing the
following command:

```
    sudo port install gcc10
```

With this step, MacPorts will install the gcc10 compiler under the name "g++-mp-10"
in the /opt/local/bin directory:

```
   which g++-mp-10

   /opt/local/bin/g++-mp-10       <--- answer
```

7) You can now go back to the "src" directory of Stockfish, and try to build
Stockfish by pointing at the right compiler:

```
   make clean
   make build COMP=gcc COMPCXX=/opt/local/bin/g++-mp-10
   make net
   ./stockfish
```

8) Enjoy Stockfish on Macintosh!

See this pull request for further discussion:
official-stockfish/Stockfish#3049

No functional change
@TonHaver
Copy link

@TonHaver MacPorts seems to be available down to Mac OS 10.4 (Tiger), this is
the reason why I prefered it over Homebrew in the instructions:

You're right. MacPorts is available, but g++-mp-10 stops at OSX 10.7 https://ports.macports.org/port/gcc10/summary

Did try with older g++ versions, just for fun, but didn't succeed in compiling, which isn't surprising.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants