bsamseth / Goldfish

Goldfish - Stockfish's very distant and not so bright cousin - a UCI chess engine
MIT License
7 stars 2 forks source link

Compiling issues under MSYS2+MinGW #35

Closed tpoppins closed 5 years ago

tpoppins commented 5 years ago

No trouble compiling v1.11.1. Since v1.11.2 and including v1.12 MSYS2 complains about a lot of header files missing (ansi.h, newlib.h etc.), which are apparently standard on Posix but not Windows.

After copying the missing .h files from my Cygwin install there are a lot of errors, which may be the result of incompatibility between the existing MinGW defs and those "imported" from Cygwin.

The complete log follows.

admin@NA3 MINGW64 ~ $ cd goldfish-master/build

admin@NA3 MINGW64 ~/goldfish-master/build
$ export CXX=g++

admin@NA3 MINGW64 ~/goldfish-master/build
$ cmake .. -DCMAKE_BUILD_TYPE=Release
System is unknown to cmake, create:
Platform/MINGW64_NT-6.1 to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please send that file to cmake@www.cmake.org.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/admin/goldfish-master/build

admin@NA3 MINGW64 ~/goldfish-master/build
$ make
[  2%] Building CXX object CMakeFiles/engine.dir/src/benchmark.cpp.obj
In file included from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/types.h:141:18: error: conflicting declaration 'typedef __ino_t ino_t'
 typedef __ino_t  ino_t;  /* inode number */
                  ^~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/cwchar:44,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/postypes.h:40,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/char_traits.h:40,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:40,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/wchar.h:411:26: note: previous declaration as 'typedef short unsigned int ino_t'
   typedef unsigned short ino_t;
                          ^~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:180:14: error: conflicting declaration 'typedef long int pthread_once_t'
 typedef long pthread_once_t;
              ^~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/sys/types.h:225,
                 from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/_pthreadtypes.h:32:1: note: previous declaration as 'typedef struct pthread_once_t pthread_once_t'
 pthread_once_t;
 ^~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:181:18: error: conflicting declaration 'typedef unsigned int pthread_mutexattr_t'
 typedef unsigned pthread_mutexattr_t;
                  ^~~~~~~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/sys/types.h:225,
                 from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/_pthreadtypes.h:20:55: note: previous declaration as 'typedef struct __pthread_mutexattr_t* pthread_mutexattr_t'
 typedef struct __pthread_mutexattr_t {char __dummy;} *pthread_mutexattr_t;
                                                       ^~~~~~~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:182:18: error: conflicting declaration 'typedef unsigned int pthread_key_t'
 typedef unsigned pthread_key_t;
                  ^~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/sys/types.h:225,
                 from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/_pthreadtypes.h:18:49: note: previous declaration as 'typedef struct __pthread_key_t* pthread_key_t'
 typedef struct __pthread_key_t {char __dummy;} *pthread_key_t;
                                                 ^~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:183:15: error: conflicting declaration 'typedef void* pthread_barrierattr_t'
 typedef void *pthread_barrierattr_t;
               ^~~~~~~~~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/sys/types.h:225,
                 from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/_pthreadtypes.h:23:57: note: previous declaration as 'typedef struct __pthread_barrierattr_t* pthread_barrierattr_t'
 typedef struct __pthread_barrierattr_t {char __dummy;} *pthread_barrierattr_t;
                                                         ^~~~~~~~~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:184:13: error: conflicting declaration 'typedef int pthread_condattr_t'
 typedef int pthread_condattr_t;
             ^~~~~~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/sys/types.h:225,
                 from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/_pthreadtypes.h:21:54: note: previous declaration as 'typedef struct __pthread_condattr_t* pthread_condattr_t'
 typedef struct __pthread_condattr_t {char __dummy;} *pthread_condattr_t;
                                                      ^~~~~~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:185:13: error: conflicting declaration 'typedef int pthread_rwlockattr_t'
 typedef int pthread_rwlockattr_t;
             ^~~~~~~~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/sys/types.h:225,
                 from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/_pthreadtypes.h:35:56: note: previous declaration as 'typedef struct __pthread_rwlockattr_t* pthread_rwlockattr_t'
 typedef struct __pthread_rwlockattr_t {char __dummy;} *pthread_rwlockattr_t;
                                                        ^~~~~~~~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:196:19: error: conflicting declaration 'typedef uintptr_t pthread_t'
 typedef uintptr_t pthread_t;
                   ^~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/sys/types.h:225,
                 from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/_pthreadtypes.h:15:45: note: previous declaration as 'typedef struct __pthread_t* pthread_t'
 typedef struct __pthread_t {char __dummy;} *pthread_t;
                                             ^~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:220:8: error: redefinition of 'struct timespec'
 struct timespec {
        ^~~~~~~~
In file included from C:/MinGW/msys64/home/admin/goldfish-master/include/machine/types.h:21,
                 from C:/MinGW/msys64/mingw64/include/sys/types.h:226,
                 from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/_timespec.h:45:8: note: previous definition of 'struct timespec'
 struct timespec {
        ^~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:251:16: error: using typedef-name 'pthread_attr_t' after 'struct'
 typedef struct pthread_attr_t pthread_attr_t;
                ^~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/sys/types.h:225,
                 from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/_pthreadtypes.h:19:50: note: 'pthread_attr_t' has a previous declaration here
 typedef struct __pthread_attr_t {char __dummy;} *pthread_attr_t;
                                                  ^~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:251:31: error: conflicting declaration 'typedef int pthread_attr_t'
 typedef struct pthread_attr_t pthread_attr_t;
                               ^~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/sys/types.h:225,
                 from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/_pthreadtypes.h:19:50: note: previous declaration as 'typedef struct __pthread_attr_t* pthread_attr_t'
 typedef struct __pthread_attr_t {char __dummy;} *pthread_attr_t;
                                                  ^~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:252:8: error: using typedef-name 'pthread_attr_t' after 'struct'
 struct pthread_attr_t
        ^~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/sys/types.h:225,
                 from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/_pthreadtypes.h:19:50: note: 'pthread_attr_t' has a previous declaration here
 typedef struct __pthread_attr_t {char __dummy;} *pthread_attr_t;
                                                  ^~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:268:18: error: conflicting declaration 'typedef intptr_t pthread_spinlock_t'
 typedef intptr_t pthread_spinlock_t;
                  ^~~~~~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/sys/types.h:225,
                 from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/_pthreadtypes.h:33:54: note: previous declaration as 'typedef struct __pthread_spinlock_t* pthread_spinlock_t'
 typedef struct __pthread_spinlock_t {char __dummy;} *pthread_spinlock_t;
                                                      ^~~~~~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:269:18: error: conflicting declaration 'typedef intptr_t pthread_mutex_t'
 typedef intptr_t pthread_mutex_t;
                  ^~~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/sys/types.h:225,
                 from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/_pthreadtypes.h:16:51: note: previous declaration as 'typedef struct __pthread_mutex_t* pthread_mutex_t'
 typedef struct __pthread_mutex_t {char __dummy;} *pthread_mutex_t;
                                                   ^~~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:270:18: error: conflicting declaration 'typedef intptr_t pthread_cond_t'
 typedef intptr_t pthread_cond_t;
                  ^~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/sys/types.h:225,
                 from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/_pthreadtypes.h:22:50: note: previous declaration as 'typedef struct __pthread_cond_t* pthread_cond_t'
 typedef struct __pthread_cond_t {char __dummy;} *pthread_cond_t;
                                                  ^~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:271:18: error: conflicting declaration 'typedef intptr_t pthread_rwlock_t'
 typedef intptr_t pthread_rwlock_t;
                  ^~~~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/sys/types.h:225,
                 from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/_pthreadtypes.h:34:52: note: previous declaration as 'typedef struct __pthread_rwlock_t* pthread_rwlock_t'
 typedef struct __pthread_rwlock_t {char __dummy;} *pthread_rwlock_t;
                                                    ^~~~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:272:15: error: conflicting declaration 'typedef void* pthread_barrier_t'
 typedef void *pthread_barrier_t;
               ^~~~~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/sys/types.h:225,
                 from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/_pthreadtypes.h:24:53: note: previous declaration as 'typedef struct __pthread_barrier_t* pthread_barrier_t'
 typedef struct __pthread_barrier_t {char __dummy;} *pthread_barrier_t;
                                                     ^~~~~~~~~~~~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ctime:42,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/chrono:41,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/search.hpp:10,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:4:
C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/time.h:60:16: error: conflicting declaration 'typedef long int clock_t'
   typedef long clock_t;
                ^~~~~~~
In file included from C:/MinGW/msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:64,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/sys/types.h:109:19: note: previous declaration as 'typedef long unsigned int clock_t'
 typedef _CLOCK_T_ clock_t;
                   ^~~~~~~
In file included from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/ext/atomicity.h:35,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/bits/basic_string.h:39,
                 from C:/MinGW/msys64/mingw64/include/c++/8.3.0/string:52,
                 from C:/MinGW/msys64/home/admin/goldfish-master/include/benchmark.hpp:3,
                 from C:/MinGW/msys64/home/admin/goldfish-master/src/benchmark.cpp:1:
C:/MinGW/msys64/mingw64/include/c++/8.3.0/mutex:633:30: error: could not convert '0' from 'int' to 'std::once_flag::__native_type' {aka 'pthread_once_t'}
     __native_type  _M_once = __GTHREAD_ONCE_INIT;
                              ^~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/engine.dir/build.make:63: CMakeFiles/engine.dir/src/benchmark.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:703: CMakeFiles/engine.dir/all] Error 2
make: *** [Makefile:95: all] Error 2

admin@NA3 MINGW64 ~/goldfish-master/build
$
tpoppins commented 5 years ago

Apologies, this MSYS2 install somehow got all screwed up, I'm testing a new install now.