Guetti wrote:Doesn't compile under linux 64-bit amd64:
Code: Select all
%make linux-amd64
make target=LINUX \
CC=gcc CXX=g++ \
CFLAGS=' -Wall -pipe \
-fbranch-probabilities -fomit-frame-pointer -O3 -march=k8' \
CXFLAGS= \
LDFLAGS=' -lstdc++' \
opt=' -DINLINE64 -DCPUS=1' \
crafty-make
make[1]: Entering directory `/home/andreas/crafty-22.0'
make[2]: Entering directory `/home/andreas/crafty-22.0'
gcc -Wall -pipe \
-fbranch-probabilities -fomit-frame-pointer -O3 -march=k8 -DINLINE64 -DCPUS=1 -DLINUX -c crafty.c
In file included from chess.h:132,
from searchr.c:1,
from crafty.c:1:
lock.h:121:1: warning: "lock_t" redefined
In file included from searchr.c:1,
from crafty.c:1:
chess.h:131:1: warning: this is the location of the previous definition
In file included from searchr.c:1,
from crafty.c:1:
chess.h:353: error: expected specifier-qualifier-list before string constant
chess.h:393: error: expected specifier-qualifier-list before string constant
In file included from crafty.c:1:
searchr.c: In function 'SearchRoot':
searchr.c:179: error: 'SHARED' has no member named 'draw_score'
In file included from crafty.c:2:
search.c: In function 'Search':
search.c:51: error: 'TREE' has no member named 'thread_id'
search.c:52: error: 'SHARED' has no member named 'next_time_check'
search.c:53: error: 'SHARED' has no member named 'next_time_check'
search.c:53: error: 'SHARED' has no member named 'nodes_between_time_checks'
search.c:73: error: 'SHARED' has no member named 'draw_score'
search.c:156: error: 'SHARED' has no member named 'draw_score'
search.c:245: error: 'TREE' has no member named 'stop'
search.c:282: error: 'TREE' has no member named 'stop'
search.c:289: error: 'TREE' has no member named 'stop'
search.c:335: error: 'TREE' has no member named 'stop'
search.c:358: error: 'TREE' has no member named 'stop'
search.c:368: error: 'TREE' has no member named 'stop'
search.c:389: error: 'TREE' has no member named 'stop'
search.c:391: error: 'SHARED' has no member named 'smp_idle'
search.c:392: error: 'SHARED' has no member named 'min_thread_depth'
search.c:393: error: 'TREE' has no member named 'alpha'
search.c:394: error: 'TREE' has no member named 'beta'
search.c:395: error: 'TREE' has no member named 'value'
search.c:396: error: 'TREE' has no member named 'wtm'
search.c:397: error: 'TREE' has no member named 'ply'
search.c:398: error: 'TREE' has no member named 'depth'
search.c:399: error: 'TREE' has no member named 'mate_threat'
search.c:401: error: 'TREE' has no member named 'stop'
search.c:403: error: 'TREE' has no member named 'thread_id'
search.c:429: error: 'SHARED' has no member named 'draw_score'
In file included from crafty.c:3:
thread.c: In function 'Thread':
thread.c:34: error: 'SHARED' has no member named 'max_threads'
thread.c:35: error: 'SHARED' has no member named 'max_threads'
thread.c:35: error: 'TREE' has no member named 'stop'
thread.c:63: error: 'SHARED' has no member named 'splitting'
thread.c:64: error: 'SHARED' has no member named 'parallel_splits'
thread.c:65: error: 'TREE' has no member named 'thread_id'
thread.c:66: error: 'TREE' has no member named 'nprocs'
thread.c:68: error: 'SHARED' has no member named 'max_threads'
thread.c:68: error: 'SHARED' has no member named 'max_thread_group'
thread.c:70: error: 'TREE' has no member named 'siblings'
thread.c:76: error: 'TREE' has no member named 'siblings'
thread.c:77: error: 'TREE' has no member named 'thread_id'
thread.c:78: error: 'TREE' has no member named 'parent'
thread.c:79: error: 'TREE' has no member named 'nprocs'
thread.c:85: error: 'TREE' has no member named 'siblings'
thread.c:87: error: 'TREE' has no member named 'value'
thread.c:90: error: 'TREE' has no member named 'thread_id'
thread.c:91: error: 'SHARED' has no member named 'splitting'
thread.c:103: error: 'SHARED' has no member named 'max_threads'
thread.c:104: error: 'TREE' has no member named 'siblings'
thread.c:105: error: 'TREE' has no member named 'siblings'
thread.c:106: error: 'SHARED' has no member named 'splitting'
thread.c:129: error: 'TREE' has no member named 'thread_id'
thread.c: In function 'CopyFromSMP':
thread.c:150: error: 'TREE' has no member named 'stop'
thread.c:151: error: 'TREE' has no member named 'ply'
thread.c:151: error: 'TREE' has no member named 'ply'
thread.c:173: error: 'TREE' has no member named 'root_move_text'
thread.c:173: error: 'TREE' has no member named 'root_move_text'
thread.c:174: error: 'TREE' has no member named 'used'
thread.c: In function 'CopyToSMP':
thread.c:193: error: 'SHARED' has no member named 'max_threads'
thread.c:195: error: 'TREE' has no member named 'used'
thread.c:200: error: 'TREE' has no member named 'used'
thread.c:209: error: 'TREE' has no member named 'used'
thread.c:211: error: 'SHARED' has no member named 'max_split_blocks'
thread.c:211: error: 'SHARED' has no member named 'max_split_blocks'
thread.c:211: error: 'SHARED' has no member named 'max_split_blocks'
thread.c:213: error: 'TREE' has no member named 'used'
thread.c:214: error: 'TREE' has no member named 'stop'
thread.c:215: error: 'SHARED' has no member named 'max_threads'
thread.c:216: error: 'TREE' has no member named 'siblings'
thread.c:218: error: 'TREE' has no member named 'ply'
thread.c:218: error: 'TREE' has no member named 'ply'
thread.c:219: error: 'TREE' has no member named 'ply'
thread.c:219: error: 'TREE' has no member named 'ply'
thread.c:220: error: 'TREE' has no member named 'ply'
thread.c:220: error: 'TREE' has no member named 'ply'
thread.c:221: error: 'TREE' has no member named 'ply'
thread.c:221: error: 'TREE' has no member named 'ply'
thread.c:222: error: 'TREE' has no member named 'ply'
thread.c:222: error: 'TREE' has no member named 'ply'
thread.c:228: error: 'TREE' has no member named 'ply'
thread.c:229: error: 'TREE' has no member named 'ply'
thread.c:229: error: 'TREE' has no member named 'ply'
thread.c:230: error: 'TREE' has no member named 'ply'
thread.c:256: error: 'TREE' has no member named 'alpha'
thread.c:256: error: 'TREE' has no member named 'alpha'
thread.c:257: error: 'TREE' has no member named 'beta'
thread.c:257: error: 'TREE' has no member named 'beta'
thread.c:258: error: 'TREE' has no member named 'value'
thread.c:258: error: 'TREE' has no member named 'value'
thread.c:259: error: 'TREE' has no member named 'wtm'
thread.c:259: error: 'TREE' has no member named 'wtm'
------ snip---------
etc, etc
It is compiling and running cleanly here... I should add are you sure that is the best target? that is a NUMA compile and you might or might not have libnuma installed... But for me, on my suse 10.2 and suse 10.3 64 bit boxes, either make linux-64 (uses intel compiler which is faster) and make linux-amd64 (uses gcc + libnuma) work perfectly. Do you have some old .h files laying around or perhaps old source that got mixed in? 22.0 is _drastically_ different from 21.7 in terms of data values, structures, etc...
Here is what I get on the make linux-amd64 on my suse laptop:
scrappy% make linux-amd64
make target=LINUX \
CC=gcc CXX=g++ \
CFLAGS=' -Wall -pipe \
-fbranch-probabilities -fomit-frame-pointer -O3 -march=k8' \
CXFLAGS= \
LDFLAGS=' -lnuma -lstdc++' \
opt=' -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA' \
crafty-make
make[1]: Entering directory `/home/hyatt/crafty'
make[2]: Entering directory `/home/hyatt/crafty'
gcc -Wall -pipe \
-fbranch-probabilities -fomit-frame-pointer -O3 -march=k8 -DINLI
NE64 -DCPUS=8 -DNUMA -DLIBNUMA -DLINUX -c crafty.c
crafty.c: In function ‘ValidatePosition’:
crafty.c:46: note: file crafty.gcda not found, execution counts estimated
g++ -c -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA -DLINUX egtb.cpp
egtb.cpp:4478: warning: ‘TB_CRC_CHECK’ initialized and declared ‘extern’
gcc -lnuma -lstdc++ -o crafty crafty.o egtb.o -lm
make[2]: Leaving directory `/home/hyatt/crafty'
make[1]: Leaving directory `/home/hyatt/crafty'
It also ran just fine...