Do these binaries run on your Linux-PC or your Mac?

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

Moderator: Ras

User avatar
Roman Hartmann
Posts: 295
Joined: Wed Mar 08, 2006 8:29 pm

Re: Do these binaries run on your Linux-PC or your Mac?

Post by Roman Hartmann »

Guetti wrote:...

You can pass the -arch flag to gcc, ld, and as. The allowable values are i386 and ppc. You can specify both flags as follows:

-arch ppc -arch i386

This is what the documentation says. I just assume if you specify both flags you would get a universal binary. I never tried this myself. To make it more complicated, there are also the flags -arch ppc64 and -arch x86_64 for 64bit binaries.
Thanks, that works. It even works if I pass all the mentioned flags to the compiler. It generates a universal binary with 32-bit and 64-bit support for ppc and i386 (not that this makes much sense but nice to know).

I still don't know if the binaries are downwardcompatible, i.e. if they run on Panther if I compile them on Leopard.

best regards
Roman
ml

Re: Do these binaries run on your Linux-PC or your Mac?

Post by ml »

Let me know when the universal binaries are ready to be downloaded, and I'll check them out for you on my Mac.
Regards,
ml
Guetti

Re: Do these binaries run on your Linux-PC or your Mac?

Post by Guetti »

ml wrote:Let me know when the universal binaries are ready to be downloaded, and I'll check them out for you on my Mac.
Regards,
ml
Yes, would be nice to have another sparring partner running on Mac. I don't care how fast it is, it's even better if it is not too strong. ;)
ml

Re: Do these binaries run on your Linux-PC or your Mac?

Post by ml »

Guetti wrote:
ml wrote:Let me know when the universal binaries are ready to be downloaded, and I'll check them out for you on my Mac.
Regards,
ml
Yes, would be nice to have another sparring partner running on Mac. I don't care how fast it is, it's even better if it is not too strong. ;)
One way to limit the strength of chess engines is to run them in Virtual PC on the Mac. Windows XP is a bit sluggish under OS X, but runs at an acceptable speed under OS 9 (about 1.7 times faster, on average). Works quite well. 8-)
User avatar
Roman Hartmann
Posts: 295
Joined: Wed Mar 08, 2006 8:29 pm

Re: Do these binaries run on your Linux-PC or your Mac?

Post by Roman Hartmann »

Thanks for your offer. Here are two universal binaries which should (at least I hope so) run on ppc and i386. There is a 32-bit and a 64-bit compile. The 64-bit version runs on my intel-Mac around 20% faster than the 32-bit version.

Mac, Universal binary, 32-bit

Mac, Universal binary, 64-bit

best regards
Roman
User avatar
Roman Hartmann
Posts: 295
Joined: Wed Mar 08, 2006 8:29 pm

Re: Do these binaries run on your Linux-PC or your Mac?

Post by Roman Hartmann »

Guetti wrote:...

Yes, would be nice to have another sparring partner running on Mac. I don't care how fast it is, it's even better if it is not too strong. ;)
It won't be too strong, no worries :D

best regards
Roman

Mac, Universal binary, 32-bit

Mac, Universal binary, 64-bit
Guetti

Re: Do these binaries run on your Linux-PC or your Mac?

Post by Guetti »

Ok, works on my PowerPC G5 now.

Code: Select all

andreas% roce37_32
Roce version: 0.0370 - Roman's Own Chess Engine
Copyright (C) 2003-2007 Roman Hartmann, Switzerland. All rights reserved.
loading: Roce.cfg

roce: analyze

 D.   Time    Score  Best line
  1   0.00    0.11   Ng1-f3 
  2   0.00    0.05   Ng1-f3 ng8-f6 
  3   0.00    0.11   Nb1-c3 ng8-f6 Ng1-f3 
  4   0.01    0.05   Nb1-c3 nb8-c6 Ng1-f3 ng8-f6 
  5   0.03    0.11   e2-e4 e7-e5 Nb1-c3 bf8-d6 Ng1-f3 
  6   0.11    0.05   e2-e4 nb8-c6 Ng1-f3 e7-e5 Nb1-c3 bf8-d6 
  7   0.40    0.10   e2-e4 ng8-f6 Nb1-c3 nb8-c6 Ng1-f3 d7-d5 e4xd5 
  8   1.37    0.05   e2-e4 e7-e5 Ng1-f3 ng8-f6 Bf1-d3 bf8-d6 O-O  
                     o-o  
  9   7.00    0.11   Nb1-c3 nb8-c6 d2-d4 d7-d5 Bc1-f4 bc8-e6 Nc3-b5 
                     ra8-c8 Ng1-f3 
 10  21.22    0.05   e2-e4 e7-e5 Ng1-f3 bf8-d6 Nb1-c3 ng8-f6 Bf1-c4 
                     o-o  O-O  nb8-c6 
 11   1:09    0.10   e2-e4 e7-e5 Ng1-f3 bf8-d6 Bf1-c4 ng8-f6 Nf3-g5 
                     o-o  O-O  qd8-e7 Nb1-c3 
po>12   1:16   -0.77   e2e4 [1/20]   

roce: quit

andreas% roce37_64
Roce version: 0.0370 - Roman's Own Chess Engine
Copyright (C) 2003-2007 Roman Hartmann, Switzerland. All rights reserved.
loading: Roce.cfg

roce: analyze

 D.   Time    Score  Best line
  1   0.00    0.11   Ng1-f3 
  2   0.00    0.05   Ng1-f3 ng8-f6 
  3   0.00    0.11   Nb1-c3 ng8-f6 Ng1-f3 
  4   0.01    0.05   Nb1-c3 nb8-c6 Ng1-f3 ng8-f6 
  5   0.03    0.11   e2-e4 e7-e5 Nb1-c3 bf8-d6 Ng1-f3 
  6   0.09    0.05   e2-e4 nb8-c6 Ng1-f3 e7-e5 Nb1-c3 bf8-d6 
  7   0.37    0.10   e2-e4 ng8-f6 Nb1-c3 nb8-c6 Ng1-f3 d7-d5 e4xd5 
  8   1.29    0.05   e2-e4 e7-e5 Ng1-f3 ng8-f6 Bf1-d3 bf8-d6 O-O  
                     o-o  
  9   6.61    0.11   Nb1-c3 nb8-c6 d2-d4 d7-d5 Bc1-f4 bc8-e6 Nc3-b5 
                     ra8-c8 Ng1-f3 
 10  20.17    0.05   e2-e4 e7-e5 Ng1-f3 bf8-d6 Nb1-c3 ng8-f6 Bf1-c4 
                     o-o  O-O  nb8-c6 
 11   1:05    0.10   e2-e4 e7-e5 Ng1-f3 bf8-d6 Bf1-c4 ng8-f6 Nf3-g5 
                     o-o  O-O  qd8-e7 Nb1-c3 
top>12   1:28    0.05   e2e4 [1/20]   

ml

Re: Do these binaries run on your Linux-PC or your Mac?

Post by ml »

Roman Hartmann wrote:Thanks for your offer. Here are two universal binaries which should (at least I hope so) run on ppc and i386. There is a 32-bit and a 64-bit compile. The 64-bit version runs on my intel-Mac around 20% faster than the 32-bit version.

Mac, Universal binary, 32-bit

Mac, Universal binary, 64-bit

best regards
Roman
I tried to run the 32-bit universal binary, but it generates the following in the terminal:

Code: Select all

dyld: ./roce37_32 Undefined symbols:
./roce37_32 undefined reference to ___stdinp expected to be defined in /usr/lib/libSystem.B.dylib
./roce37_32 undefined reference to ___stdoutp expected to be defined in /usr/lib/libSystem.B.dylib
Trace/BPT trap
The Sigma 6.1 chess GUI won't recognize it as a UCI engine. Maybe there are some missing dependencies?
krazyken

Re: Do these binaries run on your Linux-PC or your Mac?

Post by krazyken »

The Universals run on my PowerPC just fine.

As for Sigma Chess, it can be a bit picky about engines. One thing that will make it claim an engine isn't UCI is if you already have 19 installed. Remove one then add the new one. It worked fine on my Sigma.


Thank you very much Roman!
krazyken

Re: Do these binaries run on your Linux-PC or your Mac?

Post by krazyken »

Well, It is a weak opponent, on my Macs (both intel and PPC) as it seems to ignore time controls. It just starts thinking and goes until it loses on time. It can be used for analysis though.