Package: crafty Version: 20.0-1 Severity: serious Tags: patch When building 'crafty' on amd64/unstable, I get the following error:
gcc -Wall -pipe -D_REENTRANT -fbranch-probabilities -fomit-frame-pointer -O3 -march=k8 -DTBDIR=\"/var/lib/crafty/TB\" -DTABLEBASES -DFAST -DSMP -DNUMA -DLIBNUMA -DCPUS=8 -DFUTILITY -DUSE_ASSEMBLY -DINLINE_AMD -DLINUX -c main.c main.c:12:20: error: numa.h: No such file or directory main.c: In function 'main': main.c:3212: warning: implicit declaration of function 'numa_available' main.c:3215: warning: implicit declaration of function 'numa_node_to_cpus' main.c:3217: warning: implicit declaration of function 'numa_max_node' make[3]: *** [main.o] Error 1 make[3]: Leaving directory `/crafty-20.0' With the attached patch 'crafty' can be compiled on amd64 using gcc-4.0. The patch removes '-DNUMA -DLIBNUMA' and '-lnuma' from the Makefile option settings for amd64. The patch also removes '-march=k8' from CFLAGS. Regards Andreas Jochens diff -urN ../tmp-orig/crafty-20.0/Makefile ./Makefile --- ../tmp-orig/crafty-20.0/Makefile 2005-09-19 11:08:47.000000000 +0000 +++ ./Makefile 2005-09-19 11:08:44.000000000 +0000 @@ -207,10 +207,10 @@ $(MAKE) target=LINUX \ CC=gcc CXX=g++ \ CFLAGS='$(CFLAGS) -Wall -pipe -D_REENTRANT \ - -fprofile-arcs -fomit-frame-pointer -O3 -march=k8' \ + -fprofile-arcs -fomit-frame-pointer -O3' \ CXFLAGS=$(CFLAGS) \ - LDFLAGS='$(LDFLAGS) -lnuma -lstdc++' \ - opt='$(opt)-DFAST -DSMP -DNUMA -DLIBNUMA -DCPUS=8 \ + LDFLAGS='$(LDFLAGS) -lstdc++' \ + opt='$(opt)-DFAST -DSMP -DCPUS=8 \ -DFUTILITY -DUSE_ASSEMBLY -DINLINE_AMD' \ crafty-make @@ -218,10 +218,10 @@ $(MAKE) target=LINUX \ CC=gcc CXX=g++ \ CFLAGS='$(CFLAGS) -Wall -pipe -D_REENTRANT \ - -fbranch-probabilities -fomit-frame-pointer -O3 -march=k8' \ + -fbranch-probabilities -fomit-frame-pointer -O3' \ CXFLAGS=$(CFLAGS) \ - LDFLAGS='$(LDFLAGS) -lnuma -lstdc++' \ - opt='$(opt) -DFAST -DSMP -DNUMA -DLIBNUMA -DCPUS=8 \ + LDFLAGS='$(LDFLAGS) -lstdc++' \ + opt='$(opt) -DFAST -DSMP -DCPUS=8 \ -DFUTILITY -DUSE_ASSEMBLY -DINLINE_AMD' \ crafty-make -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]