Author: Andreas Guettinger
Date: 16:22:17 11/24/03
Go up one level in this thread
Here's the diff of the changes I made to the Makefile in order to compile
crafty19.6 under OSX. (I can post the whole Makefile if anyone is interested.)
diff Makefile.org Makefile_OSX
13a14
> # Darwin {Darwin on PowerPC}
306a308,318
> darwin:
> $(MAKE) target=NetBSD \
> CC=cc CXX=g++ \
> CFLAGS='$(CFLAGS) -D_REENTRANT -O3 -Wall \
> -fomit-frame-pointer -funroll-all-loops \
> -finline-functions -ffast-math' \
> CXFLAGS=$(CFLAGS) \
> LDFLAGS=$(LDFLAGS) \
> opt='$(opt) -DFAST' \
> crafty-make
>
362c374
< LDFLAGS='$(LDFLAGS) $(CFLAGS)'
---
> LDFLAGS='$(LDFLAGS) $(CFLAGS)' \
531c543
< $(CC) $(LDFLAGS) -o crafty $(objects) -lm $(LIBS)
---
> $(CC) $(LDFLAGS) -o crafty $(objects) -lstdc++ -lm $(LIBS)
I then compile crafty in the OS X Terminal with 'make darwin', which uses the
NetBSD target to compile (Linux or FreeBSD target would work too). Without
-DCOMPACT_ATTACKS crafty 19.6 runs fine in OS X.
regards
Andreas Guettinger
Unfortunately, there is still a bug that prevents crafty to run correctly when
compiled with the -DCOMPACT_ATTACKS flag. Hier ist the output I get:
----cut
[orcabox:~/Chess/crafty] andreas$ brokencrafty
EPD Kit revision date: 1996.04.21
pondering disabled.
hash table memory = 24M bytes.
pawn hash table memory = 3M bytes.
EGTB access enabled
using tbpath=./TB
5 piece tablebase files found
1699kb of RAM used for TB indices and decompression tables
Crafty v19.6
White(1): book off
book file disabled.
White(1): analyze
Analyze Mode: type "exit" to terminate.
clearing hash tables
time surplus 0.00 time limit 22.50 (3:30)
depth time score variation (1)
7 0.95 0.24 1. Nf3 Nf6 2. d4 d6 3. Nc3 Bf5 4. Bf4
7-> 1.08 0.24 1. Nf3 Nf6 2. d4 d6 3. Nc3 Bf5 4. Bf4
8 1.34 -0.01 1. Nf3 Nf6 2. d4 d6 3. Nc3 Bf5 4. Bf4
Nbd7
bad move from hash table, ply=920? 1. e4
8 3.83 0.04 1. e4 e5 2. Nf3 d5 3. Nc3 dxe4 4. Nxe4
Bf5 5. d3
8-> 4.61 0.04 1. e4 e5 2. Nf3 d5 3. Nc3 dxe4 4. Nxe4
Bf5 5. d3
bad move from hash table, ply=620? 1. e4
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=8
bad move from hash table, ply=8
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=10
bad move from hash table, ply=10
bad move from hash table, ply=10
bad move from hash table, ply=8
bad move from hash table, ply=8
bad move from hash table, ply=8
9 9.21 0.18 1. e4 d5 2. exd5 Qxd5 3. Nc3 Qd8 4.
Bb5+ c6 5. Bc4 b5 6. Be2
captured a king 9 9.22 2/20? 1. e3
piece=7,from=27,to=19,captured=3
ply=14
captured a king
piece=7,from=27,to=19,captured=3
ply=14
captured a king
piece=7,from=27,to=11,captured=3
ply=12
captured a king
piece=7,from=27,to=11,captured=3
ply=12
captured a king
piece=7,from=27,to=18,captured=3
ply=14
captured a king
piece=7,from=27,to=18,captured=3
ply=14
captured a king
piece=7,from=27,to=11,captured=3
ply=12
captured a king
piece=7,from=27,to=11,captured=3
ply=12
captured a king
piece=7,from=27,to=18,captured=3
ply=14
captured a king
piece=7,from=27,to=18,captured=3
ply=14
captured a king
piece=7,from=27,to=11,captured=3
ply=14
captured a king
piece=7,from=27,to=11,captured=3
ply=14
captured a king
piece=7,from=27,to=11,captured=3
ply=14
captured a king
piece=7,from=27,to=11,captured=3
ply=14
captured a king
piece=7,from=27,to=13,captured=3
ply=12
captured a king
piece=7,from=27,to=13,captured=3
ply=12
captured a king
piece=1,from=27,to=20,captured=3
ply=16
captured a king
piece=1,from=27,to=20,captured=3
ply=16
captured a king
piece=1,from=27,to=20,captured=3
ply=16
captured a king
piece=1,from=27,to=20,captured=3
ply=16
bad move from hash table, ply=17
captured a king
piece=7,from=27,to=13,captured=3
ply=14
captured a king
piece=7,from=27,to=13,captured=3
ply=14
captured a king
piece=7,from=27,to=13,captured=3
ply=14
captured a king
piece=7,from=27,to=13,captured=3
ply=14
9 12.99 0.24 1. Nf3 Nf6 2. e3 e6 3. Be2 Bc5 4. d4
Bb4+ 5. c3 Be7
9-> 13.30 0.24 1. Nf3 Nf6 2. e3 e6 3. Be2 Bc5 4. d4
Bb4+ 5. c3 Be7
10 16.10 0.10 1. Nf3 Nf6 2. e3 e6 3. d4 d5 4. Bb5+
Bd7 5. Bxd7+ Nbxd7 6. O-O Bd6 7. Nbd2
bad move from hash table, ply=130? 1. e4
bad move from hash table, ply=12
bad move from hash table, ply=10
bad move from hash table, ply=10
bad move from hash table, ply=10
bad move from hash table, ply=10
bad move from hash table, ply=12
bad move from hash table, ply=12
bad move from hash table, ply=12
bad move from hash table, ply=10
bad move from hash table, ply=12
bad move from hash table, ply=10
bad move from hash table, ply=10
10 25.74 0.11 1. e4 Nc6 2. Nf3 e6 3. d4 d5 4. e5
Be7 5. Bb5 Bd7
captured a king10 25.74 3/20? 1. e3
piece=7,from=27,to=24,captured=3
ply=16
captured a king
piece=7,from=27,to=24,captured=3
ply=16
bad move from hash table, ply=12
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=7
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=10
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=6
bad move from hash table, ply=7
bad move from hash table, ply=6
bad move from hash table, ply=7
bad move from hash table, ply=6
captured a king
piece=7,from=27,to=43,captured=3
ply=13
captured a king
piece=7,from=27,to=43,captured=3
ply=13
captured a king
piece=7,from=27,to=43,captured=3
ply=15
captured a king
piece=7,from=27,to=43,captured=3
ply=15
bad move from hash table, ply=18
captured a king
piece=7,from=27,to=51,captured=3
ply=11
captured a king
piece=7,from=27,to=51,captured=3
ply=11
captured a king
piece=7,from=27,to=51,captured=3
ply=13
captured a king
piece=7,from=27,to=51,captured=3
ply=13
----cut
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.