[Computer-go] pachi: how to build?

Jonathan Chetwynd j.chetwynd at btinternet.com
Thu Apr 14 22:59:19 PDT 2011


pachi: how to build?

http://repo.or.cz/w/pachi.git

currently fails, anyone had success?

cheers

~:"

authors away?
anyway slow to answer....
on ppc os x 10.5.8  with gcc 4.0.1:

Jay:pachi 2 jonathanchetwynd$ make
[MAKE all]   random
[CC]   random.c
cc1: error: invalid option ‘arch=native’
make[1]: *** [random.o] Error 1
make: *** [all-recursive] Error 1

else
	# SYS_CFLAGS=-march=native

Jay:pachi 2 jonathanchetwynd$ make
[MAKE all]   random
[CC]   random.c
[AR]   random.a
ar: creating archive random.a
[MAKE all]   replay
[CC]   replay.c
[AR]   replay.a
ar: creating archive replay.a
[MAKE all]   joseki
[CC]   joseki.c
[CC]   base.c
[AR]   joseki.a
ar: creating archive joseki.a
[MAKE all]   montecarlo
[CC]   montecarlo.c
[AR]   montecarlo.a
ar: creating archive montecarlo.a
[MAKE all]   uct
[CC]   dynkomi.c
In file included from ../uct/internal.h:10,
                from ../uct/dynkomi.h:7,
                from dynkomi.c:11:
../stats.h: In function ‘stats_add_result’:
../stats.h:50: warning: implicit declaration of function  
‘__sync_synchronize’
[CC]   tree.c
In file included from ../uct/internal.h:10,
                from tree.c:17:
../stats.h: In function ‘stats_add_result’:
../stats.h:50: warning: implicit declaration of function  
‘__sync_synchronize’
tree.c: In function ‘tree_alloc_node’:
tree.c:31: warning: implicit declaration of function  
‘__sync_fetch_and_add’
tree.c: In function ‘tree_done_node’:
tree.c:122: warning: implicit declaration of function  
‘__sync_fetch_and_sub’
[CC]   uct.c
In file included from ../uct/internal.h:10,
                from ../uct/dynkomi.h:7,
                from uct.c:21:
../stats.h: In function ‘stats_add_result’:
../stats.h:50: warning: implicit declaration of function  
‘__sync_synchronize’
[CC]   prior.c
In file included from ../uct/internal.h:10,
                from prior.c:13:
../stats.h: In function ‘stats_add_result’:
../stats.h:50: warning: implicit declaration of function  
‘__sync_synchronize’
[CC]   search.c
In file included from ../distributed/distributed.h:7,
                from search.c:13:
../stats.h: In function ‘stats_add_result’:
../stats.h:50: warning: implicit declaration of function  
‘__sync_synchronize’
[CC]   slave.c
In file included from ../uct/internal.h:10,
                from slave.c:44:
../stats.h: In function ‘stats_add_result’:
../stats.h:50: warning: implicit declaration of function  
‘__sync_synchronize’
[CC]   walk.c
In file included from ../uct/internal.h:10,
                from ../uct/dynkomi.h:7,
                from walk.c:17:
../stats.h: In function ‘stats_add_result’:
../stats.h:50: warning: implicit declaration of function  
‘__sync_synchronize’
walk.c: In function ‘uct_leaf_node’:
walk.c:144: warning: implicit declaration of function  
‘__sync_lock_test_and_set’
[CC]   plugins.c
In file included from ../uct/tree.h:31,
                from ../uct/prior.h:5,
                from plugins.c:12:
../stats.h: In function ‘stats_add_result’:
../stats.h:50: warning: implicit declaration of function  
‘__sync_synchronize’
[AR]   uct.a
ar: creating archive uct.a
[MAKE all]   uct/policy
[CC]   generic.c
In file included from ../../uct/internal.h:10,
                from generic.c:11:
../../stats.h: In function ‘stats_add_result’:
../../stats.h:50: warning: implicit declaration of function  
‘__sync_synchronize’
[CC]   ucb1.c
In file included from ../../uct/internal.h:10,
                from ucb1.c:11:
../../stats.h: In function ‘stats_add_result’:
../../stats.h:50: warning: implicit declaration of function  
‘__sync_synchronize’
[CC]   ucb1amaf.c
In file included from ../../uct/internal.h:10,
                from ucb1amaf.c:11:
../../stats.h: In function ‘stats_add_result’:
../../stats.h:50: warning: implicit declaration of function  
‘__sync_synchronize’
[AR]   uctpolicy.a
ar: creating archive uctpolicy.a
[MAKE all]   playout
[CC]   moggy.c
In file included from ../uct/tree.h:31,
                from ../uct/prior.h:5,
                from moggy.c:24:
../stats.h: In function ‘stats_add_result’:
../stats.h:50: warning: implicit declaration of function  
‘__sync_synchronize’
[CC]   light.c
[AR]   playout.a
ar: creating archive playout.a
[MAKE all]   tactics
[CC]   1lib.c
[CC]   2lib.c
[CC]   nlib.c
[CC]   ladder.c
[CC]   nakade.c
[CC]   selfatari.c
[CC]   util.c
[AR]   tactics.a
ar: creating archive tactics.a
[MAKE all]   t-unit
[CC]   test.c
[AR]   test.a
ar: creating archive test.a
[MAKE all]   distributed
[CC]   distributed.c
In file included from distributed.c:84:
../stats.h: In function ‘stats_add_result’:
../stats.h:50: warning: implicit declaration of function  
‘__sync_synchronize’
[CC]   protocol.c
In file included from ../distributed/distributed.h:7,
                from protocol.c:26:
../stats.h: In function ‘stats_add_result’:
../stats.h:50: warning: implicit declaration of function  
‘__sync_synchronize’
[CC]   merge.c
In file included from ../distributed/distributed.h:7,
                from merge.c:15:
../stats.h: In function ‘stats_add_result’:
../stats.h:50: warning: implicit declaration of function  
‘__sync_synchronize’
[AR]   distributed.a
ar: creating archive distributed.a
[CC]   board.c
board.c:1255: warning: ‘flatten’ attribute directive ignored
[CC]   gtp.c
[CC]   move.c
[CC]   ownermap.c
[CC]   pattern3.c
[CC]   playout.c
[CC]   probdist.c
[CC]   random.c
random.c:10: error: thread-local storage not supported for this target
make: *** [random.o] Error 1


from random.c:

#include <pthread.h>

but	this file is not present 
                 


More information about the Computer-go mailing list