Problem in compiling Cfish with MSYS2
Posted: Wed Aug 16, 2023 2:03 pm
I just don't know anymore how to compile Cfish... When I launch the command make -j profile-build ARCH=x86-64-bmi2 COMP=mingw I get the following error:
https://pastebin.com/x7SW5cba
Somebody, help!
https://pastebin.com/x7SW5cba
Code: Select all
In file included from In file included from C:/msys64/mingw64/include/minwinde
f.h:163gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m64 -DNDEBUG -O3 -DIS_64BIT -msse3 -mpopcnt -DUSE_POPCNT -DUSE_PEXT -msse4 -mbmi2 -DUSE_AVX2 -mavx2 -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_EMBEDDED -flto -c -o thread.o thread.c
C:/msys64/mingw64/include/minwindef.h:163,
from ,gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m64 -DNDEBUG -O3 -DIS_64BIT -msse3 -mpopcnt -DUSE_POPCNT -DUSE_PEXT -msse4 -mbmi2 -DUSE_AVX2 -mavx2 -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_EMBEDDED -flto -c -o timeman.o timeman.c
from ,
from gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m64 -DNDEBUG -O3 -DIS_64BIT -msse3 -mpopcnt -DUSE_POPCNT -DUSE_PEXT -msse4 -mbmi2 -DUSE_AVX2 -mavx2 -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_EMBEDDED -flto -c -o tt.o tt.c
C:/msys64/mingw64/include/windef.h:9C:/msys64/mingw64/inclC:/msys64/mingw64/include/windef.h:9C:/msy
s64/mingw64/include/windef.h:9,
from gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m64 -DNDEBUG -O3 -DIS_64BIT -msse3 -mpopcnt -DUSE_POPCNT -DUSE_PEXT -msse4 -mbmi2 -DUSE_AVX2 -mavx2 -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_EMBEDDED -flto -c -o uci.o uci.c
,
from In file included from ,
from C:/msys64/mingw64/include/windows.h:69C:
/msys64/mingw64/include/minwindef.h:163C:/msys64/mingw64/include/windows.h:69gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m64 -DNDEBUG -O3 -DIS_64BIT -msse3 -mpopcnt -DUSE_POPCNT -DUSE_PEXT -msse4 -mbmi2 -DUSE_AVX2 -mavx2 -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_EMBEDDED -flto -c -o ucioption.o ucioption.c
,
from ,gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m64 -DNDEBUG -O3 -DIS_64BIT -msse3 -mpopcnt -DUSE_POPCNT -DUSE_PEXT -msse4 -mbmi2 -DUSE_AVX2 -mavx2 -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_EMBEDDED -flto -c -o numa.o numa.c
from ,
from ,
from C:/msys64/mingw64/include/minwindef.
h:163gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m64 -DNDEBUG -O3 -DIS_64BIT -msse3 -mpopcnt -DUSE_POPCNT -DUSE_PEXT -msse4 -mbmi2 -DUSE_AVX2 -mavx2 -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_EMBEDDED -flto -c -o settings.o settings.c
,
from C:/msys64/mingw64/include/windef.h:9,
from gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m64 -DNDEBUG -O3 -DIS_64BIT -msse3 -mpopcnt -DUSE_POPCNT -DUSE_PEXT -msse4 -mbmi2 -DUSE_AVX2 -mavx2 -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_EMBEDDED -flto -c -o polybook.o polybook.c
,
from gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m64 -DNDEBUG -O3 -DIS_64BIT -msse3 -mpopcnt -DUSE_POPCNT -DUSE_PEXT -msse4 -mbmi2 -DUSE_AVX2 -mavx2 -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_EMBEDDED -flto -c -o nnue.o nnue.c
,
from ,
from ,
from bitboard.h:26C:/msys64/mingw64/include/win
def.h:9 ,
from ,
from ,
from ,
from evaluate.c:23C:/msys64/mingw64/include/w
indows.h:69 bitboard.h:26 benchmark.c:2
6C:/msys64/mingw64/include/windows.h:69,
from :
types.h:53,
from C:/msys64/mingw64/include/minwindef.h:163C:/msys64/mingw64/include/minwindef.h
:163:
,
,
from C:/msys64/mingw64/include/minwindef.h:163thread.h:50:62: types.h
:53 ,
from ,
from ,
from misc.c:27C:/msys64/mingw64/include/windef.h:9,
from main.c:23 ,
from ,
from ,
from C:/msys64/mingw64/include/windef.h:9bitboard.h:26:
movegen.h:24C:/msys64/mingw64/include/windef.h:9:
thread.h:50:62:,
from error: thread.h:50:62:,
from ,
from ,
from expected identifier before 'movepick.h:26,
from C:/msys64/mingw64/include/windows.h:69C:/msys64/mingw64/include/windows.h:69ex
pected identifier before ' ,
from C:/msys64/mingw64/include/windows.h:69( pawns.c:25 ,
from ,
from error: types.h:53,
from error: ' token
50 | THREAD_SLEEP, THREAD_SEARCH, THREAD_TT_CLEAR, THREAD_EXIT, :
,
from ,
from types.h:53thread.h:50:62: movepick.c:23types.h:53ex
pected identifier before ' ' token
50 | THREAD_SLEEP, THREAD_SEARCH, (,
from THREAD_RESUME(:
,
,
from
| thread.h:50:62:,
from misc.h:33bitboard.h:26
| ' token
50 | THREAD_SLEEP, THREAD_SEARCH, THREAD_TT_CLEAR, THREAD_EXIT, bitboard.h:26^~~~~~~~~~~~~^~~~
~~~~~~~~~error: ,
from ,
from ' token
50 | THREAD_SLEEP THREAD_RESUMEsearch.h:24,
from THREAD_RESUME
expected identifier before ':
position.c:6(
| error: In file included from tb
probe.c:12
|
thread.h:50:62:,
from :
' token
^~~~~~~~~~~~~timeman.c:24C:/msy
s64/mingw64/include/minwindef.h:163THREAD_RESUME thread.h:5
0:62::
:
,
from
|
C:/msys64/mingw64/include/windef.h:9 expected identifier before ' (^~~~~~~~~~~~
~,
thread.h:50:62:error: ' token
50 | THREAD_SLEEP, THREAD_SEARCH, THREAD_TT_CLEAR, THRE error: C:/msys64/mingw64/includ
e/windows.h:69print_engine_info
':
( ,
from ' token
50 | THREAD_SLEEP, THREAD_SEARCH, THREAD_TT_CLEAR, THREAD_EXIT, misc.c:60:21:types
.h:53' token
50 (error: THREAD_RESUME
| ,
from ' token
50 | THREAD_SLEEP, THREAD_SEARCH, THREAD_TT_CLEAR, THREAD_EXIT,
| ^~~~~~~~~~~~~expected identifie
r before 'endgame.h:24
| THREAD_RESUMEvariable '^~~~~~~~
~~~~~
(,
from ^~~~~~~~~~~~~
| year
' token
50 | THREAD_SLEEP, THREAD_SEARCH, THREAD_TT_CLEAR, THREAD_EXIT, material.h:24
THREAD_RESUME ,
from
-Wunused-but-set-variablethread
.c:23^~~~~~~~~~~~~]
60 | int day, month, :
yearthread.h:50:62:;
| ^~~~error:
expected identifier before 'misc.c:60:9:( ' token
50 | THREAD_SLEEP, THREAD_SEARCH, THREAD_TT_CLEAR, THREAD_EXIT, warning: THREAD_RESUMEvariable
'
| day^~~~~~~~~~~~~' set but not u
sed [
-Wunused-but-set-variable]
60 | int day, month, year;
| ^~~
In file included from C:/msys64/mingw64/include/minwindef.h:163,
from C:/msys64/mingw64/include/windef.h:9,
from C:/msys64/mingw64/include/windows.h:69,
from types.h:53,
from bitboard.h:26,
from tt.c:28:
thread.h:50:62: error: expected identifier before '(' token
50 | THREAD_SLEEP, THREAD_SEARCH, THREAD_TT_CLEAR, THREAD_EXIT, THREAD_RESUME
| ^~~~~~~~~~~~~make[2]: *** [<builtin>: evaluate.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [<builtin>: position.o] Error 1
make[2]: *** [<builtin>: timeman.o] Error 1
make[2]: *** [<builtin>: search.o] Error 1
make[2]: *** [<builtin>: movepick.o] Error 1
make[2]: *** [<builtin>: pawns.o] Error 1
make[2]: *** [<builtin>: benchmark.o] Error 1
make[2]: *** [<builtin>: thread.o] Error 1
make[2]: *** [<builtin>: main.o] Error 1
make[2]: *** [<builtin>: tbprobe.o] Error 1
make[2]: *** [<builtin>: misc.o] Error 1
make[2]: *** [<builtin>: tt.o] Error 1
In file included from C:/msys64/mingw64/include/minwindef.h:163,
from C:/msys64/mingw64/include/windef.h:9,
from C:/msys64/mingw64/include/windows.h:69,
from types.h:53,
from evaluate.h:4,
from uci.c:23:
thread.h:50:62: error: expected identifier before '(' token
50 | THREAD_SLEEP, THREAD_SEARCH, THREAD_TT_CLEAR, THREAD_EXIT, THREAD_RESUME
| ^~~~~~~~~~~~~
make[2]: *** [<builtin>: uci.o] Error 1
In file included from C:/msys64/mingw64/include/minwindef.h:163,
from C:/msys64/mingw64/include/windef.h:9,
from C:/msys64/mingw64/include/windows.h:69,
from types.h:53,
from nnue.h:7,
from settings.c:2:
thread.h:50:62: error: expected identifier before '(' token
50 | THREAD_SLEEP, THREAD_SEARCH, THREAD_TT_CLEAR, THREAD_EXIT, THREAD_RESUME
| ^~~~~~~~~~~~~
In file included from C:/msys64/mingw64/include/minwindef.h:163,
from C:/msys64/mingw64/include/windef.h:9,
from C:/msys64/mingw64/include/windows.h:69,
from types.h:53,
from evaluate.h:4,
from ucioption.c:30:
thread.h:50:62: error: expected identifier before '(' token
50 | THREAD_SLEEP, THREAD_SEARCH, THREAD_TT_CLEAR, THREAD_EXIT, THREAD_RESUME
| ^~~~~~~~~~~~~
make[2]: *** [<builtin>: settings.o] Error 1
make[2]: *** [<builtin>: ucioption.o] Error 1
In file included from C:/msys64/mingw64/include/minwindef.h:163,
from C:/msys64/mingw64/include/windef.h:9,
from C:/msys64/mingw64/include/windows.h:69,
from types.h:53,
from misc.h:33,
from polybook.c:5:
thread.h:50:62: error: expected identifier before '(' token
50 | THREAD_SLEEP, THREAD_SEARCH, THREAD_TT_CLEAR, THREAD_EXIT, THREAD_RESUME
| ^~~~~~~~~~~~~
make[2]: *** [<builtin>: polybook.o] Error 1
make[2]: Leaving directory '/home/massimilianogoi/cfish'
make[1]: *** [Makefile:1000: gcc-profile-make] Error 2
make[1]: Leaving directory '/home/massimilianogoi/cfish'
make: *** [Makefile:871: profile-build] Error 2