Author: Dann Corbit
Date: 13:29:37 09/04/02
Go up one level in this thread
On September 04, 2002 at 16:15:52, Russell Reagan wrote:
>Could someone help me out with building Crafty to run in unix? I've never
>compiled anything but one file programs under unix. The system runs Solaris, and
>I'd like to compile for multiprocessor support. If more information about the
>system is needed let me know and I'll see what I can find out.
From the Crafty mailing list:
Dear Richard,
Thank you very much for your help and suggestions. Thanks to your help, I have
now sucessfully built the latest (16.4) crafty engine (with SMP) on my
UltraSparc 5 workstation. I still had trouble until I reinserted the
-DUSE_ASSEMBLY_A (which I had removed because I thought it may have been iX86
architecture specific). I inserted the "#include <pthread.h>" and "typedef enum
mybool {false,true} bool;" lines into egtb.cpp (as you suggested) and changed
the egtb.o entry....
from:
egtb.o: egtb.cpp
cc -c -O -DSMP egtb.cpp
to:
egtb.o: egtb.cpp
CC -c -O -DSMP -DMUTEX egtb.cpp
...and Voila! Sucess!
I would have never thought of changing "cc" to "CC". Looks like your Solaris
compiler/architecture is very similiar to mine.
Thanks again for your help.
--Steve Cahill
On Wed, 3 Feb 1999 06:36:09 +0100 Richard Pijl wrote:
~> To: crafty@jpunix.com
~> Subject: Re: [crafty] Solaris2.5.1 compile woes (egtb.cpp) ~>=20 ~> =BB=20 ~>
=BB I am trying to build crafty on my UltraSparc 5 under Solaris 2.5.1 ~> =BB
(SunOS quadrature 5.5.1 Generic_105428-01 sun4u sparc ~> =BB SUNW,Ultra-5_10).
~> =BB=20 ~> =BB I've tried both 16.3 and 16.4 using the Solaris compiler which
is ~> =BB resident on (linked to) a networked machine at "/opt/SUNWspro/bin/cc=
" , ~> =BB although this unlikely relavent. ~>=20 ~> Unfortunately I have to use
this compiler as well. Since you have specif= ied ~> CPUS==1 you probably can do
without SMP, so you should exclude that. If = you ~> need SMP you should
probably include pthread.h in egtb.cpp and change th= e ~> makefile line for
egtb.o as posted before (include -DMUTEX). Additionall= y you ~> need to change
cc to CC in this line. For my version of the compiler I a= lso ~> need to define
the type bool (typedef enum mybool {false,true} bool;) in= the ~> top of
egtb.cpp. ~>=20 ~> =BB=20 ~> =BB Here's how I have setup Makefile: ~> =BB # SUN
~> =BB target == SUN
~> =BB AS == /usr/ccs/bin/as
~> =BB CC == cc
~> =BB AFLAGS == -P
~> =BB CFLAGS == -fast -xO5 -xunroll==20
~> =BB LDFLAGS == -lpthread
~> =BB opt == -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIO=
NS \
~> =BB -DUSE_ASSEMBLY_A -DSMP -DCPUS==1 -DMUTEX -DPOSIX
~> =BB asm == Sparc.o
~> =BB=20
~> =BB # Do not change anything below this line! (and although I tinker'd ~> =BB
# with): ~> =BB=20 ~> =BB egtb.o: egtb.cpp
~> =BB cc -c -O -DSMP egtb.cpp
~> =BB=20
~> =BB #.... it was to no avail.
~> =BB=20
~>=20
~> Richard.
~>=20
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.