Unix Technical Forum

crafty

This is a discussion on crafty within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Has anyone out there managed to compile "crafty" the chess engine on their slackware machine? If so, could you ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 03:20 PM
Ed LaBonte
 
Posts: n/a
Default crafty

Has anyone out there managed to compile "crafty" the chess engine on
their slackware machine? If so, could you give me some pointers. There is
no configure file so I run "make" and get the following output:

make -j linux-icc
make[1]: Entering directory `/home/ewl/crafty'
make target=LINUX \
CC=icc CXX=icc \
CFLAGS=' -D_REENTRANT -O2 -march=pentium4 \
-mcpu=pentium4 -prof_use -prof_dir ./profdir \
-Ob2 -fno-alias' \
CXFLAGS=' -D_REENTRANT -O2 -march=pentium4 \
-mcpu=pentium4 -prof_use -prof_dir ./profdir' \
LDFLAGS=' -lpthread' \
opt=' -DUSE_ASSEMBLY -DFAST -DPOSIX -DSMP -DCPUS=4' \
asm=X86.o \
crafty-make
make[2]: Entering directory `/home/ewl/crafty'
make[3]: Entering directory `/home/ewl/crafty'
icc -D_REENTRANT -O2 -march=pentium4 -mcpu=pentium4 -prof_use -prof_dir ./profdir -Ob2 -fno-alias -DUSE_ASSEMBLY -DFAST -DPOSIX -DSMP -DCPUS=4 -DLINUX -c crafty.c
make[3]: icc: Command not found
make[3]: *** [crafty.o] Error 127
make[3]: Leaving directory `/home/ewl/crafty'
make[2]: *** [crafty-make] Error 2
make[2]: Leaving directory `/home/ewl/crafty'
make[1]: *** [linux-icc] Error 2
make[1]: Leaving directory `/home/ewl/crafty'
make: *** [default] Error 2



linux-icc must be the default target. I haven't been able to find a list
of targets to choose from. Anyone have any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 03:20 PM
John Bleichert
 
Posts: n/a
Default Re: crafty

Ed LaBonte <ed@nospamlabonte.com> wrote:
> Has anyone out there managed to compile "crafty" the chess engine on
> their slackware machine? If so, could you give me some pointers. There is
> no configure file so I run "make" and get the following output:
>

<sniP>
> make[3]: icc: Command not found
> make[3]: *** [crafty.o] Error 127
> make[3]: Leaving directory `/home/ewl/crafty'
> make[2]: *** [crafty-make] Error 2
> make[2]: Leaving directory `/home/ewl/crafty'
> make[1]: *** [linux-icc] Error 2
> make[1]: Leaving directory `/home/ewl/crafty'
> make: *** [default] Error 2
>
>
>
> linux-icc must be the default target. I haven't been able to find a list
> of targets to choose from. Anyone have any ideas?


icc is the Intel C compiler. Look in the Makefile, the targets are
listed at the top. Seems to have built fine, although people who pack
source tarballs without putting all the files in a folder first shout
be shot.

;-)




--------------------------------------------
John Bleichert - syborg@earthlink.net
"The meek shall inherit nothing." - FZ
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 03:20 PM
Mark Hill
 
Posts: n/a
Default Re: crafty

On Wed, 08 Sep 2004 17:54:34 GMT,
Ed LaBonte <ed@NOSPAMlabonte.com> wrote:
[snip]
> make -j linux-icc
> make target=LINUX \
> CC=icc CXX=icc \

[...]
> make[3]: icc: Command not found
>
> linux-icc must be the default target. I haven't been able to find a list
> of targets to choose from. Anyone have any ideas?


Is icc the intel C compiler? How about editing the Makefile's CC and CXX
variables? That might work. As for other targets, the Makefile will list
them. (The bash completion package in /extra can make listing the other
targets easier. You'll just have to type make<tab><tab> in the
appropriate dir.)

--
Mark Hill
Email (Just for Fun):
echo zbp.yvnzt.yyvuez | rot13 | rev | sed s@\\.@\\@@
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 03:20 PM
Mark Hill
 
Posts: n/a
Default Re: crafty

On Wed, 08 Sep 2004 19:02:15 GMT,
John Bleichert <syborg@earthlink.net> wrote:

> Seems to have built fine, although people who pack
> source tarballs without putting all the files in a folder first shout
> be shot.


Yep, that's annoying. ;-) After that happened to me a few times, I've
always used 'tar tvzf foo.tgz' before 'tar xvzf foo.tgz'. 'ls -lart'
could be useful in case of disaster though.


--
Mark Hill
Email (Just for Fun):
echo zbp.yvnzt.yyvuez | rot13 | rev | sed s@\\.@\\@@
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 03:20 PM
Alain Ottavi
 
Posts: n/a
Default Re: crafty

Ed LaBonte wrote:
> Has anyone out there managed to compile "crafty" the chess engine on
> their slackware machine? If so, could you give me some pointers. There is
> no configure file so I run "make" and get the following output:
>
> make -j linux-icc
> make[1]: Entering directory `/home/ewl/crafty'
> make target=LINUX \
> CC=icc CXX=icc \
> CFLAGS=' -D_REENTRANT -O2 -march=pentium4 \
> -mcpu=pentium4 -prof_use -prof_dir ./profdir \
> -Ob2 -fno-alias' \
> CXFLAGS=' -D_REENTRANT -O2 -march=pentium4 \
> -mcpu=pentium4 -prof_use -prof_dir ./profdir' \
> LDFLAGS=' -lpthread' \
> opt=' -DUSE_ASSEMBLY -DFAST -DPOSIX -DSMP -DCPUS=4' \
> asm=X86.o \
> crafty-make
> make[2]: Entering directory `/home/ewl/crafty'
> make[3]: Entering directory `/home/ewl/crafty'
> icc -D_REENTRANT -O2 -march=pentium4 -mcpu=pentium4 -prof_use -prof_dir ./profdir -Ob2 -fno-alias -DUSE_ASSEMBLY -DFAST -DPOSIX -DSMP -DCPUS=4 -DLINUX -c crafty.c
> make[3]: icc: Command not found
> make[3]: *** [crafty.o] Error 127
> make[3]: Leaving directory `/home/ewl/crafty'
> make[2]: *** [crafty-make] Error 2
> make[2]: Leaving directory `/home/ewl/crafty'
> make[1]: *** [linux-icc] Error 2
> make[1]: Leaving directory `/home/ewl/crafty'
> make: *** [default] Error 2
>
>
>
> linux-icc must be the default target. I haven't been able to find a list
> of targets to choose from. Anyone have any ideas?


icc is the Intel C Compiler. For GCC you can choose linux or
linux-profile - optimized code (see gcc manual) - for targets for x86
computers.

Others tips :
- Options like -DSMP -DCPU=4 is for 4CPU SMP computers. remove it for
single CPU computer.
- Be careful with GCC version to use : For example, newest versions of
GCC don't compile old version of crafty - like crafty v18.x and older -
but gcc 2.95.x do it !

HTH.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 03:21 PM
Ed LaBonte
 
Posts: n/a
Default Re: crafty

On Thu, 09 Sep 2004 03:13:49 +0200, Alain Ottavi wrote:


Thanks for the advice. That did it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:31 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com