Here are two e-mail messages which need to be taken into account in revising 2.7.248. ========================================================= At 11:07 AM 8/7/2001 -0700, Daniel Bump wrote: >I've put up GNU Go 2.7.248. > >This is a big revision. Hopefully the next one will will be >just bug and portability fixes and maybe 2.7.250 = 3.0.0. This build broke VC - not badly. >Please, test everything, and build on different platforms! > >- moyo.c and analyze.c removed from the distribution requires changing engine/engine.dsp - sent separately to Dan. >- VC++ warnings addressed This line should be added to config.vc, missed the build: #pragma warning(disable: 4244 4305) with these 2 changes, build proceeds with only 3 warnings: --------------------Configuration: utils - Win32 Release-------------------- Performing Custom Build Step on ..\config.vc 1 file(s) copied. Compiling... getopt.c getopt1.c gg_utils.c random.c Creating library... --------------------Configuration: board - Win32 Release-------------------- Compiling... board.c cache.c globals.c hash.c printutils.c sgffile.c showbord.c Creating library... --------------------Configuration: sgfgen - Win32 Release-------------------- Compiling... sgfgen.c Linking... --------------------Configuration: sgf - Win32 Release-------------------- Compiling... sgf_utils.c sgfnode.c sgftree.c Creating library... --------------------Configuration: engine - Win32 Release-------------------- Compiling... aftermath.c clock.c dragon.c filllib.c fuseki.c genmove.c influence.c interface.c life.c matchpat.c move_reasons.c optics.c owl.c reading.c C:\Users\downloads\gnu\gnugo-2.7.248\engine\owl.c(3877) : warning C4761: integral size mismatch in argument; conversion supplied score.c semeai.c sgfdecide.c shapes.c utils.c worm.c Creating library... --------------------Configuration: joseki - Win32 Release-------------------- Compiling... joseki.c Linking... --------------------Configuration: mkeyes - Win32 Release-------------------- Compiling... mkeyes.c Linking... --------------------Configuration: dfa - Win32 Release-------------------- Compiling... dfa.c transform.c Creating library... --------------------Configuration: mkpat - Win32 Release-------------------- Compiling... mkpat.c C:\Users\downloads\gnu\gnugo-2.7.248\patterns\mkpat.c(1420) : warning C4013: 'gg_getopt' undefined; assuming extern returning int Linking... --------------------Configuration: patterns - Win32 Release-------------------- Performing Custom Build Step on .\takamoku.sgf Performing Custom Build Step on .\sansan.sgf Performing Custom Build Step on .\mokuhazushi.sgf Performing Custom Build Step on .\komoku.sgf Performing Custom Build Step on .\hoshi.sgf Performing Custom Build Step on .\patterns.db patterns.db patterns2.db 1 file(s) copied. Performing Custom Build Step on .\owl_vital_apats.db release\mkpat: invalid option -- d Invalid argument ignored Performing Custom Build Step on .\owl_defendpats.db Release\mkpat: invalid option -- d Invalid argument ignored Performing Custom Build Step on .\owl_attackpats.db Release\mkpat: invalid option -- d Invalid argument ignored Performing Custom Build Step on .\joseki.db hoshi.db komoku.db sansan.db mokuhazushi.db takamoku.db 1 file(s) copied. Performing Custom Build Step on .\influence.db Performing Custom Build Step on .\fuseki9.db Performing Custom Build Step on .\fuseki19.db Performing Custom Build Step on .\eyes.db Performing Custom Build Step on .\endgame.db Performing Custom Build Step on .\defense.db Performing Custom Build Step on .\conn.db Performing Custom Build Step on .\barriers.db Performing Custom Build Step on .\attack.db Compiling... apatterns.c barriers.c conn.c connections.c dpatterns.c endgame.c eyes.c fuseki19.c fuseki9.c helpers.c influence.c josekidb.c owl_attackpat.c owl_defendpat.c owl_vital_apat.c patterns.c Creating library... --------------------Configuration: fuseki - Win32 Release-------------------- Compiling... extract_fuseki.c Linking... --------------------Configuration: gnugo - Win32 Release-------------------- Compiling... gmp.c gtp.c main.c owl.c play_ascii.c C:\Users\downloads\gnu\gnugo-2.7.248\engine\owl.c(3877) : warning C4761: integral size mismatch in argument; conversion supplied play_gmp.c play_gtp.c play_solo.c play_test.c Linking... gnugo.exe - 0 error(s), 3 warning(s) ========================================================= Trevor wrote: > with these 2 changes, build proceeds with only 3 warnings: ... > Performing Custom Build Step on .\owl_vital_apats.db > release\mkpat: invalid option -- d > Invalid argument ignored Your patterns.dsp contains this line: "owl_attackpat.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" Release\mkpat -d -m -b owl_attackpat owl_attackpat.c Why is the -d option there? The -d and -m options have to do with the wired dfa which is currently broke. Tanguy wants to fix it before 3.0.0 but it is still somewhat experimental and isn't used unless you configure --enable-dfa. As far as I know the mkpat options for this should just be -b. Here is the mkpat options are in my Makefile: ./mkpat -c conn < ./conn.db >conn.c cat ./patterns.db ./patterns2.db | ./mkpat -b pat >patterns.c cat ./attack.db | ./mkpat -X attpat >apatterns.c cat ./defense.db | ./mkpat defpat >dpatterns.c ./mkpat -c influencepat < ./influence.db >influence.c ./mkpat -c -b barrierspat < ./barriers.db >barriers.c cat ./endgame.db | ./mkpat -b endpat >endgame.c ./mkpat -b owl_attackpat < ./owl_attackpats.db >owl_attackpat.c ./mkpat -b owl_vital_apat < ./owl_vital_apats.db >owl_vital_apat.c ./mkpat -b owl_defendpat < ./owl_defendpats.db >owl_defendpat.c ./mkpat -b -f fuseki9 < ./fuseki9.db >fuseki9.c ./mkpat -b -f fuseki19 < ./fuseki19.db >fuseki19.c cat hoshi.db komoku.db sansan.db mokuhazushi.db takamoku.db | ./mkpat -b joseki >josekidb.c I'm not sure why dpatterns.c does not have the -b option. We definitely need the -c option for influence.c, barriers.c and conn.c. Mkpat options: options : -v = verbose -c = compile connections database (default is pattern database) -b = allow both colors to be anchor (default is only O) -X = allow only X to be anchor (default is only O) -f = compile a fullboard pattern database -m = try to place the anchor in the center of the pattern (reduce the dfa size) If compiled with --enable-dfa the following options also work:n\ -d = generate a .dfa file -D = write the dfa directly in c output. -V = dfa verbose level Dan