Make file for Bob Hyatts crafty failing

Hi all.

I am trying to build Bob Hyatt’s chess engine crafty from source, and the make fail is failing with this:

make[1]: Entering directory /home/nwalthall/ChessEngines/crafty-23.0' make[2]: Entering directory /home/nwalthall/ChessEngines/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:42:
iterate.c: In function ‘Iterate’:
iterate.c:25: warning: unused variable ‘time_used’
iterate.c:22: warning: unused variable ‘extended’
iterate.c:21: warning: unused variable ‘prev_time’
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/nwalthall/ChessEngines/crafty-23.0' make[1]: *** [crafty-make] Error 2 make[1]: Leaving directory /home/nwalthall/ChessEngines/crafty-23.0’
make: *** [linux-amd64] Error 2

The amd64 param points to this in the make:

linux-amd64:
$(MAKE) target=LINUX
CC=gcc CXX=g++
CFLAGS=’$(CFLAGS) -Wall -pipe
-fbranch-probabilities -fomit-frame-pointer -O3 -march=k8’
CXFLAGS=$(CFLAGS)
LDFLAGS=’$(LDFLAGS) -lpthread -lnuma -lstdc++’
opt=’$(opt) -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA’
crafty-make

My kernal is
Linux BlackVincentII 2.6.27.23-0.1-default #1 SMP 2009-05-26 17:02:05 -0400 x86_64 x86_64 x86_64 GNU/Linux

And I am running Suse 11.1

gcc version is 4.3.2

Any help would be much appreciated.

Best,

Ned

install libnuma-devel :wink: