Closed ghost closed 3 years ago
@massimilianogoi need to use profile-build ARCH=x86-32-mmx COMP=mingw or profile-build ARCH=x86-32-sse COMP=mingw or profile-build ARCH=x86-32-sse2 COMP=mingw or profile-build ARCH=x86-32-ssse3 COMP=mingw etc.
@massimilianogoi need to use profile-build ARCH=x86-32-mmx COMP=mingw or profile-build ARCH=x86-32-sse COMP=mingw or profile-build ARCH=x86-32-sse2 COMP=mingw or profile-build ARCH=x86-32-ssse3 COMP=mingw etc.
Same thing:
MinGW
C:\MinGW\home\Cfish-master\src>make profile-build ARCH=x86-32-mmx COMP=mingw Default net: nn-62ef826d1a6d.nnue Already available.
Config: debug: 'no' sanitize: 'no' optimize: 'yes' arch: 'i386' bits: '32' kernel: 'MINGW32_NT-6.2' os: 'Windows_NT' prefetch: 'no' popcnt: 'no' pext: 'no' sse: 'no' mmx: 'yes' sse2: 'no' ssse3: 'no' sse41: 'no' avx: 'no' avx2: 'no' avx512: 'no' vnni: 'no' neon: 'no' native: 'no' embed: 'no'
Flags: CC: gcc CFLAGS: -Wall -std=c11 -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE LDFLAGS: -lm -m32
Testing config sanity. If this fails, try 'make help' ...
Step 1/4. Building instrumented executable ...
make ARCH=x86-32-mmx COMP=mingw gcc-profile-make
make[1]: Entering directory /mingw/home/Cfish-master/src' make ARCH=x86-32-mmx COMP=mingw \ EXTRACFLAGS='-fprofile-generate' \ EXTRALDFLAGS='-lgcov' \ all make[2]: Entering directory
/mingw/home/Cfish-master/src'
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o benchmark.o benchmark.c
benchmark.c: In function 'benchmark':
benchmark.c:142:7: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]
if (strcasecmp(fenFile, "default") == 0) {
^~~~~~
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o bitbase.o bitbase.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o bitboard.o bitboard.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o endgame.o endgame.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o evaluate.o evaluate.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o main.o main.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o material.o material.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o misc.o misc.c
misc.c: In function 'flockfile':
misc.c:301:15: warning: implicit declaration of function 'iob_func' [-Wimplicit-function-declaration]
if ((F >= (&__iob_func()[0])) && (F <= (&iob_func()[_IOB_ENTRIES-1]))) {
^~~~~~
misc.c:301:27: error: subscripted value is neither array nor pointer nor vector
if ((F >= (&iob_func()[0])) && (F <= (&__iob_func()[_IOB_ENTRIES-1]))) {
^
misc.c:301:57: error: '_IOB_ENTRIES' undeclared (first use in this function)
if ((F >= (&iob_func()[0])) && (F <= (&iob_func()[_IOB_ENTRIES-1]))) {
^~~~
misc.c:301:57: note: each undeclared identifier is reported only once for each function it appears in
misc.c:302:51: error: subscripted value is neither array nor pointer nor vector
_lock(_STREAM_LOCKS + (int)(F - (&iob_func()[0])));
^
misc.c: In function 'funlockfile':
misc.c:310:27: error: subscripted value is neither array nor pointer nor vector
if ((F >= (&iob_func()[0])) && (F <= (&__iob_func()[_IOB_ENTRIES-1]))) {
^
misc.c:310:57: error: '_IOB_ENTRIES' undeclared (first use in this function)
if ((F >= (&iob_func()[0])) && (F <= (&iob_func()[_IOB_ENTRIES-1]))) {
^~~~
misc.c:312:53: error: subscripted value is neither array nor pointer nor vector
_unlock(_STREAM_LOCKS + (int)(F - (&iob_func()[0])));
^
misc.c: In function 'allocate_memory':
misc.c:400:36: error: 'MEM_LARGE_PAGES' undeclared (first use in this function)
MEM_COMMIT | MEM_RESERVE | MEM_LARGE_PAGES, PAGE_READWRITE);
^~~~~~~
make[2]: [misc.o] Error 1
make[2]: Leaving directory `/mingw/home/Cfish-master/src'
make[1]: [gcc-profile-make] Error 2
make[1]: Leaving directory `/mingw/home/Cfish-master/src'
make: *** [profile-build] Error 2
MSYS2
massi@DESKTOP-L0HH8U4 MINGW32 ~/Cfish-master/src $ make profile-build ARCH=x86-32-mmx COMP=mingw Default net: nn-62ef826d1a6d.nnue Already available.
Config: debug: 'no' sanitize: 'no' optimize: 'yes' arch: 'i386' bits: '32' kernel: 'MINGW32_NT-10.0-19043' os: 'Windows_NT' prefetch: 'no' popcnt: 'no' pext: 'no' sse: 'no' mmx: 'yes' sse2: 'no' ssse3: 'no' sse41: 'no' avx: 'no' avx2: 'no' avx512: 'no' vnni: 'no' neon: 'no' native: 'no' embed: 'no'
Flags: CC: gcc CFLAGS: -Wall -std=c11 -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE LDFLAGS: -lm -m32
Testing config sanity. If this fails, try 'make help' ...
Step 1/4. Building instrumented executable ...
make ARCH=x86-32-mmx COMP=mingw gcc-profile-make
make[1]: Entering directory '/home/massi/Cfish-master/src'
make ARCH=x86-32-mmx COMP=mingw \
EXTRACFLAGS='-fprofile-generate' \
EXTRALDFLAGS='-lgcov' \
all
make[2]: Entering directory '/home/massi/Cfish-master/src'
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o benchmark.o benchmark.c
benchmark.c: In function ‘benchmark’:
benchmark.c:142:7: warning: implicit declaration of function ‘strcasecmp’; did you mean ‘strncmp’? [-Wimplicit-function-declaration]
142 | if (strcasecmp(fenFile, "default") == 0) {
| ^~~~~~
| strncmp
benchmark.c: At top level:
cc1: note: unrecognized command-line option ‘-Wno-pedantic-ms-format’ may have been intended to silence earlier diagnostics
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o bitbase.o bitbase.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o bitboard.o bitboard.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o endgame.o endgame.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o evaluate.o evaluate.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o main.o main.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o material.o material.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o misc.o misc.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o movegen.o movegen.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o movepick.o movepick.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o pawns.o pawns.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o position.o position.c
position.c: In function ‘print_pos’:
position.c:108:3: warning: implicit declaration of function ‘flockfile’; did you mean ‘_flockfile’? [-Wimplicit-function-declaration]
108 | flockfile(stdout);
| ^~~~~
| _flockfile
position.c:136:3: warning: implicit declaration of function ‘funlockfile’; did you mean ‘_funlockfile’? [-Wimplicit-function-declaration]
136 | funlockfile(stdout);
| ^~~
| _funlockfile
position.c: At top level:
cc1: note: unrecognized command-line option ‘-Wno-pedantic-ms-format’ may have been intended to silence earlier diagnostics
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o psqt.o psqt.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o search.o search.c
search.c: In function ‘mainthread_search’:
search.c:370:3: warning: implicit declaration of function ‘flockfile’; did you mean ‘_flockfile’? [-Wimplicit-function-declaration]
370 | flockfile(stdout);
| ^~~~~
| _flockfile
search.c:378:3: warning: implicit declaration of function ‘funlockfile’; did you mean ‘_funlockfile’? [-Wimplicit-function-declaration]
378 | funlockfile(stdout);
| ^~~
| _funlockfile
search.c: At top level:
cc1: note: unrecognized command-line option ‘-Wno-pedantic-ms-format’ may have been intended to silence earlier diagnostics
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o tbprobe.o tbprobe.c
tbprobe.c: In function ‘TB_init’:
tbprobe.c:362:16: warning: implicit declaration of function ‘strdup’; did you mean ‘strcmp’? [-Wimplicit-function-declaration]
362 | pathString = strdup(p);
| ^~
| strcmp
tbprobe.c:362:14: warning: assignment to ‘char ’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
362 | pathString = strdup(p);
| ^
tbprobe.c: At top level:
cc1: note: unrecognized command-line option ‘-Wno-pedantic-ms-format’ may have been intended to silence earlier diagnostics
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o thread.o thread.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o timeman.o timeman.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o tt.o tt.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o uci.o uci.c
uci.c: In function ‘uci_loop’:
uci.c:318:7: warning: implicit declaration of function ‘flockfile’; did you mean ‘_flockfile’? [-Wimplicit-function-declaration]
318 | flockfile(stdout);
| ^~~~~
| _flockfile
uci.c:325:7: warning: implicit declaration of function ‘funlockfile’; did you mean ‘_funlockfile’? [-Wimplicit-function-declaration]
325 | funlockfile(stdout);
| ^~~
| _funlockfile
uci.c: At top level:
cc1: note: unrecognized command-line option ‘-Wno-pedantic-ms-format’ may have been intended to silence earlier diagnostics
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o ucioption.o ucioption.c
ucioption.c: In function ‘options_init’:
ucioption.c:179:24: warning: implicit declaration of function ‘strdup’; did you mean ‘strcmp’? [-Wimplicit-function-declaration]
179 | opt->valString = strdup(opt->defString);
| ^~
| strcmp
ucioption.c:179:22: warning: assignment to ‘char ’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
179 | opt->valString = strdup(opt->defString);
| ^
ucioption.c: In function ‘option_set_by_name’:
ucioption.c:283:24: warning: assignment to ‘char ’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
283 | opt->valString = strdup(value);
| ^
ucioption.c:287:24: warning: assignment to ‘char ’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
287 | opt->valString = strdup(value);
| ^
ucioption.c: At top level:
cc1: note: unrecognized command-line option ‘-Wno-pedantic-ms-format’ may have been intended to silence earlier diagnostics
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o numa.o numa.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o settings.o settings.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o polybook.o polybook.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DUSE_MMX -mmmx -DNNUE -DNNUE_SPARSE -c -o nnue.o nnue.c
nnue.c: In function ‘nnue_init’:
nnue.c:656:18: warning: implicit declaration of function ‘strdup’; did you mean ‘strcmp’? [-Wimplicit-function-declaration]
656 | loadedFile = strdup(evalFile);
| ^~
| strcmp
nnue.c:656:16: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
656 | loadedFile = strdup(evalFile);
| ^
nnue.c: At top level:
cc1: note: unrecognized command-line option ‘-Wno-pedantic-ms-format’ may have been intended to silence earlier diagnostics
gcc -o cfish benchmark.o bitbase.o bitboard.o endgame.o evaluate.o main.o material.o misc.o movegen.o movepick.o pawns.o position.o psqt.o search.o tbprobe.o thread.o timeman.o tt.o uci.o ucioption.o numa.o settings.o polybook.o nnue.o -lgcov -lm -m32
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcov.a when searching for -lgcov
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcov.a when searching for -lgcov
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcov.a when searching for -lgcov
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lgcov
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcov.a when searching for -lgcov
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../libm.a when searching for -lm
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../libm.a when searching for -lm
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../libm.a when searching for -lm
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lm
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../libm.a when searching for -lm
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc_s.dll.a when searching for -lgcc_s
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc_s.dll.a when searching for -lgcc_s
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lgcc_s
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc_s.dll.a when searching for -lgcc_s
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lgcc
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../libmsys-2.0.a when searching for -lmsys-2.0
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../libmsys-2.0.a when searching for -lmsys-2.0
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../libmsys-2.0.a when searching for -lmsys-2.0
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lmsys-2.0
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../libmsys-2.0.a when searching for -lmsys-2.0
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -ladvapi32
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lshell32
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -luser32
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lkernel32
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc_s.dll.a when searching for -lgcc_s
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc_s.dll.a when searching for -lgcc_s
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lgcc_s
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc_s.dll.a when searching for -lgcc_s
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lgcc
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc.a when searching for -lgcc
collect2: error: ld returned 1 exit status
make[2]: [Makefile:984: cfish] Error 1
make[2]: Leaving directory '/home/massi/Cfish-master/src'
make[1]: [Makefile:1000: gcc-profile-make] Error 2
make[1]: Leaving directory '/home/massi/Cfish-master/src'
make: *** [Makefile:871: profile-build] Error 2
@massimilianogoi this is compiler issue, not Cfish My compilations in GCC 10.2 and MSYS 1.0 works fine http://outskirts.altervista.org/forum/viewtopic.php?p=32804&view=single_post#p32804 (ARCH=x86-32-sse2 +ssse3=yes +sse41=yes)
Probably you must install mingw-w64-x86_32-gcc
@massimilianogoi this is compiler issue, not Cfish My compilations in GCC 10.2 and MSYS 1.0 works fine http://outskirts.altervista.org/forum/viewtopic.php?p=32804&view=single_post#p32804 (ARCH=x86-32-sse2 +ssse3=yes +sse41=yes)
Probably you must install mingw-w64-x86_32-gcc
No packages exist with this name, By the way, I have also tried in Linux (first post) where the compiler is 100% working (by default) and the error is the same.
Installed clang and tried with it:
$ make profile-build ARCH=x86-32 COMP=clang numa=no lto=yes Default net: nn-62ef826d1a6d.nnue Already available.
Config: debug: 'no' sanitize: 'no' optimize: 'yes' arch: 'i386' bits: '32' kernel: 'MINGW32_NT-10.0-19043' os: 'Windows_NT' prefetch: 'no' popcnt: 'no' pext: 'no' sse: 'no' mmx: 'no' sse2: 'no' ssse3: 'no' sse41: 'no' avx: 'no' avx2: 'no' avx512: 'no' vnni: 'no' neon: 'no' native: 'no' embed: 'no'
Flags: CC: clang CFLAGS: -Wall -std=c11 -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld LDFLAGS: -lm -latomic -m32 -lpthread -Wall -std=c11 -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld
Testing config sanity. If this fails, try 'make help' ...
Step 1/4. Building instrumented executable ...
make ARCH=x86-32 COMP=clang clang-profile-make
make[1]: Entering directory '/home/massi/Cfish-master/src'
make ARCH=x86-32 COMP=clang \
EXTRACFLAGS='-fprofile-instr-generate ' \
EXTRALDFLAGS=' -fprofile-instr-generate' \
all
make[2]: Entering directory '/home/massi/Cfish-master/src'
clang -Wall -std=c11 -fprofile-instr-generate -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld -c -o benchmark.o benchmark.c
clang: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
benchmark.c:142:7: warning: implicit declaration of function 'strcasecmp' is invalid in C99 [-Wimplicit-function-declaration]
if (strcasecmp(fenFile, "default") == 0) {
^
1 warning generated.
clang -Wall -std=c11 -fprofile-instr-generate -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld -c -o bitbase.o bitbase.c
clang: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
clang -Wall -std=c11 -fprofile-instr-generate -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld -c -o bitboard.o bitboard.c
clang: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
clang -Wall -std=c11 -fprofile-instr-generate -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld -c -o endgame.o endgame.c
clang: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
clang -Wall -std=c11 -fprofile-instr-generate -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld -c -o evaluate.o evaluate.c
clang: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
clang -Wall -std=c11 -fprofile-instr-generate -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld -c -o main.o main.c
clang: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
clang -Wall -std=c11 -fprofile-instr-generate -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld -c -o material.o material.c
clang: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
clang -Wall -std=c11 -fprofile-instr-generate -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld -c -o misc.o misc.c
clang: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
clang -Wall -std=c11 -fprofile-instr-generate -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld -c -o movegen.o movegen.c
clang: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
clang -Wall -std=c11 -fprofile-instr-generate -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld -c -o movepick.o movepick.c
clang: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
clang -Wall -std=c11 -fprofile-instr-generate -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld -c -o pawns.o pawns.c
clang: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
clang -Wall -std=c11 -fprofile-instr-generate -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld -c -o position.o position.c
clang: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
position.c:108:3: warning: implicit declaration of function 'flockfile' is invalid in C99 [-Wimplicit-function-declaration]
flockfile(stdout);
^
position.c:136:3: warning: implicit declaration of function 'funlockfile' is invalid in C99 [-Wimplicit-function-declaration]
funlockfile(stdout);
^
2 warnings generated.
clang -Wall -std=c11 -fprofile-instr-generate -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld -c -o psqt.o psqt.c
clang: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
clang -Wall -std=c11 -fprofile-instr-generate -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld -c -o search.o search.c
clang: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
search.c:370:3: warning: implicit declaration of function 'flockfile' is invalid in C99 [-Wimplicit-function-declaration]
flockfile(stdout);
^
search.c:378:3: warning: implicit declaration of function 'funlockfile' is invalid in C99 [-Wimplicit-function-declaration]
funlockfile(stdout);
^
search.c:1913:3: warning: implicit declaration of function 'flockfile' is invalid in C99 [-Wimplicit-function-declaration]
flockfile(stdout);
^
search.c:1958:3: warning: implicit declaration of function 'funlockfile' is invalid in C99 [-Wimplicit-function-declaration]
funlockfile(stdout);
^
4 warnings generated.
clang -Wall -std=c11 -fprofile-instr-generate -pedantic -Wextra -Wshadow -m32 -DNDEBUG -O3 -fexperimental-new-pass-manager -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -flto -fuse-ld=lld -c -o tbprobe.o tbprobe.c
clang: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
In file included from tbprobe.c:6:
In file included from /usr/lib/clang/11.0.0/include/stdatomic.h:17:
/usr/include/stdatomic.h:201:17: error: unknown type name 'int_least8_t'; did you mean 'int_least8_t'?
typedef _Atomic(int_least8_t) atomic_int_least8_t;
^
/usr/include/machine/_default_types.h:134:29: note: 'int_least8_t' declared here
typedef INT_LEAST8_TYPE int_least8_t;
^
In file included from tbprobe.c:6:
In file included from /usr/lib/clang/11.0.0/include/stdatomic.h:17:
/usr/include/stdatomic.h:202:17: error: unknown type name 'uint_least8_t'
typedef _Atomic(uint_least8_t) atomic_uint_least8_t;
^
/usr/include/stdatomic.h:203:17: error: unknown type name 'int_least16_t'; did you mean 'int_least16_t'?
typedef _Atomic(int_least16_t) atomic_int_least16_t;
^
/usr/include/machine/_default_types.h:160:30: note: 'int_least16_t' declared here
typedef INT_LEAST16_TYPE int_least16_t;
^
In file included from tbprobe.c:6:
In file included from /usr/lib/clang/11.0.0/include/stdatomic.h:17:
/usr/include/stdatomic.h:204:17: error: unknown type name 'uint_least16_t'
typedef _Atomic(uint_least16_t) atomic_uint_least16_t;
^
/usr/include/stdatomic.h:205:17: error: unknown type name 'int_least32_t'; did you mean 'int_least32_t'?
typedef _Atomic(int_least32_t) atomic_int_least32_t;
^
/usr/include/machine/_default_types.h:182:30: note: 'int_least32_t' declared here
typedef INT_LEAST32_TYPE int_least32_t;
^
In file included from tbprobe.c:6:
In file included from /usr/lib/clang/11.0.0/include/stdatomic.h:17:
/usr/include/stdatomic.h:206:17: error: unknown type name 'uint_least32_t'
typedef _Atomic(uint_least32_t) atomic_uint_least32_t;
^
/usr/include/stdatomic.h:207:17: error: unknown type name 'int_least64_t'; did you mean 'int_least64_t'?
typedef _Atomic(int_least64_t) atomic_int_least64_t;
^
/usr/include/machine/_default_types.h:200:30: note: 'int_least64_t' declared here
typedef INT_LEAST64_TYPE int_least64_t;
^
In file included from tbprobe.c:6:
In file included from /usr/lib/clang/11.0.0/include/stdatomic.h:17:
/usr/include/stdatomic.h:208:17: error: unknown type name 'uint_least64_t'
typedef _Atomic(uint_least64_t) atomic_uint_least64_t;
^
/usr/include/stdatomic.h:209:17: error: unknown type name 'int_fast8_t'
typedef _Atomic(int_fast8_t) atomic_int_fast8_t;
^
/usr/include/stdatomic.h:210:17: error: unknown type name 'uint_fast8_t'
typedef _Atomic(uint_fast8_t) atomic_uint_fast8_t;
^
/usr/include/stdatomic.h:211:17: error: unknown type name 'int_fast16_t'; did you mean 'int_least16_t'?
typedef _Atomic(int_fast16_t) atomic_int_fast16_t;
^
/usr/include/machine/_default_types.h:160:30: note: 'int_least16_t' declared here
typedef INT_LEAST16_TYPE int_least16_t;
^
In file included from tbprobe.c:6:
In file included from /usr/lib/clang/11.0.0/include/stdatomic.h:17:
/usr/include/stdatomic.h:212:17: error: unknown type name 'uint_fast16_t'
typedef _Atomic(uint_fast16_t) atomic_uint_fast16_t;
^
/usr/include/stdatomic.h:213:17: error: unknown type name 'int_fast32_t'; did you mean 'int_least32_t'?
typedef _Atomic(int_fast32_t) atomic_int_fast32_t;
^
/usr/include/machine/_default_types.h:182:30: note: 'int_least32_t' declared here
typedef INT_LEAST32_TYPE int_least32_t;
^
In file included from tbprobe.c:6:
In file included from /usr/lib/clang/11.0.0/include/stdatomic.h:17:
/usr/include/stdatomic.h:214:17: error: unknown type name 'uint_fast32_t'
typedef _Atomic(uint_fast32_t) atomic_uint_fast32_t;
^
/usr/include/stdatomic.h:215:17: error: unknown type name 'int_fast64_t'; did you mean 'int_least64_t'?
typedef _Atomic(int_fast64_t) atomic_int_fast64_t;
^
/usr/include/machine/_default_types.h:200:30: note: 'int_least64_t' declared here
typedef INT_LEAST64_TYPE int_least64_t;
^
In file included from tbprobe.c:6:
In file included from /usr/lib/clang/11.0.0/include/stdatomic.h:17:
/usr/include/stdatomic.h:216:17: error: unknown type name 'uint_fast64_t'
typedef _Atomic(uint_fast64_t) atomic_uint_fast64_t;
^
/usr/include/stdatomic.h:217:17: error: unknown type name 'intptr_t'; did you mean '__intptr_t'?
typedef _Atomic(intptr_t) atomic_intptr_t;
^
/usr/include/machine/_default_types.h:230:25: note: 'intptr_t' declared here
typedef INTPTR_TYPE intptr_t;
^
In file included from tbprobe.c:6:
In file included from /usr/lib/clang/11.0.0/include/stdatomic.h:17:
/usr/include/stdatomic.h:218:17: error: unknown type name 'uintptr_t'
typedef _Atomic(uintptr_t) atomic_uintptr_t;
^
/usr/include/stdatomic.h:221:17: error: unknown type name 'intmax_t'; did you mean 'intmax_t'?
typedef _Atomic(intmax_t) atomic_intmax_t;
^
/usr/include/machine/_default_types.h:214:25: note: 'intmax_t' declared here
typedef __INTMAX_TYPE __intmax_t;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: [
@JavaMast can you type here the string you used to compile 32-bit, please?
@massimilianogoi
SSE2: make profile-build ARCH=x86-32-sse2 lto=yes extra=yes native=no numa=no sse=yes sse2=yes prefetch=yes sparse=yes -j 5 COMP=mingw
SSSE3: make profile-build ARCH=x86-32-sse2 lto=yes extra=yes native=no numa=no sse=yes sse2=yes ssse3=yes prefetch=yes sparse=yes -j 5 COMP=mingw
SSE41: make profile-build ARCH=x86-32-sse2 lto=yes extra=yes native=no numa=no sse=yes sse2=yes ssse3=yes sse41=yes prefetch=yes sparse=yes -j 5 COMP=mingw
Notice: i added sse41/ssse3 after ARCH=x86-32-sse2
C:\MinGW\home\Cfish-master\src>make profile-build ARCH=x86-32-sse2 lto=yes extra=yes native=no numa=no sse=yes sse2=yes prefetch=yes sparse=yes -j 5 COMP=mingw Default net: nn-62ef826d1a6d.nnue Already available.
Config: debug: 'no' sanitize: 'no' optimize: 'yes' arch: 'i386' bits: '32' kernel: 'MINGW32_NT-6.2' os: 'Windows_NT' prefetch: 'yes' popcnt: 'no' pext: 'no' sse: 'yes' mmx: 'no' sse2: 'yes' ssse3: 'no' sse41: 'no' avx: 'no' avx2: 'no' avx512: 'no' vnni: 'no' neon: 'no' native: 'no' embed: 'no'
Flags: CC: gcc CFLAGS: -Wall -std=c11 -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -fira-loop-pressure -fconserve-stack -fmodulo-sched -fmodulo-sched-allow-regmoves -fsched-pressure -flimit-function-alignment -fno-tree-pre -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto LDFLAGS: -lm -m32 -Wall -std=c11 -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -fira-loop-pressure -fconserve-stack -fmodulo-sched -fmodulo-sched-allow-regmoves -fsched-pressure -flimit-function-alignment -fno-tree-pre -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto -flto=jobserver
Testing config sanity. If this fails, try 'make help' ...
Step 1/4. Building instrumented executable ...
make ARCH=x86-32-sse2 COMP=mingw gcc-profile-make
make[1]: Entering directory /mingw/home/Cfish-master/src' make ARCH=x86-32-sse2 COMP=mingw \ EXTRACFLAGS='-fprofile-generate' \ EXTRALDFLAGS='-lgcov' \ all make[2]: Entering directory
/mingw/home/Cfish-master/src'
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -fira-loop-pressure -fconserve-stack -fmodulo-sched -fmodulo-sched-allow-regmoves -fsched-pressure -flimit-function-alignment -fno-tree-pre -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto -c -o benchmark.o benchmark.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -fira-loop-pressure -fconserve-stack -fmodulo-sched -fmodulo-sched-allow-regmoves -fsched-pressure -flimit-function-alignment -fno-tree-pre -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto -c -o bitbase.o bitbase.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -fira-loop-pressure -fconserve-stack -fmodulo-sched -fmodulo-sched-allow-regmoves -fsched-pressure -flimit-function-alignment -fno-tree-pre -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto -c -o bitboard.o bitboard.c
gcc.exe: error: unrecognized command line option '-flimit-function-alignment'; did you mean '-fipa-cp-alignment'?
gcc.exe: error: unrecognized command line option '-flimit-function-alignment'; did you mean '-fipa-cp-alignment'?
make[2]: [benchmark.o] Error 1
make[2]: Waiting for unfinished jobs....
make[2]: [bitbase.o] Error 1
gcc.exe: error: unrecognized command line option '-flimit-function-alignment'; did you mean '-fipa-cp-alignment'?
make[2]: [bitboard.o] Error 1
make[2]: Leaving directory /mingw/home/Cfish-master/src' make[1]: *** [gcc-profile-make] Error 2 make[1]: Leaving directory
/mingw/home/Cfish-master/src'
make: *** [profile-build] Error 2
@massimilianogoi change extra=yes to extra=no
C:\MinGW\home\Cfish-master\src>make profile-build ARCH=x86-32-sse2 lto=yes extra=no native=no numa=no sse=yes sse2=yes prefetch=yes sparse=yes -j 5 COMP=mingw Default net: nn-62ef826d1a6d.nnue Already available.
Config: debug: 'no' sanitize: 'no' optimize: 'yes' arch: 'i386' bits: '32' kernel: 'MINGW32_NT-6.2' os: 'Windows_NT' prefetch: 'yes' popcnt: 'no' pext: 'no' sse: 'yes' mmx: 'no' sse2: 'yes' ssse3: 'no' sse41: 'no' avx: 'no' avx2: 'no' avx512: 'no' vnni: 'no' neon: 'no' native: 'no' embed: 'no'
Flags: CC: gcc CFLAGS: -Wall -std=c11 -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto LDFLAGS: -lm -m32 -Wall -std=c11 -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto -flto=jobserver
Testing config sanity. If this fails, try 'make help' ...
Step 1/4. Building instrumented executable ...
make ARCH=x86-32-sse2 COMP=mingw gcc-profile-make
make[1]: Entering directory /mingw/home/Cfish-master/src' make ARCH=x86-32-sse2 COMP=mingw \ EXTRACFLAGS='-fprofile-generate' \ EXTRALDFLAGS='-lgcov' \ all make[2]: Entering directory
/mingw/home/Cfish-master/src'
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto -c -o benchmark.o benchmark.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto -c -o bitbase.o bitbase.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto -c -o bitboard.o bitboard.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto -c -o endgame.o endgame.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto -c -o evaluate.o evaluate.c
benchmark.c: In function 'benchmark':
benchmark.c:142:7: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]
if (strcasecmp(fenFile, "default") == 0) {
^~~~~~
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto -c -o main.o main.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto -c -o material.o material.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto -c -o misc.o misc.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto -c -o movegen.o movegen.c
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto -c -o movepick.o movepick.c
misc.c: In function 'flockfile':
misc.c:301:15: warning: implicit declaration of function 'iob_func' [-Wimplicit-function-declaration]
if ((F >= (&__iob_func()[0])) && (F <= (&iob_func()[_IOB_ENTRIES-1]))) {
^~~~~~
misc.c:301:27: error: subscripted value is neither array nor pointer nor vector
if ((F >= (&iob_func()[0])) && (F <= (&__iob_func()[_IOB_ENTRIES-1]))) {
^
misc.c:301:57: error: '_IOB_ENTRIES' undeclared (first use in this function)
if ((F >= (&iob_func()[0])) && (F <= (&iob_func()[_IOB_ENTRIES-1]))) {
^~~~
misc.c:301:57: note: each undeclared identifier is reported only once for each function it appears in
misc.c:302:51: error: subscripted value is neither array nor pointer nor vector
gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DUSE_SSE2 -msse2 -msse -DUSE_SSE -DNNUE -DNNUE_SPARSE -flto -c -o pawns.o pawns.c
ock(_STREAM_LOCKS + (int)(F - (&iob_func()[0])));
^
misc.c: In function 'funlockfile':
misc.c:310:27: error: subscripted value is neither array nor pointer nor vector
if ((F >= (&iob_func()[0])) && (F <= (&__iob_func()[_IOB_ENTRIES-1]))) {
^
misc.c:310:57: error: '_IOB_ENTRIES' undeclared (first use in this function)
if ((F >= (&iob_func()[0])) && (F <= (&iob_func()[_IOB_ENTRIES-1]))) {
^~~~
misc.c:312:53: error: subscripted value is neither array nor pointer nor vector
_unlock(_STREAM_LOCKS + (int)(F - (&iob_func()[0])));
^
misc.c: In function 'allocate_memory':
misc.c:400:36: error: 'MEM_LARGE_PAGES' undeclared (first use in this function)
MEM_COMMIT | MEM_RESERVE | MEM_LARGE_PAGES, PAGE_READWRITE);
^~~~~~~
make[2]: [misc.o] Error 1
make[2]: Waiting for unfinished jobs....
make[2]: Leaving directory /mingw/home/Cfish-master/src' make[1]: *** [gcc-profile-make] Error 2 make[1]: Leaving directory
/mingw/home/Cfish-master/src'
make: *** [profile-build] Error 2
@massimilianogoi Sorry, I didn't see that you have i386 installed ... You need to install i686 using the command: pacman -S mingw-w64-i686-gcc
Than lunch MSYS2 MinGW 32-bit and use make profile-build ARCH=x86-32-sse2 lto=yes extra=no native=no numa=no sse=yes sse2=yes prefetch=yes sparse=yes -j 5 COMP=mingw
works for me
Installing the mingw-w64-i686-gcc package solved the issue, now I can compile even with make profile-build ARCH=x86-32 COMP=mingw , this should be added in the Compiling Cfish section of the README.md file.
I'm closing this thread because the issue has been solved. Thanks.
MinGW:
C:\MinGW\home\Cfish-master\src>make -f MakeFile profile-build ARCH=x86-32 COMP=mingw Default net: nn-62ef826d1a6d.nnue Already available.
Config: debug: 'no' sanitize: 'no' optimize: 'yes' arch: 'i386' bits: '32' kernel: 'MINGW32_NT-6.2' os: 'Windows_NT' prefetch: 'no' popcnt: 'no' pext: 'no' sse: 'no' mmx: 'no' sse2: 'no' ssse3: 'no' sse41: 'no' avx: 'no' avx2: 'no' avx512: 'no' vnni: 'no' neon: 'no' native: 'no' embed: 'no'
Flags: CC: gcc CFLAGS: -Wall -std=c11 -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE LDFLAGS: -lm -m32
Testing config sanity. If this fails, try 'make help' ...
Step 1/4. Building instrumented executable ... make ARCH=x86-32 COMP=mingw gcc-profile-make make[1]: Entering directory
/mingw/home/Cfish-master/src' make ARCH=x86-32 COMP=mingw \ EXTRACFLAGS='-fprofile-generate' \ EXTRALDFLAGS='-lgcov' \ all make[2]: Entering directory
/mingw/home/Cfish-master/src' gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o benchmark.o benchmark.c benchmark.c: In function 'benchmark': benchmark.c:142:7: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration] if (strcasecmp(fenFile, "default") == 0) { ^~~~~~ gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o bitbase.o bitbase.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o bitboard.o bitboard.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o endgame.o endgame.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o evaluate.o evaluate.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o main.o main.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o material.o material.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o misc.o misc.c misc.c: In function 'flockfile': misc.c:301:15: warning: implicit declaration of function 'iob_func' [-Wimplicit-function-declaration] if ((F >= (&__iob_func()[0])) && (F <= (&iob_func()[_IOB_ENTRIES-1]))) { ^~~~~~ misc.c:301:27: error: subscripted value is neither array nor pointer nor vector if ((F >= (&iob_func()[0])) && (F <= (&__iob_func()[_IOB_ENTRIES-1]))) { ^ misc.c:301:57: error: '_IOB_ENTRIES' undeclared (first use in this function) if ((F >= (&iob_func()[0])) && (F <= (&iob_func()[_IOB_ENTRIES-1]))) { ^~~~ misc.c:301:57: note: each undeclared identifier is reported only once for each function it appears in misc.c:302:51: error: subscripted value is neither array nor pointer nor vector _lock(_STREAM_LOCKS + (int)(F - (&iob_func()[0]))); ^ misc.c: In function 'funlockfile': misc.c:310:27: error: subscripted value is neither array nor pointer nor vector if ((F >= (&iob_func()[0])) && (F <= (&__iob_func()[_IOB_ENTRIES-1]))) { ^ misc.c:310:57: error: '_IOB_ENTRIES' undeclared (first use in this function) if ((F >= (&iob_func()[0])) && (F <= (&iob_func()[_IOB_ENTRIES-1]))) { ^~~~ misc.c:312:53: error: subscripted value is neither array nor pointer nor vector _unlock(_STREAM_LOCKS + (int)(F - (&iob_func()[0]))); ^ misc.c: In function 'allocate_memory': misc.c:400:36: error: 'MEM_LARGE_PAGES' undeclared (first use in this function) MEM_COMMIT | MEM_RESERVE | MEM_LARGE_PAGES, PAGE_READWRITE); ^~~~~~~ make[2]: [misc.o] Error 1 make[2]: Leaving directory `/mingw/home/Cfish-master/src' make[1]: [gcc-profile-make] Error 2 make[1]: Leaving directory `/mingw/home/Cfish-master/src' make: *** [profile-build] Error 2MSYS2 32-bit shell:
$ make profile-build ARCH=x86-32 COMP=mingw Default net: nn-62ef826d1a6d.nnue Already available.
Config: debug: 'no' sanitize: 'no' optimize: 'yes' arch: 'i386' bits: '32' kernel: 'MINGW32_NT-10.0-19043' os: 'Windows_NT' prefetch: 'no' popcnt: 'no' pext: 'no' sse: 'no' mmx: 'no' sse2: 'no' ssse3: 'no' sse41: 'no' avx: 'no' avx2: 'no' avx512: 'no' vnni: 'no' neon: 'no' native: 'no' embed: 'no'
Flags: CC: gcc CFLAGS: -Wall -std=c11 -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE LDFLAGS: -lm -m32
Testing config sanity. If this fails, try 'make help' ...
Step 1/4. Building instrumented executable ... make ARCH=x86-32 COMP=mingw gcc-profile-make make[1]: Entering directory '/home/massi/Cfish-master/src' make ARCH=x86-32 COMP=mingw \ EXTRACFLAGS='-fprofile-generate' \ EXTRALDFLAGS='-lgcov' \ all make[2]: Entering directory '/home/massi/Cfish-master/src' gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o benchmark.o benchmark.c benchmark.c: In function ‘benchmark’: benchmark.c:142:7: warning: implicit declaration of function ‘strcasecmp’; did you mean ‘strncmp’? [-Wimplicit-function-declaration] 142 | if (strcasecmp(fenFile, "default") == 0) { | ^
~~~~~ | strncmp benchmark.c: At top level: cc1: note: unrecognized command-line option ‘-Wno-pedantic-ms-format’ may have been intended to silence earlier diagnostics gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o bitbase.o bitbase.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o bitboard.o bitboard.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o endgame.o endgame.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o evaluate.o evaluate.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o main.o main.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o material.o material.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o misc.o misc.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o movegen.o movegen.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o movepick.o movepick.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o pawns.o pawns.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o position.o position.c position.c: In function ‘print_pos’: position.c:108:3: warning: implicit declaration of function ‘flockfile’; did you mean ‘_flockfile’? [-Wimplicit-function-declaration] 108 | flockfile(stdout); | ^~~~~ | _flockfile position.c:136:3: warning: implicit declaration of function ‘funlockfile’; did you mean ‘_funlockfile’? [-Wimplicit-function-declaration] 136 | funlockfile(stdout); | ^~~| _funlockfile position.c: At top level: cc1: note: unrecognized command-line option ‘-Wno-pedantic-ms-format’ may have been intended to silence earlier diagnostics gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o psqt.o psqt.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o search.o search.c search.c: In function ‘mainthread_search’: search.c:370:3: warning: implicit declaration of function ‘flockfile’; did you mean ‘_flockfile’? [-Wimplicit-function-declaration] 370 | flockfile(stdout); | ^~~~~ | _flockfile search.c:378:3: warning: implicit declaration of function ‘funlockfile’; did you mean ‘_funlockfile’? [-Wimplicit-function-declaration] 378 | funlockfile(stdout); | ^~~| _funlockfile search.c: At top level: cc1: note: unrecognized command-line option ‘-Wno-pedantic-ms-format’ may have been intended to silence earlier diagnostics gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o tbprobe.o tbprobe.c tbprobe.c: In function ‘TB_init’: tbprobe.c:362:16: warning: implicit declaration of function ‘strdup’; did you mean ‘strcmp’? [-Wimplicit-function-declaration] 362 | pathString = strdup(p); | ^~| strcmp tbprobe.c:362:14: warning: assignment to ‘char ’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 362 | pathString = strdup(p); | ^ tbprobe.c: At top level: cc1: note: unrecognized command-line option ‘-Wno-pedantic-ms-format’ may have been intended to silence earlier diagnostics gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o thread.o thread.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o timeman.o timeman.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o tt.o tt.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o uci.o uci.c uci.c: In function ‘uci_loop’: uci.c:318:7: warning: implicit declaration of function ‘flockfile’; did you mean ‘_flockfile’? [-Wimplicit-function-declaration] 318 | flockfile(stdout); | ^~~~~ | _flockfile uci.c:325:7: warning: implicit declaration of function ‘funlockfile’; did you mean ‘_funlockfile’? [-Wimplicit-function-declaration] 325 | funlockfile(stdout); | ^~~| _funlockfile uci.c: At top level: cc1: note: unrecognized command-line option ‘-Wno-pedantic-ms-format’ may have been intended to silence earlier diagnostics gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o ucioption.o ucioption.c ucioption.c: In function ‘options_init’: ucioption.c:179:24: warning: implicit declaration of function ‘strdup’; did you mean ‘strcmp’? [-Wimplicit-function-declaration] 179 | opt->valString = strdup(opt->defString); | ^~| strcmp ucioption.c:179:22: warning: assignment to ‘char ’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 179 | opt->valString = strdup(opt->defString); | ^ ucioption.c: In function ‘option_set_by_name’: ucioption.c:283:24: warning: assignment to ‘char ’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 283 | opt->valString = strdup(value); | ^ ucioption.c:287:24: warning: assignment to ‘char ’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 287 | opt->valString = strdup(value); | ^ ucioption.c: At top level: cc1: note: unrecognized command-line option ‘-Wno-pedantic-ms-format’ may have been intended to silence earlier diagnostics gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o numa.o numa.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o settings.o settings.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o polybook.o polybook.c gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o nnue.o nnue.c nnue.c: In function ‘nnue_init’: nnue.c:656:18: warning: implicit declaration of function ‘strdup’; did you mean ‘strcmp’? [-Wimplicit-function-declaration] 656 | loadedFile = strdup(evalFile); | ^~| strcmp nnue.c:656:16: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 656 | loadedFile = strdup(evalFile); | ^ nnue.c: At top level: cc1: note: unrecognized command-line option ‘-Wno-pedantic-ms-format’ may have been intended to silence earlier diagnostics gcc -o cfish benchmark.o bitbase.o bitboard.o endgame.o evaluate.o main.o material.o misc.o movegen.o movepick.o pawns.o position.o psqt.o search.o tbprobe.o thread.o timeman.o tt.o uci.o ucioption.o numa.o settings.o polybook.o nnue.o -lgcov -lm -m32 /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcov.a when searching for -lgcov /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcov.a when searching for -lgcov /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcov.a when searching for -lgcov /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lgcov /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcov.a when searching for -lgcov /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../libm.a when searching for -lm /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../libm.a when searching for -lm /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../libm.a when searching for -lm /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lm /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../libm.a when searching for -lm /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc_s.dll.a when searching for -lgcc_s /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc_s.dll.a when searching for -lgcc_s /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lgcc_s /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc_s.dll.a when searching for -lgcc_s /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc.a when searching for -lgcc /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc.a when searching for -lgcc /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc.a when searching for -lgcc /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lgcc /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc.a when searching for -lgcc /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../libmsys-2.0.a when searching for -lmsys-2.0 /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../libmsys-2.0.a when searching for -lmsys-2.0 /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../libmsys-2.0.a when searching for -lmsys-2.0 /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lmsys-2.0 /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../libmsys-2.0.a when searching for -lmsys-2.0 /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -ladvapi32 /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lshell32 /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -luser32 /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lkernel32 /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc_s.dll.a when searching for -lgcc_s /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc_s.dll.a when searching for -lgcc_s /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lgcc_s /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc_s.dll.a when searching for -lgcc_s /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc.a when searching for -lgcc /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc.a when searching for -lgcc /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc.a when searching for -lgcc /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lgcc /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-msys/10.2.0/libgcc.a when searching for -lgcc collect2: error: ld returned 1 exit status make[2]: [Makefile:984: cfish] Error 1 make[2]: Leaving directory '/home/massi/Cfish-master/src' make[1]: [Makefile:1000: gcc-profile-make] Error 2 make[1]: Leaving directory '/home/massi/Cfish-master/src' make: *** [Makefile:871: profile-build] Error 2Problems also on Linux MinGW:
max@max-virtual-machine:~/Desktop/Cfish-master/src$ make profile-build ARCH=x86-32 COMP=mingw Default net: nn-62ef826d1a6d.nnue Already available.
Config: debug: 'no' sanitize: 'no' optimize: 'yes' arch: 'i386' bits: '32' kernel: 'Linux' os: 'GNU/Linux' prefetch: 'no' popcnt: 'no' pext: 'no' sse: 'no' mmx: 'no' sse2: 'no' ssse3: 'no' sse41: 'no' avx: 'no' avx2: 'no' avx512: 'no' vnni: 'no' neon: 'no' native: 'no' embed: 'no'
Flags: CC: i686-w64-mingw32-gcc CFLAGS: -Wall -std=c11 -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE LDFLAGS: -lm -m32
Testing config sanity. If this fails, try 'make help' ...
Step 1/4. Building instrumented executable ... make ARCH=x86-32 COMP=mingw gcc-profile-make make[1]: Entering directory '/home/max/Desktop/Cfish-master/src' make ARCH=x86-32 COMP=mingw \ EXTRACFLAGS='-fprofile-generate' \ EXTRALDFLAGS='-lgcov' \ all make[2]: Entering directory '/home/max/Desktop/Cfish-master/src' i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o benchmark.o benchmark.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o bitbase.o bitbase.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o bitboard.o bitboard.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o endgame.o endgame.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o evaluate.o evaluate.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o main.o main.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o material.o material.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o misc.o misc.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o movegen.o movegen.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o movepick.o movepick.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o pawns.o pawns.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o position.o position.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o psqt.o psqt.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o search.o search.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o tbprobe.o tbprobe.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o thread.o thread.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o timeman.o timeman.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o tt.o tt.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o uci.o uci.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o ucioption.o ucioption.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o numa.o numa.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o settings.o settings.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o polybook.o polybook.c i686-w64-mingw32-gcc -Wall -std=c11 -fprofile-generate -pedantic -Wextra -Wshadow -Wno-pedantic-ms-format -m32 -DNDEBUG -O3 -DNO_PREFETCH -DNNUE -DNNUE_SPARSE -c -o nnue.o nnue.c i686-w64-mingw32-gcc -o cfish benchmark.o bitbase.o bitboard.o endgame.o evaluate.o main.o material.o misc.o movegen.o movepick.o pawns.o position.o psqt.o search.o tbprobe.o thread.o timeman.o tt.o uci.o ucioption.o numa.o settings.o polybook.o nnue.o -lgcov -lm -m32 /usr/bin/i686-w64-mingw32-ld: benchmark.o:benchmark.c:(.text+0xc): undefined reference to
__gcov_indirect_call' /usr/bin/i686-w64-mingw32-ld: benchmark.o:benchmark.c:(.text+0x2c): undefined reference to
gcov_indirect_call_profiler_v3' /usr/bin/i686-w64-mingw32-ld: benchmark.o:benchmark.c:(.text+0x4c): undefined reference to `gcov_time_profiler_counter' /usr/bin/i686-w64-mingw32-ld: benchmark.o:benchmark.c:(.text+0x52): undefined reference to__gcov_time_profiler_counter' /usr/bin/i686-w64-mingw32-ld: benchmark.o:benchmark.c:(.text+0x68): undefined reference to
gcov_time_profiler_counter' /usr/bin/i686-w64-mingw32-ld: benchmark.o:benchmark.c:(.text+0x6e): undefined reference to__gcov_time_profiler_counter' /usr/bin/i686-w64-mingw32-ld: benchmark.o:benchmark.c:(.text+0x816): undefined reference to
gcov_one_value_profiler' /usr/bin/i686-w64-mingw32-ld: benchmark.o:benchmark.c:(.data+0x4c): undefined reference to__gcov_merge_time_profile' /usr/bin/i686-w64-mingw32-ld: bitbase.o:bitbase.c:(.text+0xc): undefined reference to
gcov_indirect_call' /usr/bin/i686-w64-mingw32-ld: bitbase.o:bitbase.c:(.text+0x221): undefined reference to `gcov_time_profiler_counter' /usr/bin/i686-w64-mingw32-ld: bitbase.o:bitbase.c:(.text+0x227): undefined reference to__gcov_time_profiler_counter' /usr/bin/i686-w64-mingw32-ld: bitbase.o:bitbase.c:(.text+0x245): undefined reference to
gcov_time_profiler_counter' /usr/bin/i686-w64-mingw32-ld: bitbase.o:bitbase.c:(.text+0x24b): undefined reference to__gcov_time_profiler_counter' /usr/bin/i686-w64-mingw32-ld: bitbase.o:bitbase.c:(.text+0x7d1): undefined reference to
gcov_time_profiler_counter' /usr/bin/i686-w64-mingw32-ld: bitbase.o:bitbase.c:(.text+0x7d7): more undefined references to__gcov_time_profiler_counter' follow /usr/bin/i686-w64-mingw32-ld: bitbase.o:bitbase.c:(.text+0x945): undefined reference to
__gcov_indirect_call_profiler_v3'et cetera.