Trying to compile syzygy with mingw

Discussion of chess software programming and technical issues.

Moderator: Ras

jwes
Posts: 778
Joined: Sat Jul 01, 2006 7:11 am

Trying to compile syzygy with mingw

Post by jwes »

I installed mingw so I could generate 6 man tbs rather than try to download them. I downloaded the zip file from github and ran make all when I got this:

Code: Select all

C:\Users\j\Documents\Visual Studio 2013\Projects\tb-master\src>make all
make[1]: Entering directory `C:/Users/j/Documents/Visual Studio 2013/Projects/tb-master/src'
Makefile.general:23: .depsr/tbgen.P: No such file or directory
Makefile.general:23: .depsr/tbgenp.P: No such file or directory
Makefile.general:23: .depsr/permute.P: No such file or directory
Makefile.general:23: .depsr/compress.P: No such file or directory
Makefile.general:23: .depsr/threads.P: No such file or directory
Makefile.general:23: .depsr/lz4.P: No such file or directory
Makefile.general:23: .depsr/tbver.P: No such file or directory
Makefile.general:23: .depsr/tbverp.P: No such file or directory
Makefile.general:23: .depsr/decompress.P: No such file or directory
Makefile.general:23: .depsr/checksum.P: No such file or directory
Makefile.general:23: .depsr/city-c.P: No such file or directory
Makefile.general:23: .depsr/tbcheck.P: No such file or directory
Makefile.general:23: .depsr/util.P: No such file or directory
A subdirectory or file -p already exists.
Error occurred while processing: -p.
A subdirectory or file .depsr already exists.
Error occurred while processing: .depsr.
make[1]: *** [.depsr/util.P] Error 1
make[1]: Leaving directory `C:/Users/j/Documents/Visual Studio 2013/Projects/tb-master/src'
make: *** [rtbgen] Error 2
Can someone tell me what simple thing I'm doing wrong?
User avatar
velmarin
Posts: 1600
Joined: Mon Feb 21, 2011 9:48 am

Re: Trying to compile syzygy with mingw

Post by velmarin »

My advice would be that you download the tablebases.
With a decent connection not so hard.
Generate them requires a good machine and a lot of time. :cry:
link: http://tablebase.sesse.net/syzygy/
jwes
Posts: 778
Joined: Sat Jul 01, 2006 7:11 am

Re: Trying to compile syzygy with mingw

Post by jwes »

velmarin wrote:My advice would be that you download the tablebases.
With a decent connection not so hard.
Generate them requires a good machine and a lot of time. :cry:
link: http://tablebase.sesse.net/syzygy/
I have a pretty good machine and not much of an internet connection.
syzygy
Posts: 5896
Joined: Tue Feb 28, 2012 11:56 pm

Re: Trying to compile syzygy with mingw

Post by syzygy »

jwes wrote:I installed mingw so I could generate 6 man tbs rather than try to download them.
You installed mingw, but you're compiling with Visual Studio 2013? Maybe the two can somehow work together (don't know), but your installation certainly is different from mine.

If you can't get it to compile, you can try the binaries I attached here.
jwes
Posts: 778
Joined: Sat Jul 01, 2006 7:11 am

Re: Trying to compile syzygy with mingw

Post by jwes »

syzygy wrote:
jwes wrote:I installed mingw so I could generate 6 man tbs rather than try to download them.
You installed mingw, but you're compiling with Visual Studio 2013? Maybe the two can somehow work together (don't know), but your installation certainly is different from mine.

If you can't get it to compile, you can try the binaries I attached here.
I extracted syzygy to a subdirectory of my VS project files as that is where all my source code is. Then I opened the mingw cmd prompt, changed directory to the src subdir, and ran make all, with the results I posted. I don't generally use mingw or linux, so I have no idea what I did wrong. I downloaded mingw from https://sourceforge.net/projects/mingw-w64/. Thank you for the windows binaries. I will probably use them though I would like to have mingw working.
User avatar
lantonov
Posts: 216
Joined: Sun Apr 13, 2014 5:19 pm

Re: Trying to compile syzygy with mingw

Post by lantonov »

jwes wrote:I installed mingw so I could generate 6 man tbs rather than try to download them. I downloaded the zip file from github and ran make all when I got this:

Code: Select all

C:\Users\j\Documents\Visual Studio 2013\Projects\tb-master\src>make all
make[1]: Entering directory `C:/Users/j/Documents/Visual Studio 2013/Projects/tb-master/src'
Makefile.general:23: .depsr/tbgen.P: No such file or directory
Makefile.general:23: .depsr/tbgenp.P: No such file or directory
Makefile.general:23: .depsr/permute.P: No such file or directory
Makefile.general:23: .depsr/compress.P: No such file or directory
Makefile.general:23: .depsr/threads.P: No such file or directory
Makefile.general:23: .depsr/lz4.P: No such file or directory
Makefile.general:23: .depsr/tbver.P: No such file or directory
Makefile.general:23: .depsr/tbverp.P: No such file or directory
Makefile.general:23: .depsr/decompress.P: No such file or directory
Makefile.general:23: .depsr/checksum.P: No such file or directory
Makefile.general:23: .depsr/city-c.P: No such file or directory
Makefile.general:23: .depsr/tbcheck.P: No such file or directory
Makefile.general:23: .depsr/util.P: No such file or directory
A subdirectory or file -p already exists.
Error occurred while processing: -p.
A subdirectory or file .depsr already exists.
Error occurred while processing: .depsr.
make[1]: *** [.depsr/util.P] Error 1
make[1]: Leaving directory `C:/Users/j/Documents/Visual Studio 2013/Projects/tb-master/src'
make: *** [rtbgen] Error 2
Can someone tell me what simple thing I'm doing wrong?
You have to set the path to all these files that the compiler can't find (tbgen.P etc). It would be easier with a *.bat file and a PATH= command.
syzygy
Posts: 5896
Joined: Tue Feb 28, 2012 11:56 pm

Re: Trying to compile syzygy with mingw

Post by syzygy »

lantonov wrote:You have to set the path to all these files that the compiler can't find (tbgen.P etc). It would be easier with a *.bat file and a PATH= command.
It is normal that the .P files are not found on the first run. They are being created.

The problem starts with "A subdirectory or file -p already exists."

It seems mkdir does not understand the -p option. The point of "mkdir -p NEWDIR" is to prevent mkdir from complaining if NEWDIR already exists, but instead mkdir is trying to create a "-p" directory and complains that it exists...

So the first question is whether mingw's mkdir is being run.