Stockfish 1.7.1 for Mac OS X

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

Tord Romstad
Posts: 1808
Joined: Wed Mar 08, 2006 9:19 pm
Location: Oslo, Norway

Stockfish 1.7.1 for Mac OS X

Post by Tord Romstad »

Hi all,

The Mac OS X version of Stockfish 1.7.1 for Mac OS X is now finally available for download from our web site. This is almost identical to the test version I posted in the main Stockfish 1.7.1 thread two days back, but has a very slightly faster 64-bit binary, and some extremely minor bug fixes in the GUI. The program requires an Intel Mac (please let me know if someone needs a PowerPC version) and Mac OS X 10.5 or later. Actually it has only been tested on OS X 10.6.3, but I think it should work in 10.5 as well.

Thanks to everyone who helped me test this!

Tord
schlucke
Posts: 58
Joined: Thu Apr 09, 2009 1:38 pm

Re: Stockfish 1.7.1 for Mac OS X

Post by schlucke »

Thank you very much for this great engine for Mac users! We now have a chess engine equivalent to Rybka on our Macs and that is really cool :)

As you mentioned the GUI is not state of the art, but it _works_! And perhaps - as time goes bye - it will be improved. Far more fun to play with than with Scid (that has his advantages in other areas).

Vielen, vielen Dank!

Holger
IanO
Posts: 496
Joined: Wed Mar 08, 2006 9:45 pm
Location: Portland, OR

Re: Stockfish 1.7.1 for Mac OS X

Post by IanO »

Tord Romstad wrote:The program requires an Intel Mac (please let me know if someone needs a PowerPC version) and Mac OS X 10.5 or later. Actually it has only been tested on OS X 10.6.3, but I think it should work in 10.5 as well.
Apparently not. The app is fine, but I get this exception (sf171 quit unexpectedly) as soon as the engine loads.

Code: Select all

Dyld Error Message:
  unknown required load command 0x80000022
Ian
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Stockfish 1.7.1 for Mac OS X

Post by zullil »

IanO wrote:
Tord Romstad wrote:The program requires an Intel Mac (please let me know if someone needs a PowerPC version) and Mac OS X 10.5 or later. Actually it has only been tested on OS X 10.6.3, but I think it should work in 10.5 as well.
Apparently not. The app is fine, but I get this exception (sf171 quit unexpectedly) as soon as the engine loads.

Code: Select all

Dyld Error Message:
  unknown required load command 0x80000022
Ian
Perhaps Tord needs to recompile with $CFLAGS = -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
Max
Posts: 247
Joined: Tue Apr 13, 2010 10:41 am

Re: Stockfish 1.7.1 for Mac OS X

Post by Max »

Hi Tord,

unfortunately the app does not start on my MacBook running OSX 10.5.8 (Core 2 Duo). Got this error message instead:

Code: Select all

Process:         sf171 [870]
Path:            /Applications/Stockfish.app/Contents/Resources/sf171
Identifier:      sf171
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  Stockfish [868]

Interval Since Last Report:          44522 sec
Crashes Since Last Report:           1
Per-App Interval Since Last Report:  0 sec
Per-App Crashes Since Last Report:   1

Date/Time:       2010-04-13 10:34:28.526 +0200
OS Version:      Mac OS X 10.5.8 (9L31a)
Report Version:  6
Anonymous UUID:  F813EF56-8047-37AB-9B0F-D17835F1C3BB

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0

Dyld Error Message:
  unknown required load command 0x80000022

Nothing special running on my mac, all Apple updates are done.

Any idea?

All the best,
Max
Christopher Conkie
Posts: 6073
Joined: Sat Apr 01, 2006 9:34 pm
Location: Scotland

Re: Stockfish 1.7.1 for Mac OS X

Post by Christopher Conkie »

Max wrote:Hi Tord,

unfortunately the app does not start on my MacBook running OSX 10.5.8 (Core 2 Duo). Got this error message instead:

Code: Select all

Process:         sf171 [870]
Path:            /Applications/Stockfish.app/Contents/Resources/sf171
Identifier:      sf171
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  Stockfish [868]

Interval Since Last Report:          44522 sec
Crashes Since Last Report:           1
Per-App Interval Since Last Report:  0 sec
Per-App Crashes Since Last Report:   1

Date/Time:       2010-04-13 10:34:28.526 +0200
OS Version:      Mac OS X 10.5.8 (9L31a)
Report Version:  6
Anonymous UUID:  F813EF56-8047-37AB-9B0F-D17835F1C3BB

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0

Dyld Error Message:
  unknown required load command 0x80000022

Nothing special running on my mac, all Apple updates are done.

Any idea?

All the best,
Max
Do you have execute/write permission on the folder sf171?

Christopher
Max
Posts: 247
Joined: Tue Apr 13, 2010 10:41 am

Re: Stockfish 1.7.1 for Mac OS X

Post by Max »

Christopher Conkie wrote: Do you have execute/write permission on the folder sf171?

Christopher
sf171 is a file with this permissions:

Code: Select all

ls -l Stockfish.app/Contents/Resources/sf171
-rwxr-xr-x  1 max  staff  572740 12 Apr 22:22 Stockfish.app/Contents/Resources/sf171
Thanks,
Max
Tord Romstad
Posts: 1808
Joined: Wed Mar 08, 2006 9:19 pm
Location: Oslo, Norway

Re: Stockfish 1.7.1 for Mac OS X

Post by Tord Romstad »

Max wrote:Hi Tord,

unfortunately the app does not start on my MacBook running OSX 10.5.8 (Core 2 Duo). Got this error message instead:

Code: Select all

Process:         sf171 [870]
Path:            /Applications/Stockfish.app/Contents/Resources/sf171
Identifier:      sf171
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  Stockfish [868]

Interval Since Last Report:          44522 sec
Crashes Since Last Report:           1
Per-App Interval Since Last Report:  0 sec
Per-App Crashes Since Last Report:   1

Date/Time:       2010-04-13 10:34:28.526 +0200
OS Version:      Mac OS X 10.5.8 (9L31a)
Report Version:  6
Anonymous UUID:  F813EF56-8047-37AB-9B0F-D17835F1C3BB

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0

Dyld Error Message:
  unknown required load command 0x80000022

Nothing special running on my mac, all Apple updates are done.

Any idea?
Hello Max,

That's the same problem Ian reported earlier in this thread: Unfortunately, it seems that the engine binary doesn't work in 10.5, even though I tried to compile a 10.5-compatible binary.
:(

I'll keep trying.
Christopher Conkie
Posts: 6073
Joined: Sat Apr 01, 2006 9:34 pm
Location: Scotland

Re: Stockfish 1.7.1 for Mac OS X

Post by Christopher Conkie »

Max wrote:
Christopher Conkie wrote: Do you have execute/write permission on the folder sf171?

Christopher
sf171 is a file with this permissions:

Code: Select all

ls -l Stockfish.app/Contents/Resources/sf171
-rwxr-xr-x  1 max  staff  572740 12 Apr 22:22 Stockfish.app/Contents/Resources/sf171
Thanks,
Max
The reason why I ask is because some cured this kind of problem by upgrading from 10.5.5 to 10.5.8. You already have 10.5.8 although, so it might be something else, like a corrupt/erroneous permissions.

The error code itself relates to LC_DYLD_INFO_ONLY which was introduced in 10.5.6. It is normally thrown as Louis says when the program is compiled on 10.6 and then run on 10.5.x.

After checking I cannot see where Tord makes an allowance for older versions.

It should be easy to recompile with -isysroot/blah.sdk and gcc -mmacox-version-min=10.5.8
Max
Posts: 247
Joined: Tue Apr 13, 2010 10:41 am

Re: Stockfish 1.7.1 for Mac OS X

Post by Max »

Tord Romstad wrote:That's the same problem Ian reported earlier in this thread: Unfortunately, it seems that the engine binary doesn't work in 10.5, even though I tried to compile a 10.5-compatible binary.
:(

I'll keep trying.
Well, that are indeed good news! :D Looks like a compile of the engine only on _my 10.5 system_ and copied as sf171 into Stockfish.app/Contents/Resources/ should solve this, right?

Ever wondered what this 5gb Xcode developer folder is good for. ;) I'll try my very best.

Thanks,
Max