tashirosgt
19th January 2010, 05:13 AM
When I compile the chess program crafty-23.1 on my FC12 x86_64 computer using the command:
make linux-amd64
I get errors that result from not finding a file called "numa.h" and perhaps from not linking a "libnuma" library.
The machine has a libnuma:
/usr/lib64/libnuma.so.1
I can find "numa.h" on my machine in several places. For example
/usr/arm-gp2x-linux/include/linux/numa.h
/usr/src/kernels/2.6.31.5-127.fc12.x86_64/arch/x86/include/asm/numa.h
/usr/src/kernels/2.6.31.5-127.fc12.x86_64/include/acpi/acpi_numa.h
/usr/src/kernels/2.6.31.5-127.fc12.x86_64/include/config/numa.h
Is one of these numa.h's the right one?
The source code is from: ftp://ftp.cis.uab.edu/pub/hyatt/source/
Some of the compilation errors:
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/sgt/Chess/crafty-23.1'
make[2]: Entering directory `/home/sgt/Chess/crafty-23.1'
gcc -Wall -pipe \
-fbranch-probabilities -fomit-frame-pointer -O3 -march=k8 -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA -DLINUX -c search.c
search.c: In function ‘Search’:
search.c:965: note: file /home/sgt/Chess/crafty-23.1/search.gcda not found, execution counts estimated
search.c:18: warning: ‘first_tried’ may be used uninitialized in this function
gcc -Wall -pipe \
-fbranch-probabilities -fomit-frame-pointer -O3 -march=k8 -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA -DLINUX -c thread.c
thread.c: In function ‘CopyFromChild’:
thread.c:490: note: file /home/sgt/Chess/crafty-23.1/thread.gcda not found, execution counts estimated
.....<snip>....
main.c:9:20: error: numa.h: No such file or directory
main.c: In function ‘main’:
main.c:3905: warning: implicit declaration of function ‘numa_available’
main.c:3908: warning: implicit declaration of function ‘numa_node_to_cpus’
main.c:3910: warning: implicit declaration of function ‘numa_max_node’
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/sgt/Chess/crafty-23.1'
make[1]: *** [crafty-make] Error 2
make[1]: Leaving directory `/home/sgt/Chess/crafty-23.1'
make: *** [linux-amd64] Error 2
make linux-amd64
I get errors that result from not finding a file called "numa.h" and perhaps from not linking a "libnuma" library.
The machine has a libnuma:
/usr/lib64/libnuma.so.1
I can find "numa.h" on my machine in several places. For example
/usr/arm-gp2x-linux/include/linux/numa.h
/usr/src/kernels/2.6.31.5-127.fc12.x86_64/arch/x86/include/asm/numa.h
/usr/src/kernels/2.6.31.5-127.fc12.x86_64/include/acpi/acpi_numa.h
/usr/src/kernels/2.6.31.5-127.fc12.x86_64/include/config/numa.h
Is one of these numa.h's the right one?
The source code is from: ftp://ftp.cis.uab.edu/pub/hyatt/source/
Some of the compilation errors:
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/sgt/Chess/crafty-23.1'
make[2]: Entering directory `/home/sgt/Chess/crafty-23.1'
gcc -Wall -pipe \
-fbranch-probabilities -fomit-frame-pointer -O3 -march=k8 -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA -DLINUX -c search.c
search.c: In function ‘Search’:
search.c:965: note: file /home/sgt/Chess/crafty-23.1/search.gcda not found, execution counts estimated
search.c:18: warning: ‘first_tried’ may be used uninitialized in this function
gcc -Wall -pipe \
-fbranch-probabilities -fomit-frame-pointer -O3 -march=k8 -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA -DLINUX -c thread.c
thread.c: In function ‘CopyFromChild’:
thread.c:490: note: file /home/sgt/Chess/crafty-23.1/thread.gcda not found, execution counts estimated
.....<snip>....
main.c:9:20: error: numa.h: No such file or directory
main.c: In function ‘main’:
main.c:3905: warning: implicit declaration of function ‘numa_available’
main.c:3908: warning: implicit declaration of function ‘numa_node_to_cpus’
main.c:3910: warning: implicit declaration of function ‘numa_max_node’
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/sgt/Chess/crafty-23.1'
make[1]: *** [crafty-make] Error 2
make[1]: Leaving directory `/home/sgt/Chess/crafty-23.1'
make: *** [linux-amd64] Error 2