Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Can't install on Debian Bullseye #113

Open
RagingFlames opened this issue Mar 4, 2020 · 8 comments
Open

Can't install on Debian Bullseye #113

RagingFlames opened this issue Mar 4, 2020 · 8 comments

Comments

@RagingFlames
Copy link

I'm trying to run the xlinux_install script but it isn't working. I manually found and installed all the dependencies. This is what it return when I try to install.

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);
      |     ^~~~~~~
rm: cannot remove 'LCEngine2.so': No such file or directory
running build_ext
x86_64
cp: cannot stat 'LCEngine2.so': No such file or directory
cp: cannot stat 'LCEngine2.so': No such file or directory

From looking online, the latest guide on how to install this on linux is from 5 years ago, is it possible to get a new guide?

@xaizek
Copy link

xaizek commented Mar 4, 2020

It works for me if I change LCEngine2.so to LCEngine4.so in LCEngine/xcython_linux.sh.

@RagingFlames
Copy link
Author

RagingFlames commented Mar 4, 2020

Are there any plans to update the instructions or change that by default?
It also still doesn't work, with a similar 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);
      |     ^~~~~~~
rm: cannot remove 'LCEngine4.so': No such file or directory
running build_ext
x86_64
cp: cannot stat 'LCEngine4.so': No such file or directory
cp: cannot stat 'LCEngine4.so': No such file or directory

@xaizek
Copy link

xaizek commented Mar 4, 2020

Have no idea why @lukasmonk hasn't updated that script yet.

Are you running the script while inside LCEngine/ directory? running build_ext should be followed by LCEngine4.so being build (invocations of gcc).

@lukasmonk
Copy link
Owner

Changed 2 with 4.
All my efforts at the moment are focused on the new version of the program with python 3.7 and pyside2 / qt5
In the new program I would like to create a version of Linux / 64.
For now I will settle for this new version to work for Windows32.

@RagingFlames
Copy link
Author

Is there a time line for the Linux version? Is it worth just waiting, or should I keep googling these errors?

@lukasmonk
Copy link
Owner

I would like to publish the windows version after summer, and from that moment, once it stabilizes, I will try to work the Linux version. All my efforts are dedicated to this new version (LucasChessR).

@RagingFlames
Copy link
Author

RagingFlames commented Mar 5, 2020

Alright, I understand. If there is nothing more that can be done at the moment to make this work on Linux you can close this issue if you want, or leave it open until its working for reference.

@xaizek
Copy link

xaizek commented Mar 6, 2020

It works on Linux. Look through scripts and files in LCEngine/ directory, maybe you'll figure it out. For example xcython_linux.sh invokes python command. Is that python2 on your system? If not, you should change that to python2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants