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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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? |
| |||
| 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 |
| |||
| 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@\\.@\\@@ |
| |||
| 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@\\.@\\@@ |
| |||
| 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. |