ShashChess

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

amchess
Posts: 364
Joined: Tue Dec 05, 2017 2:42 pm

Re: ShashChess

Post by amchess »

GCC 15.2.0 appears to have several stability issues, especially in the Mingw environment on Windows. Here is a summary of the situation:

Known Issues with GCC 15.2.0 on Windows
LTO (Link Time Optimization) Problems:

Optimization during linking is unstable.

Generates unpredictable "undefined reference" errors.

Particularly problematic for complex projects such as chess engines.

Linker Regressions:

Less tolerant handling of symbols.

Issues with inter-translation unit optimizations.

Windows API Compatibility:

Problems with some system libraries.

Difficulties with full static linking.

MinGW-w64 Specific Issues:

The Windows implementation is always a step behind the Linux version.

Greater challenges in maintaining compatibility.

Recommendations
Continue to Use GCC 14.2.0:
criko
Posts: 153
Joined: Wed Feb 28, 2018 2:50 pm

Re: ShashChess

Post by criko »

Compiling on Mac does not work.

ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [shashchess] Error 1
make[1]: *** [clang-profile-make] Error 2
make: *** [profile-build] Error 2
amchess
Posts: 364
Joined: Tue Dec 05, 2017 2:42 pm

Re: ShashChess

Post by amchess »

This type of post is not appropriate here.

If you wish to report an issue, please do so on GitHub:

https://github.com/amchess/ShashChess/issues

In that case, make sure to include the complete error log.

Thank you.
criko
Posts: 153
Joined: Wed Feb 28, 2018 2:50 pm

Re: ShashChess

Post by criko »

I will not create a github account to help you with your buggy engines.

Thank you.

btw. compiling on windows is buggy too.

But this is normal with every new release from you.
criko
Posts: 153
Joined: Wed Feb 28, 2018 2:50 pm

Re: ShashChess

Post by criko »

amchess wrote: Thu Jul 24, 2025 9:55 am If you wish to report an issue, please do so on GitHub:
Downloading from https://tests.stockfishchess.org/api/nn ... 00000.nnue ...
Successfully validated nn-1c0000000000.nnue
Downloading from https://tests.stockfishchess.org/api/nn ... 2d772.nnue ...
Successfully validated nn-37f18f62d772.nnue

Config:
debug: 'no'
sanitize: 'none'
optimize: 'yes'
arch: 'arm64'
bits: '64'
kernel: 'Darwin'
os: ''
prefetch: 'yes'
popcnt: 'yes'
pext: 'no'
sse: 'no'
mmx: 'no'
sse2: 'no'
ssse3: 'no'
sse41: 'no'
avx2: 'no'
avxvnni: 'no'
avx512: 'no'
vnni256: 'no'
vnni512: 'no'
altivec: 'no'
vsx: 'no'
neon: 'yes'
dotprod: 'yes'
arm_version: '8'
lsx: 'no'
lasx: 'no'
target_windows: ''

Flags:
CXX: clang++
CXXFLAGS: -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full
LDFLAGS: -DUSE_LIVEBOOK -lcurl -m64 -mmacosx-version-min=10.15 -arch arm64 -lpthread -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full

Testing config sanity. If this fails, try 'make help' ...


Step 1/4. Building instrumented executable ...
/Library/Developer/CommandLineTools/usr/bin/make ARCH=apple-silicon COMP=clang clang-profile-make
/Library/Developer/CommandLineTools/usr/bin/make ARCH=apple-silicon COMP=clang \
EXTRACXXFLAGS='-fprofile-generate ' \
EXTRALDFLAGS=' -fprofile-generate' \
all
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o benchmark.o benchmark.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o bitboard.o bitboard.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o evaluate.o evaluate.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o main.o main.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o misc.o misc.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o movegen.o movegen.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o movepick.o movepick.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o position.o position.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o search.o search.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o thread.o thread.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o timeman.o timeman.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o tt.o tt.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o uci.o uci.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o ucioption.o ucioption.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o tune.o tune.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o tbprobe.o syzygy/tbprobe.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o learn.o learn/learn.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o montecarlo.o mcts/montecarlo.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o file_mapping.o book/file_mapping.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o book.o book/book.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o book_manager.o book/book_manager.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o polyglot.o book/polyglot/polyglot.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o ctg.o book/ctg/ctg.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o nnue_accumulator.o nnue/nnue_accumulator.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o nnue_misc.o nnue/nnue_misc.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o half_ka_v2_hm.o nnue/features/half_ka_v2_hm.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o network.o nnue/network.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o engine.o engine.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o score.o score.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o memory.o memory.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o win_probability.o win_probability.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o BaseLivebook.o livebook/BaseLivebook.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o LichessOpening.o livebook/LichessOpening.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o LichessEndgame.o livebook/LichessEndgame.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o ChessDb.o livebook/ChessDb.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o Cp.o livebook/analysis/Cp.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o Analysis.o livebook/analysis/Analysis.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o Wdl.o livebook/analysis/Wdl.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o Mate.o livebook/analysis/Mate.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o LichessLivebook.o livebook/LichessLivebook.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o LichessMaster.o livebook/LichessMaster.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o LichessPlayer.o livebook/LichessPlayer.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o LichessUsers.o livebook/LichessUsers.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o LichessGames.o livebook/LichessGames.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o Proxy.o livebook/Proxy.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o ChessDBContributor.o livebook/ChessDBContributor.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o shashin_manager.o shashin/shashin_manager.cpp
clang++ -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full -c -o moveconfig.o shashin/moveconfig.cpp
shashin/shashin_manager.cpp:16:13: warning: overlapping comparisons always evaluate to false [-Wtautological-overlap-compare]
15 | return (state.dynamicBase.currentRange >= ShashinPosition::MIDDLE_LOW_TAL
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 | && state.dynamicBase.currentRange <= ShashinPosition::MIDDLE_TAL && s.kingDanger);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
shashin/shashin_manager.cpp:32:27: warning: overlapping comparisons always evaluate to false [-Wtautological-overlap-compare]
31 | if (__builtin_expect((state.dynamicBase.currentRange >= ShashinPosition::MIDDLE_LOW_TAL
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | && state.dynamicBase.currentRange <= ShashinPosition::MIDDLE_TAL)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
clang++ -o shashchess benchmark.o bitboard.o evaluate.o main.o misc.o movegen.o movepick.o position.o search.o thread.o timeman.o tt.o uci.o ucioption.o tune.o tbprobe.o learn.o montecarlo.o file_mapping.o book.o book_manager.o polyglot.o ctg.o nnue_accumulator.o nnue_misc.o half_ka_v2_hm.o network.o engine.o score.o memory.o win_probability.o BaseLivebook.o LichessOpening.o LichessEndgame.o ChessDb.o Cp.o Analysis.o Wdl.o Mate.o LichessLivebook.o LichessMaster.o LichessPlayer.o LichessUsers.o LichessGames.o Proxy.o ChessDBContributor.o shashin_manager.o moveconfig.o -fprofile-generate -DUSE_LIVEBOOK -lcurl -m64 -mmacosx-version-min=10.15 -arch arm64 -lpthread -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17 -fprofile-generate -DUSE_LIVEBOOK -Wno-backend-plugin -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -m64 -mmacosx-version-min=10.15 -arch arm64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -mdynamic-no-pic -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DARCH=apple-silicon -flto=full
Undefined symbols for architecture arm64:
"ShashChess::WDLModel::is_initialized()", referenced from:
ShashChess::Engine::search_clear() in lto.o
ShashChess::Engine::search_clear() in lto.o
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [shashchess] Error 1
make[1]: *** [clang-profile-make] Error 2
make: *** [profile-build] Error 2
amchess
Posts: 364
Joined: Tue Dec 05, 2017 2:42 pm

Re: ShashChess

Post by amchess »

I fixed the makeFile to also work with mingw 15.1.0, the latest stable one.
With MacOS, try with the laster makeFile i pushed:
make clean
make -j profile-build ARCH=apple-silicon COMP=clang LTO=yes
criko
Posts: 153
Joined: Wed Feb 28, 2018 2:50 pm

Re: ShashChess

Post by criko »

amchess wrote: Thu Jul 24, 2025 1:04 pm I fixed the makeFile to also work with mingw 15.1.0, the latest stable one.
With MacOS, try with the laster makeFile i pushed:
make clean
make -j profile-build ARCH=apple-silicon COMP=clang LTO=yes
Same prob on Mac :-(

All other engines e.g. Brainlearn, Stockfish, coechess and so on can be compiled here on Mac without any problems / errors or warnings.
MirceaH
Posts: 48
Joined: Mon Mar 13, 2006 4:21 pm

Re: ShashChess

Post by MirceaH »

See if the src folder contains (besides the WDL* folder) some WDL*.c and WDL*.h. Delete those files (or move them somewhere else) and try to build again. It should go well. I solved this problem on Linux, but the issue was the same.
criko
Posts: 153
Joined: Wed Feb 28, 2018 2:50 pm

Re: ShashChess

Post by criko »

Thx for your help ... but on Mac it does not work. Itried your setup.
criko
Posts: 153
Joined: Wed Feb 28, 2018 2:50 pm

Re: ShashChess

Post by criko »

MirceaH wrote: Thu Jul 24, 2025 8:13 pm See if the src folder contains (besides the WDL* folder) some WDL*.c and WDL*.h. Delete those files (or move them somewhere else) and try to build again. It should go well. I solved this problem on Linux, but the issue was the same.
With his older Shash dev versions he send me about 35 different versions to fix his own code to run on Mac.

He is a try and error coder.