[Computer-go] pachi: how to build?

Jonathan Chetwynd j.chetwynd at btinternet.com
Fri Apr 15 06:12:48 PDT 2011


Jean-loup,

I would like to try pachi, that is why I am trying to build,

most developers including myself are extremely keen to get feedback,

I encourage you to start a pachi forum already, it is essential that   
developers and users can find answers quickly and easily

unfortunately make MAC=1  does not wfm, see attached.

Jonathan

copying to list, as there is no  pachi development  list, and  
response  does not wfm


On 15 Apr 2011, at 11:19, Jean-loup Gailly wrote:

> > forwarding to public list, due to slow response,
>
> Please don't do this again.
>
> A simple look at the Makefile would have shown you how to compile on  
> Mac:
>   make MAC=1
>
> Jean-loup
>

dont do what exactly?

I have compiled hundreds, but probably not thousands of applications,  
on linux and mac,
without ever using more than config, make and install...
I have rarely  needed to read or edit a makefile

there is no documentation afaict, and I received no response, although  
I made my interest plain.

where is it stated or indicated that
make MAC=1
is appropriate?

Jay:pachi 2 jonathanchetwynd$  make MAC=1
[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
[CC]   stone.c
[CC]   timeinfo.c
[CC]   network.c
[CC]   fbook.c
[CC]   zzgo.c
In file included from distributed/distributed.h:7,
                  from zzgo.c:19:
./stats.h: In function ‘stats_add_result’:
./stats.h:50: warning: implicit declaration of function  
‘__sync_synchronize’
[LINK] zzgo
Undefined symbols:
   "___sync_fetch_and_add", referenced from:
       _tree_alloc_node in uct.a(tree.o)
       _tree_alloc_node in uct.a(tree.o)
   "___sync_synchronize", referenced from:
       _ucb1amaf_update in uctpolicy.a(ucb1amaf.o)
       _ucb1amaf_update in uctpolicy.a(ucb1amaf.o)
       _ucb1amaf_update in uctpolicy.a(ucb1amaf.o)
       _ucb1amaf_update in uctpolicy.a(ucb1amaf.o)
       _merge_new_stats in distributed.a(merge.o)
       _merge_new_stats in distributed.a(merge.o)
       _merge_new_stats in distributed.a(merge.o)
       _merge_new_stats in distributed.a(merge.o)
       _ucb1_update in uctpolicy.a(ucb1.o)
       _ucb1_update in uctpolicy.a(ucb1.o)
       _record_local_sequence in uct.a(walk.o)
       _record_local_sequence in uct.a(walk.o)
       _record_local_sequence in uct.a(walk.o)
       _record_local_sequence in uct.a(walk.o)
       _uct_playout in uct.a(walk.o)
       _uct_playout in uct.a(walk.o)
       _uct_playout in uct.a(walk.o)
       _uct_playout in uct.a(walk.o)
       _uct_playout in uct.a(walk.o)
       _uct_playout in uct.a(walk.o)
       _uct_playout in uct.a(walk.o)
       _uct_playout in uct.a(walk.o)
       _uct_genmoves in uct.a(slave.o)
       _uct_genmoves in uct.a(slave.o)
       _uct_genmoves in uct.a(slave.o)
       _uct_genmoves in uct.a(slave.o)
       _uct_genmoves in uct.a(slave.o)
       _uct_genmoves in uct.a(slave.o)
   "___sync_fetch_and_sub", referenced from:
       _tree_done_node in uct.a(tree.o)
       _tree_done_node in uct.a(tree.o)
       _tree_done_node in uct.a(tree.o)
       _tree_done_node in uct.a(tree.o)
       _tree_done_node in uct.a(tree.o)
       _tree_done_node in uct.a(tree.o)
       _tree_done_node in uct.a(tree.o)
       _tree_done_node in uct.a(tree.o)
       _tree_done_node in uct.a(tree.o)
       _tree_done in uct.a(tree.o)
       _tree_done in uct.a(tree.o)
       _tree_done in uct.a(tree.o)
       _tree_age_node in uct.a(tree.o)
       _tree_age_node in uct.a(tree.o)
       _tree_age_node in uct.a(tree.o)
       _tree_age_node in uct.a(tree.o)
       _tree_age_node in uct.a(tree.o)
       _tree_age_node in uct.a(tree.o)
       _tree_age_node in uct.a(tree.o)
       _tree_age_node in uct.a(tree.o)
       _tree_age_node in uct.a(tree.o)
       _tree_done_node_worker in uct.a(tree.o)
       _tree_promote_node in uct.a(tree.o)
       _tree_promote_node in uct.a(tree.o)
       _tree_promote_node in uct.a(tree.o)
   "___sync_lock_test_and_set", referenced from:
       _uct_playout in uct.a(walk.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [zzgo] Error 1





More information about the Computer-go mailing list