tryingsomestuff / Minic

A simple chess engine to learn and play with
GNU General Public License v3.0
96 stars 12 forks source link

Unable to build #5

Closed thomasahle closed 5 years ago

thomasahle commented 5 years ago

I tried building Minic on Mac. It complains about tbprobe.h not being found.

$ bash tools/build.sh
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
version dev
definition -DDEBUG_TOOL
target -march=native
Building minic_dev_linux_x64
-s -Wall -Wno-char-subscripts -Wno-reorder -DDEBUG_TOOL -DNDEBUG -O3 -flto -march=native --std=c++14
minic.cc:2817:32: warning: suggest braces around initialization of subobject [-Wmissing-braces]
    BitBoard mob[6][2]      = {0ull};
                               ^~~~
                               {   }
minic.cc:2970:10: fatal error: 'tbprobe.h' file not found
#include "tbprobe.h"
         ^~~~~~~~~~~
1 warning and 1 error generated.
tools/build.sh: line 59: tools/../Dist/minic_dev_linux_x64: No such file or directory
error: Could not read profile default.profdata: No such file or directory
minic.cc:2817:32: warning: suggest braces around initialization of subobject [-Wmissing-braces]
    BitBoard mob[6][2]      = {0ull};
                               ^~~~
                               {   }
minic.cc:2970:10: fatal error: 'tbprobe.h' file not found
#include "tbprobe.h"
         ^~~~~~~~~~~
1 warning and 2 errors generated.

Another smaller issue I had was

readlink: illegal option -- f
usage: readlink [-n] [file ...]

but I fixed that by simply removing readlink:

#dir=$(readlink -f $(dirname $0)/..)
dir=$(dirname $0)/..
tryingsomestuff commented 5 years ago

Hi,

You need fathom for this to work as stated in the README.md of Minic but this also can be disable just switching off the WITH_SYZYGY in Minic source code.

Regards

tryingsomestuff commented 5 years ago

About the readlink thing, I wasn't aware MACOS version of readlink didn't support "-f" option, indeed you can remove it safely.

tryingsomestuff commented 5 years ago

The warning about {} is also annoying a little, i'll fix that, thanks.

thomasahle commented 5 years ago

I checked out Fathom from the Minic directory and it worked!

Maybe put the note about Fathom in the Readme? I just followed "Linux : use the given build script (or make your own ...)", the Fathom stuff didn't look like something I needed to care about unless I particularly wanted SYZYGY.

tryingsomestuff commented 5 years ago

Thanks ;-)