Recently upgraded my system and tried installing lucaschess again.
I seem to get the error when i run the command bash xmk_linux.sh
. This is the error
lc.c: In function ‘pgn2pv’:
lc.c:169:13: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
169 | if( promotion ) sprintf(pv, "%s%c", pv, promotion);
| ^~
lc.c: In function ‘getMove’:
lc.c:211:5: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
211 | if( move.promotion ) sprintf(pv, "%s%c", pv, tolower(NAMEPZ[move.promotion]));
| ^~
lc.c: In function ‘getMoveEx’:
lc.c:255:5: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
255 | sprintf(info, "%s%c%c%c", info, promotion, castle, en_passant);
| ^~~~~~~
lc.c: In function ‘toSan’:
lc.c:288:13: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
288 | sprintf(sanMove, "%s=%c", sanMove, toupper(NAMEPZ[move.promotion]));
| ^~~~~~~
lc.c:306:9: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
306 | if( is_amb_ah ) sprintf(sanMove,"%s%c", sanMove, POS_AH[move.from][0]);
| ^~
lc.c:307:9: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
307 | if( is_amb_18 ) sprintf(sanMove,"%s%c", sanMove, POS_AH[move.from][1]);
| ^~
lc.c:308:9: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
308 | if(move.capture) sprintf(sanMove,"%sx", sanMove);
| ^~
lc.c:309:9: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
309 | sprintf(sanMove,"%s%s", sanMove, POS_AH[move.to]);
| ^~~~~~~
lc.c:316:13: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
316 | sprintf(sanMove,"%s#", sanMove);
| ^~~~~~~
lc.c:318:13: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
318 | sprintf(sanMove,"%s+", sanMove);
| ^~~~~~~
board.c: In function ‘board_fen’:
board.c:250:5: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
250 | sprintf(fen, "%s %d %d", fen, board.fifty, board.fullmove);
| ^~~~~~~
util.c: In function ‘get_ms’:
util.c:53:5: warning: ‘ftime’ is deprecated [-Wdeprecated-declarations]
53 | ftime(&buffer);
| ^~~~~
In file included from util.c:2:
/usr/include/x86_64-linux-gnu/sys/timeb.h:39:12: note: declared here
39 | extern int ftime (struct timeb *__timebuf)
Not sure what i have done wrong and it would be nice if somebody can help.