Can someone help me here to fix the compilation error?
TARGET = Some("x86_64-pc-windows-msvc")
OPT_LEVEL = Some("3")
HOST = Some("x86_64-pc-windows-msvc")
cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
CFLAGS_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
CFLAGS_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
running: "clang" "-O3" "-ffunction-sections" "-fdata-sections" "--target=x86_64-pc-windows-msvc" "-static" "-I" "fathom/src" "-Wall" "-Wextra" "-D_CRT_SECURE_NO_WARNINGS" "-o" "C:\\Users\\Privat\\Desktop\\velvet-chess-6.0.0\\velvet-chess-6.0.0\\target\\release\\build\\fathomrs-695572742aebd2d1\\out\\fathom/src/tbprobe.o" "-c" "fathom/src/tbprobe.c"
cargo:warning=fathom/src/tbprobe.c:196:9: warning: 'max' macro redefined [-Wmacro-redefined]
cargo:warning=#define max(a,b) a > b ? a : b
cargo:warning= ^
cargo:warning=C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stdlib.h:1282:17: note: previous definition is here
cargo:warning= #define max(a,b) (((a) > (b)) ? (a) : (b))
cargo:warning= ^
cargo:warning=fathom/src/tbprobe.c:197:9: warning: 'min' macro redefined [-Wmacro-redefined]
cargo:warning=#define min(a,b) a < b ? a : b
cargo:warning= ^
cargo:warning=C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stdlib.h:1283:17: note: previous definition is here
cargo:warning= #define min(a,b) (((a) < (b)) ? (a) : (b))
cargo:warning= ^
cargo:warning=fathom/src/tbprobe.c:2459:41: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
cargo:warning= if (popcount(pos->white | pos->black) <= cardinalityDTM) {
cargo:warning= ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
cargo:warning=fathom/src/tbprobe.c:2459:7: error: always_inline function '_mm_popcnt_u64' requires target feature 'popcnt', but would be inlined into function 'tb_expand_mate' that is compiled without support for 'popcnt'
cargo:warning= if (popcount(pos->white | pos->black) <= cardinalityDTM) {
cargo:warning= ^
cargo:warning=fathom/src/tbprobe.c:125:38: note: expanded from macro 'popcount'
cargo:warning=#define popcount(x) (int)_mm_popcnt_u64((x))
cargo:warning= ^
cargo:warning=3 warnings and 1 error generated.
exit code: 1
Velvet-chess-6.0.0 error
Moderator: Ras
-
- Posts: 967
- Joined: Thu Aug 11, 2022 11:30 pm
- Full name: Esmeralda Pinto
-
- Posts: 4408
- Joined: Fri Mar 10, 2006 5:23 am
- Location: http://www.arasanchess.org
Re: Velvet-chess-6.0.0 error
If you are on a system with popcnt support, you need to add -mpopcnt to the compilation flags.
If you really want to compile without popcnt, you need to add -DTB_NO_HW_POP_COUNT when compiling Fathom.
If you really want to compile without popcnt, you need to add -DTB_NO_HW_POP_COUNT when compiling Fathom.