ComStock 1.0.2 Stockfish with robobases

Discussion about chess-playing software (engines, hosts, opening books, platforms, etc...)
BB+
Posts: 1484
Joined: Thu Jun 10, 2010 4:26 am

Re: ComStock 1.0.2 Stockfish with robobases

Post by BB+ » Wed Jan 26, 2011 2:42 am

Error 2 error : expected an identifier C:\Users\PRIMA\Desktop\CSF-Copy\RobboTotalCode\RobboTotal_iniz.c 7 1 ComStockfish-102RBs-ICC-x64
Looks like line 7 of RobboTotal_iniz.c is bad. Probably "REGISTERED" is a restricted name. Try changing all occurrences of it to "REGISTERED0" or something.

As for folders, I really can figure out what Windows is doing. It likes to put everything in one folder, but I don't know if it keeps the internal structure.

BB+
Posts: 1484
Joined: Thu Jun 10, 2010 4:26 am

Re: ComStock 1.0.2 Stockfish with robobases

Post by BB+ » Wed Jan 26, 2011 2:46 am

Error 16 error : expression must have arithmetic or pointer type C:\Users\PRIMA\Desktop\CSF-Copy\RobboTripleCode\RobboTriple_iniz.c 624 1 ComStockfish-102RBs-ICC-x64
For this, eliminate the second half of that line (624 in RobboTriple_iniz.c). Have it just be

Code: Select all

if (hFind == INVALID_HANDLE_VALUE)
(as in IvanHoe, it seems) rather than include the "ffd == NULL" part.

BB+
Posts: 1484
Joined: Thu Jun 10, 2010 4:26 am

Re: ComStock 1.0.2 Stockfish with robobases

Post by BB+ » Wed Jan 26, 2011 2:59 am

Turns out that I'm supposed to track down some floating-point bug in our Windows build here, so I refreshed my memory on how to deal with Windows via attempting to build ComStock. :)

I had no linking errors after applying all the above fixes, though I did have to be careful whether or not it was in "Console" mode (I'm still not sure I understand this concept), and I ditched all the Gaviota stuff for simplicity. I was able to do "go depth 15", though the system is so ridiculous (MSVC2005, and I can only access it remotely with no copy/paste) that I can't be bothered to copy over RobboTripleBases and see if they actually works. But again, I didn't have any linking error beyond the Console mode question.

Prima
Posts: 328
Joined: Tue Dec 14, 2010 6:12 am

Re: ComStock 1.0.2 Stockfish with robobases

Post by Prima » Wed Jan 26, 2011 3:49 am

I applied the if (hFind == INVALID_HANDLE_VALUE), that is, from the if (hFind == INVALID_HANDLE_VALUE || ffd == NULL) I deleted the || ffd == NULL.
But the error still persists and will not compile.

Code: Select all

1>------ Build started: Project: CS-102RBs-IC-x64, Configuration: Release x64 ------
1>  benchmark.cpp
1>  bitbase.cpp
1>  bitboard.cpp
1>  book.cpp
1>  egtb.cpp
1>  endgame.cpp
1>  evaluate.cpp
1>  history.cpp
1>  main.cpp
1>  material.cpp
1>  misc.cpp
1>  move.cpp
1>  movegen.cpp
1>  movepick.cpp
1>  pawns.cpp
1>  position.cpp
1>  RobboTotalGlue.cpp
1>  RobboTripleGlue.cpp
1>..\..\RobboTripleGlue.cpp(177): warning #47: incompatible redefinition of macro "MEMALIGN" (declared at line 18 of "..\..\RobboTripleCode/IH-win-linux.h")
1>    #define MEMALIGN(a, b, c) a = (uint64_t*) _aligned_malloc (c, b)
1>            ^
1>  
1>  san.cpp
1>  search.cpp
1>  timeman.cpp
1>  tt.cpp
1>  uci.cpp
1>  ucioption.cpp
1>  RobboTotal_iniz.c
1>..\..\RobboTotalCode\RobboTotal_iniz.c(7): error : expected an identifier
1>    boolean REGISTERED = FALSE;
1>            ^
1>  
1>..\..\RobboTotalCode\RobboTotal_iniz.c(13): warning #266: function "InitTotalBaseUtility" declared implicitly
1>      InitTotalBaseUtility ();
1>      ^
1>  
1>..\..\RobboTotalCode\RobboTotal_iniz.c(34): warning #266: function "DeRegisterRobboTotalBases" declared implicitly
1>      DeRegisterRobboTotalBases ();
1>      ^
1>  
1>..\..\RobboTotalCode\RobboTotal_iniz.c(61): error : expression must be a modifiable lvalue
1>      REGISTERED = TRUE;
1>      ^
1>  
1>..\..\RobboTotalCode\RobboTotal_iniz.c(86): error : expression must be a modifiable lvalue
1>      REGISTERED = FALSE;
1>      ^
1>  
1>  Robbo_cache.c
1>..\..\RobboTotalCode\Robbo_cache.c(22): warning #2330: argument of type "volatile unsigned __int64 *" is incompatible with parameter of type "void *" (dropping qualifiers)
1>          free (CACHE_INFO[i]);
1>                ^
1>  
1>  Robbo_decomp.c
1>  Robbo_iniz.c
1>  Robbo_iniz_IO.c
1>  Robbo_usage.c
1>..\..\RobboTotalCode\Robbo_usage.c(5): warning #47: incompatible redefinition of macro "LANCpez" (declared at line 199 of "..\..\RobboTotalCode\RobboTotalBase.h")
1>    #define LANCpez(u, x) (x) = lanc_pedone[u][x]
1>            ^
1>  
1>..\..\RobboTotalCode\Robbo_usage.c(6): warning #47: incompatible redefinition of macro "LANCnor" (declared at line 200 of "..\..\RobboTotalCode\RobboTotalBase.h")
1>    #define LANCnor(u, x) (x) = lanc_norm[u][x]
1>            ^
1>  
1>  RobboTotal_iniz.c
1>..\..\RobboTotal_iniz.c(7): error : expected an identifier
1>    boolean REGISTERED = FALSE;
1>            ^
1>  
1>..\..\RobboTotal_iniz.c(13): warning #266: function "InitTotalBaseUtility" declared implicitly
1>      InitTotalBaseUtility ();
1>      ^
1>  
1>..\..\RobboTotal_iniz.c(34): warning #266: function "DeRegisterRobboTotalBases" declared implicitly
1>      DeRegisterRobboTotalBases ();
1>      ^
1>  
1>..\..\RobboTotal_iniz.c(61): error : expression must be a modifiable lvalue
1>      REGISTERED = TRUE;
1>      ^
1>  
1>..\..\RobboTotal_iniz.c(86): error : expression must be a modifiable lvalue
1>      REGISTERED = FALSE;
1>      ^
1>  
1>  RobboTriple.c
1>..\..\RobboTripleCode\RobboTriple.c(241): warning #266: function "InitInitTripleBaseCache" declared implicitly
1>      InitInitTripleBaseCache (1);
1>      ^
1>  
1>..\..\RobboTripleCode\RobboTriple.c(242): warning #266: function "InitTripleHash" declared implicitly
1>      InitTripleHash (1);
1>      ^
1>  
1>..\..\RobboTripleCode\RobboTriple.c(295): warning #266: function "triple_statistica" declared implicitly
1>      triple_statistica ();
1>      ^
1>  
1>  RobboTripleDisk.c
1>..\..\RobboTripleCode\RobboTripleDisk.c(24): warning #2330: argument of type "volatile unsigned __int64 *" is incompatible with parameter of type "void *" (dropping qualifiers)
1>          free (TRIPLE_CACHE_NOTE[i]);
1>                ^
1>  
1>  RobboTripleValue.c
1>  RobboTriple_iniz.c
1>..\..\RobboTripleCode\RobboTriple_iniz.c(486): warning #266: function "STAT" declared implicitly
1>    	  if (STAT (NOME_FILE) == -1)
1>    	      ^
1>  
1>..\..\RobboTripleCode\RobboTriple_iniz.c(518): warning #266: function "STAT" declared implicitly
1>          if (STAT (NOME_FILE) == -1)
1>              ^
1>  
1>  RobboWeakLoad.c
1>..\..\RobboTripleCode\RobboWeakLoad.c(41): warning #266: function "SubsumeTripleSMP" declared implicitly
1>    	  if (!SubsumeTripleSMP () || PONDERING)
1>    	       ^
1>  
1>..\..\RobboTripleCode\RobboWeakLoad.c(44): warning #266: function "OfftoneTripleSMP" declared implicitly
1>          OfftoneTripleSMP ();
1>          ^
1>  
1>..\..\RobboTripleCode\RobboWeakLoad.c(53): warning #266: function "OfftoneTripleSMP" declared implicitly
1>      OfftoneTripleSMP ();
1>      ^
1>  
1>  Robbo_cache.c
1>..\..\Robbo_cache.c(22): warning #2330: argument of type "volatile unsigned __int64 *" is incompatible with parameter of type "void *" (dropping qualifiers)
1>          free (CACHE_INFO[i]);
1>                ^
1>  
1>  Robbo_decomp.c
1>  Robbo_iniz.c
1>  Robbo_iniz_IO.c
1>  Robbo_usage.c
1>..\..\Robbo_usage.c(5): warning #47: incompatible redefinition of macro "LANCpez" (declared at line 199 of "..\..\RobboTotalBase.h")
1>    #define LANCpez(u, x) (x) = lanc_pedone[u][x]
1>            ^
1>  
1>..\..\Robbo_usage.c(6): warning #47: incompatible redefinition of macro "LANCnor" (declared at line 200 of "..\..\RobboTotalBase.h")
1>    #define LANCnor(u, x) (x) = lanc_norm[u][x]
1>            ^
1>  
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
More error:

Code: Select all

Error	2	error : expected an identifier	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\RobboTotal_iniz.c	7	1	CS-102RBs-IC-x64
Error	10	error : expected an identifier	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotal_iniz.c	7	1	CS-102RBs-IC-x64
Error	5	error : expression must be a modifiable lvalue	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\RobboTotal_iniz.c	61	1	CS-102RBs-IC-x64
Error	6	error : expression must be a modifiable lvalue	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\RobboTotal_iniz.c	86	1	CS-102RBs-IC-x64
Error	13	error : expression must be a modifiable lvalue	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotal_iniz.c	61	1	CS-102RBs-IC-x64
Error	14	error : expression must be a modifiable lvalue	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotal_iniz.c	86	1	CS-102RBs-IC-x64

Warning	7	warning #2330: argument of type "volatile unsigned __int64 *" is incompatible with parameter of type "void *" (dropping qualifiers)	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\Robbo_cache.c	22	1	CS-102RBs-IC-x64

Warning	18	warning #2330: argument of type "volatile unsigned __int64 *" is incompatible with parameter of type "void *" (dropping qualifiers)	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTripleDisk.c	24	1	CS-102RBs-IC-x64

Warning	24	warning #2330: argument of type "volatile unsigned __int64 *" is incompatible with parameter of type "void *" (dropping qualifiers)	C:\Users\PRIMA\Desktop\CSF-Copy2\Robbo_cache.c	22	1	CS-102RBs-IC-x64

Warning	4	warning #266: function "DeRegisterRobboTotalBases" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\RobboTotal_iniz.c	34	1	CS-102RBs-IC-x64

Warning	12	warning #266: function "DeRegisterRobboTotalBases" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotal_iniz.c	34	1	CS-102RBs-IC-x64

Warning	15	warning #266: function "InitInitTripleBaseCache" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTriple.c	241	1	CS-102RBs-IC-x64

Warning	3	warning #266: function "InitTotalBaseUtility" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\RobboTotal_iniz.c	13	1	CS-102RBs-IC-x64

Warning	11	warning #266: function "InitTotalBaseUtility" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotal_iniz.c	13	1	CS-102RBs-IC-x64

Warning	16	warning #266: function "InitTripleHash" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTriple.c	242	1	CS-102RBs-IC-x64

Warning	22	warning #266: function "OfftoneTripleSMP" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboWeakLoad.c	44	1	CS-102RBs-IC-x64

Warning	23	warning #266: function "OfftoneTripleSMP" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboWeakLoad.c	53	1	CS-102RBs-IC-x64

Warning	19	warning #266: function "STAT" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTriple_iniz.c	486	1	CS-102RBs-IC-x64

Warning	20	warning #266: function "STAT" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTriple_iniz.c	518	1	CS-102RBs-IC-x64

Warning	21	warning #266: function "SubsumeTripleSMP" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboWeakLoad.c	41	1	CS-102RBs-IC-x64

Warning	17	warning #266: function "triple_statistica" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTriple.c	295	1	CS-102RBs-IC-x64

Warning	26	warning #47: incompatible redefinition of macro "LANCnor" (declared at line 200 of "..\..\RobboTotalBase.h")	C:\Users\KUFRE\Desktop\CSF-Copy2\Robbo_usage.c	6	1	CS-102RBs-IC-x64

Warning	9	warning #47: incompatible redefinition of macro "LANCnor" (declared at line 200 of "..\..\RobboTotalCode\RobboTotalBase.h")	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\Robbo_usage.c	6	1	CS-102RBs-IC-x64

Warning	25	warning #47: incompatible redefinition of macro "LANCpez" (declared at line 199 of "..\..\RobboTotalBase.h")	C:\Users\PRIMA\Desktop\CSF-Copy2\Robbo_usage.c	5	1	CS-102RBs-IC-x64

Warning	8	warning #47: incompatible redefinition of macro "LANCpez" (declared at line 199 of "..\..\RobboTotalCode\RobboTotalBase.h")	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\Robbo_usage.c	5	1	CS-102RBs-IC-x64

Warning	1	warning #47: incompatible redefinition of macro "MEMALIGN" (declared at line 18 of "..\..\RobboTripleCode/IH-win-linux.h")	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleGlue.cpp	177	1	CS-102RBs-IC-x64

BB+
Posts: 1484
Joined: Thu Jun 10, 2010 4:26 am

Re: ComStock 1.0.2 Stockfish with robobases

Post by BB+ » Wed Jan 26, 2011 3:58 am

1>..\..\RobboTotalCode\RobboTotal_iniz.c(7): error : expected an identifier
1> boolean REGISTERED = FALSE;
Read my previous comment. Change all occurrences of "REGISTERED" to "REGISTERED0" or something, as REGISTERED looks to be a reserved word.

Prima
Posts: 328
Joined: Tue Dec 14, 2010 6:12 am

Re: ComStock 1.0.2 Stockfish with robobases

Post by Prima » Wed Jan 26, 2011 4:45 am

I've modified all occurrences of REGISTERED to REGISTERED0. I still get 13 errors:

Code: Select all

1>  Robbo_iniz_IO.c
1>  Robbo_usage.c
1>..\..\Robbo_usage.c(5): warning #47: incompatible redefinition of macro "LANCpez" (declared at line 199 of "..\..\RobboTotalBase.h")
1>    #define LANCpez(u, x) (x) = lanc_pedone[u][x]
1>            ^
1>  
1>..\..\Robbo_usage.c(6): warning #47: incompatible redefinition of macro "LANCnor" (declared at line 200 of "..\..\RobboTotalBase.h")
1>    #define LANCnor(u, x) (x) = lanc_norm[u][x]
1>            ^
1>  
1>  xilink: executing 'link'
1>x64\Release\RobboTotal_iniz.obj : warning LNK4042: object specified more than once; extras ignored
1>x64\Release\Robbo_cache.obj : warning LNK4042: object specified more than once; extras ignored
1>x64\Release\Robbo_decomp.obj : warning LNK4042: object specified more than once; extras ignored
1>x64\Release\Robbo_iniz.obj : warning LNK4042: object specified more than once; extras ignored
1>x64\Release\Robbo_iniz_IO.obj : warning LNK4042: object specified more than once; extras ignored
1>x64\Release\Robbo_usage.obj : warning LNK4042: object specified more than once; extras ignored
1>egtb.obj : error LNK2019: unresolved external symbol tbcache_done referenced in function "void __cdecl close_egtb(void)" (?close_egtb@@YAXXZ)
1>egtb.obj : error LNK2019: unresolved external symbol tb_done referenced in function "void __cdecl close_egtb(void)" (?close_egtb@@YAXXZ)
1>egtb.obj : error LNK2019: unresolved external symbol tbpaths_done referenced in function "void __cdecl close_egtb(void)" (?close_egtb@@YAXXZ)
1>egtb.obj : error LNK2019: unresolved external symbol tb_probe_hard referenced in function "enum Value __cdecl probe_egtb(class Position &,int,bool,bool)" (?probe_egtb@@YA?AW4Value@@AEAVPosition@@H_N1@Z)
1>egtb.obj : error LNK2019: unresolved external symbol tb_probe_WDL_hard referenced in function "enum Value __cdecl probe_egtb(class Position &,int,bool,bool)" (?probe_egtb@@YA?AW4Value@@AEAVPosition@@H_N1@Z)
1>egtb.obj : error LNK2019: unresolved external symbol tb_probe_soft referenced in function "enum Value __cdecl probe_egtb(class Position &,int,bool,bool)" (?probe_egtb@@YA?AW4Value@@AEAVPosition@@H_N1@Z)
1>egtb.obj : error LNK2019: unresolved external symbol tb_probe_WDL_soft referenced in function "enum Value __cdecl probe_egtb(class Position &,int,bool,bool)" (?probe_egtb@@YA?AW4Value@@AEAVPosition@@H_N1@Z)
1>egtb.obj : error LNK2019: unresolved external symbol tbpaths_init referenced in function "void __cdecl init_egtb(void)" (?init_egtb@@YAXXZ)
1>egtb.obj : error LNK2019: unresolved external symbol tb_init referenced in function "void __cdecl init_egtb(void)" (?init_egtb@@YAXXZ)
1>egtb.obj : error LNK2019: unresolved external symbol tbcache_init referenced in function "void __cdecl init_egtb(void)" (?init_egtb@@YAXXZ)
1>egtb.obj : error LNK2019: unresolved external symbol tbstats_reset referenced in function "void __cdecl init_egtb(void)" (?init_egtb@@YAXXZ)
1>egtb.obj : error LNK2019: unresolved external symbol tbpaths_add referenced in function "void __cdecl init_egtb(void)" (?init_egtb@@YAXXZ)
1>C:\Users\KUFRE\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\x64\Release\CSF-102RBs-ICC-x64.exe : fatal error LNK1120: 12 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
And 26 warnings:

Code: Select all

Error	39	error LNK1120: 12 unresolved externals	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\x64\Release\CSF-102RBs-ICC-x64.exe	CSF-102RBs-ICC-x64

Error	28	error LNK2019: unresolved external symbol tb_done referenced in function "void __cdecl close_egtb(void)" (?close_egtb@@YAXXZ)	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj	CSF-102RBs-ICC-x64

Error	35	error LNK2019: unresolved external symbol tb_init referenced in function "void __cdecl init_egtb(void)" (?init_egtb@@YAXXZ)	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj	CSF-102RBs-ICC-x64

Error	30	error LNK2019: unresolved external symbol tb_probe_hard referenced in function "enum Value __cdecl probe_egtb(class Position &,int,bool,bool)" (?probe_egtb@@YA?AW4Value@@AEAVPosition@@H_N1@Z)	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj	CSF-102RBs-ICC-x64

Error	32	error LNK2019: unresolved external symbol tb_probe_soft referenced in function "enum Value __cdecl probe_egtb(class Position &,int,bool,bool)" (?probe_egtb@@YA?AW4Value@@AEAVPosition@@H_N1@Z)	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj	CSF-102RBs-ICC-x64

Error	31	error LNK2019: unresolved external symbol tb_probe_WDL_hard referenced in function "enum Value __cdecl probe_egtb(class Position &,int,bool,bool)" (?probe_egtb@@YA?AW4Value@@AEAVPosition@@H_N1@Z)	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj	CSF-102RBs-ICC-x64

Error	33	error LNK2019: unresolved external symbol tb_probe_WDL_soft referenced in function "enum Value __cdecl probe_egtb(class Position &,int,bool,bool)" (?probe_egtb@@YA?AW4Value@@AEAVPosition@@H_N1@Z)	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj	CSF-102RBs-ICC-x64

Error	27	error LNK2019: unresolved external symbol tbcache_done referenced in function "void __cdecl close_egtb(void)" (?close_egtb@@YAXXZ)	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj	CSF-102RBs-ICC-x64

Error	36	error LNK2019: unresolved external symbol tbcache_init referenced in function "void __cdecl init_egtb(void)" (?init_egtb@@YAXXZ)	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj	CSF-102RBs-ICC-x64

Error	38	error LNK2019: unresolved external symbol tbpaths_add referenced in function "void __cdecl init_egtb(void)" (?init_egtb@@YAXXZ)	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj	CSF-102RBs-ICC-x64

Error	29	error LNK2019: unresolved external symbol tbpaths_done referenced in function "void __cdecl close_egtb(void)" (?close_egtb@@YAXXZ)	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj	CSF-102RBs-ICC-x64

Error	34	error LNK2019: unresolved external symbol tbpaths_init referenced in function "void __cdecl init_egtb(void)" (?init_egtb@@YAXXZ)	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj	CSF-102RBs-ICC-x64

Error	37	error LNK2019: unresolved external symbol tbstats_reset referenced in function "void __cdecl init_egtb(void)" (?init_egtb@@YAXXZ)	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\egtb.obj	CSF-102RBs-ICC-x64

Warning	4	warning #2330: argument of type "volatile unsigned __int64 *" is incompatible with parameter of type "void *" (dropping qualifiers)	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\Robbo_cache.c	22	1	CSF-102RBs-ICC-x64

Warning	12	warning #2330: argument of type "volatile unsigned __int64 *" is incompatible with parameter of type "void *" (dropping qualifiers)	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTripleDisk.c	24	1	CSF-102RBs-ICC-x64

Warning	18	warning #2330: argument of type "volatile unsigned __int64 *" is incompatible with parameter of type "void *" (dropping qualifiers)	C:\Users\PRIMA\Desktop\CSF-Copy2\Robbo_cache.c	22	1	CSF-102RBs-ICC-x64

Warning	3	warning #266: function "DeRegisterRobboTotalBases" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\RobboTotal_iniz.c	34	1	CSF-102RBs-ICC-x64

Warning	8	warning #266: function "DeRegisterRobboTotalBases" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotal_iniz.c	34	1	CSF-102RBs-ICC-x64

Warning	9	warning #266: function "InitInitTripleBaseCache" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTriple.c	241	1	CSF-102RBs-ICC-x64

Warning	2	warning #266: function "InitTotalBaseUtility" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\RobboTotal_iniz.c	13	1	CSF-102RBs-ICC-x64

Warning	7	warning #266: function "InitTotalBaseUtility" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotal_iniz.c	13	1	CSF-102RBs-ICC-x64

Warning	10	warning #266: function "InitTripleHash" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTriple.c	242	1	CSF-102RBs-ICC-x64

Warning	16	warning #266: function "OfftoneTripleSMP" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboWeakLoad.c	44	1	CSF-102RBs-ICC-x64

Warning	17	warning #266: function "OfftoneTripleSMP" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboWeakLoad.c	53	1	CSF-102RBs-ICC-x64

Warning	13	warning #266: function "STAT" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTriple_iniz.c	486	1	CSF-102RBs-ICC-x64

Warning	14	warning #266: function "STAT" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTriple_iniz.c	518	1	CSF-102RBs-ICC-x64

Warning	15	warning #266: function "SubsumeTripleSMP" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboWeakLoad.c	41	1	CSF-102RBs-ICC-x64

Warning	11	warning #266: function "triple_statistica" declared implicitly	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleCode\RobboTriple.c	295	1	CSF-102RBs-ICC-x64

Warning	20	warning #47: incompatible redefinition of macro "LANCnor" (declared at line 200 of "..\..\RobboTotalBase.h")	C:\Users\PRIMA\Desktop\CSF-Copy2\Robbo_usage.c	6	1	CSF-102RBs-ICC-x64

Warning	6	warning #47: incompatible redefinition of macro "LANCnor" (declared at line 200 of "..\..\RobboTotalCode\RobboTotalBase.h")	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\Robbo_usage.c	6	1	CSF-102RBs-ICC-x64

Warning	19	warning #47: incompatible redefinition of macro "LANCpez" (declared at line 199 of "..\..\RobboTotalBase.h")	C:\Users\PRIMA\Desktop\CSF-Copy2\Robbo_usage.c	5	1	CSF-102RBs-ICC-x64

Warning	5	warning #47: incompatible redefinition of macro "LANCpez" (declared at line 199 of "..\..\RobboTotalCode\RobboTotalBase.h")	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTotalCode\Robbo_usage.c	5	1	CSF-102RBs-ICC-x64

Warning	1	warning #47: incompatible redefinition of macro "MEMALIGN" (declared at line 18 of "..\..\RobboTripleCode/IH-win-linux.h")	C:\Users\PRIMA\Desktop\CSF-Copy2\RobboTripleGlue.cpp	177	1	CSF-102RBs-ICC-x64

Warning	21	warning LNK4042: object specified more than once; extras ignored	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\x64\Release\RobboTotal_iniz.obj	1	1	CSF-102RBs-ICC-x64

Warning	22	warning LNK4042: object specified more than once; extras ignored	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\x64\Release\Robbo_cache.obj	1	1	CSF-102RBs-ICC-x64

Warning	23	warning LNK4042: object specified more than once; extras ignored	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\x64\Release\Robbo_decomp.obj	1	1	CSF-102RBs-ICC-x64

Warning	24	warning LNK4042: object specified more than once; extras ignored	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\x64\Release\Robbo_iniz.obj	1	1	CSF-102RBs-ICC-x64

Warning	25	warning LNK4042: object specified more than once; extras ignored	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\x64\Release\Robbo_iniz_IO.obj	1	1	CSF-102RBs-ICC-x64

Warning	26	warning LNK4042: object specified more than once; extras ignored	C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\CSF-102RBs-ICC-x64\x64\Release\Robbo_usage.obj	1	1	CSF-102RBs-ICC-x64
I've attached the very ComStock source files (and edited) I've worked with that is giving me errors/warnings. I took out the "egtb" folder as that was 1.20MB in size and wouldn't be able to upload it here.
Attachments
CSF-Copy2.7z
(144.54 KiB) Downloaded 122 times

BB+
Posts: 1484
Joined: Thu Jun 10, 2010 4:26 am

Re: ComStock 1.0.2 Stockfish with robobases

Post by BB+ » Wed Jan 26, 2011 4:52 am

Error 39 error LNK1120: 12 unresolved externals C:\Users\PRIMA\Desktop\CSF-Copy2\CSF-102RBs-ICC-x64\x64\Release\CSF-102RBs-ICC-x64.exe CSF-102RBs-ICC-x64
[...]
1>egtb.obj : error LNK2019: unresolved external symbol tbstats_reset referenced in function "void __cdecl init_egtb(void)" (?init_egtb@@YAXXZ)
So the unresolved symbols are:
tbcache_done
tb_done 
tbpaths_done 
tb_probe_hard referenced
tb_probe_hard 
tb_probe_WDL_hard
tb_probe_soft
tb_probe_WDL_soft
tbpaths_init
tb_init
tbcache_init
tbstats_reset
tbpaths_add
close_egtb
init_egtb
probe_egtb
I think these are all in Gaviota (that is, the egtb folder). When I got it to compile, I simply chucked the Gaviota usage (this involved mucking around in search.cpp a bit, and then excluding all these files from the Project).

Prima
Posts: 328
Joined: Tue Dec 14, 2010 6:12 am

Re: ComStock 1.0.2 Stockfish with robobases

Post by Prima » Wed Jan 26, 2011 5:10 am

Actually I had excluded the egtb folder. To make sure, I just made another recompile attempt and still got the 13 errors and 26 warnings. I do notice that the ComStock source has the egtb.h, egtb.cpp, endgame.cpp and endgame.h.

I'm guessing these might be the culprit since I had excluded the egtb folders containing the GTBs.

BB+
Posts: 1484
Joined: Thu Jun 10, 2010 4:26 am

Re: ComStock 1.0.2 Stockfish with robobases

Post by BB+ » Wed Jan 26, 2011 5:29 am

the ComStock source has the egtb.h, egtb.cpp, endgame.cpp and endgame.h.
My understanding is that egtb.cpp (and its header file) is from Peter C for GTB access, whilst endgame.cpp is standard to Stockfish. I deleted egtb.cpp, and this left four unresolved symbols if I recall correctly. I then got rid of the attempt_probe_egtb stuff in search.cpp, and also the init_egtb and close_egtb in some file that I forget. In other words, I kept on deleting functionality until it worked (as I say, I was in a hurry and just fooling around to refresh my memory as to how compiling under Windows worked)... Of course, it would be better to try to get it to work with GTBs still present. :) [Under Linux, it all "just works", with both GTBs and RobboBases].

Prima
Posts: 328
Joined: Tue Dec 14, 2010 6:12 am

Re: ComStock 1.0.2 Stockfish with robobases

Post by Prima » Wed Jan 26, 2011 8:07 am

I give up on ComStock. It just won't compile under Windows. I was hoping I could compile one for the public. It's really sad and a lost to the chess community because many Window OS owners won't get to see/enjoy the hard works of the ComStock programmers.

Anyway, thanks BB+ and Kingliveson for all the assistance.

Post Reply