LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-17-2009, 05:58 PM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,210

Rep: Reputation: 55
Compiling Crafty in Slackware64 13


Has anyone managed to compile the chess engine crafty? This is what I get when I try:

Quote:
alan@LavanKossot:~/packages/crafty-23.0$ make linux-amd64
make target=LINUX \
CC=gcc CXX=g++ \
CFLAGS=' -Wall -pipe \
-fbranch-probabilities -fomit-frame-pointer -O3 -march=k8' \
CXFLAGS= \
LDFLAGS=' -lpthread -lnuma -lstdc++' \
opt=' -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA' \
crafty-make
make[1]: Entering directory `/home/alan/packages/crafty-23.0'
make[2]: Entering directory `/home/alan/packages/crafty-23.0'
gcc -Wall -pipe \
-fbranch-probabilities -fomit-frame-pointer -O3 -march=k8 -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA -DLINUX -c crafty.c
In file included from crafty.c:44:
main.c:9:20: error: numa.h: No such file or directory
In file included from crafty.c:44:
main.c: In function 'main':
main.c:3833: warning: implicit declaration of function 'numa_available'
main.c:3836: warning: implicit declaration of function 'numa_node_to_cpus'
main.c:3838: warning: implicit declaration of function 'numa_max_node'
make[2]: *** [crafty.o] Error 1
make[2]: Leaving directory `/home/alan/packages/crafty-23.0'
make[1]: *** [crafty-make] Error 2
make[1]: Leaving directory `/home/alan/packages/crafty-23.0'
make: *** [linux-amd64] Error 2
alan@LavanKossot:~/packages/crafty-23.0$
 
Old 11-18-2009, 03:37 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,775

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
You need libnuma for AMD64 arch:
http://ftp.de.debian.org/debian/pool....3.orig.tar.gz
http://ftp.de.debian.org/debian/pool....0.3-1.diff.gz

You may also find helpful fixes in the debain patch for crafty itself as crafty has pretty sloppy sources:
http://ftp.de.debian.org/debian/pool...2.10-4.diff.gz
 
Old 11-18-2009, 01:46 PM   #3
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,210

Original Poster
Rep: Reputation: 55
Well I installed the libnuma but it still won't compile.

I do not know what I am supposed to do with the patch files.

Quote:
make target=LINUX \
CC=gcc CXX=g++ \
CFLAGS=' -Wall -pipe \
-fbranch-probabilities -fomit-frame-pointer -O3 -march=k8' \
CXFLAGS= \
LDFLAGS=' -lpthread -lnuma -lstdc++' \
opt=' -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA' \
crafty-make
make[1]: Entering directory `/home/alan/packages/crafty-23.0'
make[2]: Entering directory `/home/alan/packages/crafty-23.0'
gcc -Wall -pipe \
-fbranch-probabilities -fomit-frame-pointer -O3 -march=k8 -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA -DLINUX -c crafty.c
In file included from crafty.c:44:
main.c: In function 'main':
main.c:3836: warning: passing argument 2 of 'numa_node_to_cpus' from incompatible pointer type
main.c:3836: error: too many arguments to function 'numa_node_to_cpus'
make[2]: *** [crafty.o] Error 1
make[2]: Leaving directory `/home/alan/packages/crafty-23.0'
make[1]: *** [crafty-make] Error 2
make[1]: Leaving directory `/home/alan/packages/crafty-23.0'
make: *** [linux-amd64] Error 2
 
Old 11-19-2009, 01:54 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,775

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Did you install numa manually -I mean using 'make install'? If so, you'd need to run ldconfig afterwards to register the new libs in ld.so.cache.
 
Old 11-19-2009, 02:44 AM   #5
Nille_kungen
Member
 
Registered: Jul 2005
Posts: 216

Rep: Reputation: 44
I see that you use crafty-23.0 and not the latest crafty-23.1.
About libnuma there's an numactl-2.0.4-rc1 but i don't know if that version works any better.

ftp://oss.sgi.com/www/projects/libnuma/download/
http://www.craftychess.com/

Now i haven't tried compiling but i would start with the latest version.
 
Old 11-19-2009, 04:11 AM   #6
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,210

Original Poster
Rep: Reputation: 55
No I used src2pkg and installed the tgz.

I have now got crafty-22.1 compiled. 23.0 and 23.1 both give the same error.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware64 multilib - E17 compiling problem? kukibl Slackware 1 10-08-2009 11:50 AM
Updating from Slackware64-current to Slackware64 13. glore2002 Slackware 4 08-28-2009 07:50 PM
[SOLVED] Slackware64-C client wont detect Slackware64-C Samba server slackass Slackware 5 08-08-2009 12:23 AM
GNU Chess play against crafty cccc Linux - Games 7 07-22-2009 07:47 PM
Crafty Chess Analysis More User Friendly? lrt2003 Linux - Games 4 09-23-2005 03:16 PM


All times are GMT -5. The time now is 10:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration