Compiling Jazz

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

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

Compiling Jazz

Post by Max »

Thanks for Jazz!

While building your engine Jazz r421 on my mac (Core2Duo, OSX 10.5.8) I ran into these small problems.

Code: Select all

$ make
Scanning dependencies of target jazz
[  3%] Building C object CMakeFiles/jazz.dir/src/computer/computer.o
cc1: error: invalid option ‘sse4.2’
make[2]: *** [CMakeFiles/jazz.dir/src/computer/computer.o] Error 1
make[1]: *** [CMakeFiles/jazz.dir/all] Error 2
make: *** [all] Error 2
With removing the options WANT_SSE42 and after

Code: Select all

$ make
<snip>
&#91; 58%&#93; Building C object CMakeFiles/jazz.dir/src/rules/game.o
cc1&#58; warnings being treated as errors
/Users/max/src/Jazz/421/src/rules/game.c&#58; In function ‘set_transposition_table_size’&#58;
/Users/max/src/Jazz/421/src/rules/game.c&#58;68&#58; warning&#58; right shift count >= width of type
make&#91;2&#93;&#58; *** &#91;CMakeFiles/jazz.dir/src/rules/game.o&#93; Error 1
make&#91;1&#93;&#58; *** &#91;CMakeFiles/jazz.dir/all&#93; Error 2
make&#58; *** &#91;all&#93; Error 2
removing WANT_WERROR with CMake 2.8.4, your engine Jazz compiled well. :D

Code: Select all

$ ./ucijazz 
uci
id name Jazz 421 &#40;i386&#41;
id author Evert Glebbeek
option name Hash type spin default 48 min 1 max 1024
uciok
Looks like a 32 bit binary was compiled by the generated Makefile. Not beeing familar with CMake (which looks interesting btw), is there an option for creating a 64 bit version? Something like WANT_64BIT?

Max
User avatar
Evert
Posts: 2929
Joined: Sat Jan 22, 2011 12:42 am
Location: NL

Re: Compiling Jazz

Post by Evert »

Max wrote: Looks like a 32 bit binary was compiled by the generated Makefile. Not beeing familar with CMake (which looks interesting btw), is there an option for creating a 64 bit version? Something like WANT_64BIT?
Max
In the list of options, look for CMAKE_OSX_ARCHITECTURES. I usually set that to "i386; x86_64" which produces a fat 32/64 bit binary.
I lately forgot to include the 32 bit build, as you've noticed... :(
Max
Posts: 247
Joined: Tue Apr 13, 2010 10:41 am

Re: Compiling Jazz

Post by Max »

Thanks Evert,

got it compiled to 64 bit. :D

Is there an issue with the analyze mode? With Stockfish and Shredder Classic gui, Jazz stops calculating after about 5 seconds. And in SCID the engine output windows remains empty.

Max
User avatar
Evert
Posts: 2929
Joined: Sat Jan 22, 2011 12:42 am
Location: NL

Re: Compiling Jazz

Post by Evert »

Max wrote:Is there an issue with the analyze mode? With Stockfish and Shredder Classic gui, Jazz stops calculating after about 5 seconds. And in SCID the engine output windows remains empty.
Well, that rather depends on your point of view.
I haven't actually implemented a special "analysis mode", so I'm not surprised it doesn't work if you try to use it. :( I will look into it though, what you describe doesn't sound good...