DON Chess Engine

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

Moderator: Ras

erashid
Posts: 195
Joined: Sun Oct 20, 2013 8:40 pm
Full name: Ehsan Rashid

Re: DON Chess Engine

Post by erashid »

chessica wrote: Thu Jan 08, 2026 10:26 am What did you change? Just the makefile? What also bothers me are the .o files that weren't removed after compiling. A `make clean` command is probably missing from the makefile.
Is it compile now?

Any error?

please tell.

Thanks
chessica
Posts: 1038
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: DON Chess Engine

Post by chessica »

erashid wrote: Thu Jan 08, 2026 10:44 am
chessica wrote: Thu Jan 08, 2026 10:26 am What did you change? Just the makefile? What also bothers me are the .o files that weren't removed after compiling. A `make clean` command is probably missing from the makefile.
Is it compile now?

Any error?

please tell.

Thanks
That's rude and won't be well received. I'm still waiting for a reply from you. Otherwise, we can't proceed.
erashid
Posts: 195
Joined: Sun Oct 20, 2013 8:40 pm
Full name: Ehsan Rashid

Re: DON Chess Engine

Post by erashid »

erashid wrote: Thu Jan 08, 2026 10:39 am
chessica wrote: Thu Jan 08, 2026 10:26 am What did you change? Just the makefile? What also bothers me are the .o files that weren't removed after compiling. A `make clean` command is probably missing from the makefile.
i changed this: line# 477

# Add --no-as-needed ONLY if using GNU ld (not lld, not Darwin)
ifneq ($(KERNEL), Darwin)
ifeq ($(shell $(CXX) -Wl,--version 2>/dev/null | grep -iq "GNU ld" && echo yes), yes)
LDFLAGS += -Wl,--no-as-needed
endif
endif
see this.

Thanks
chessica
Posts: 1038
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: DON Chess Engine

Post by chessica »

erashid wrote: Thu Jan 08, 2026 10:51 am
erashid wrote: Thu Jan 08, 2026 10:39 am
chessica wrote: Thu Jan 08, 2026 10:26 am What did you change? Just the makefile? What also bothers me are the .o files that weren't removed after compiling. A `make clean` command is probably missing from the makefile.
i changed this: line# 477

# Add --no-as-needed ONLY if using GNU ld (not lld, not Darwin)
ifneq ($(KERNEL), Darwin)
ifeq ($(shell $(CXX) -Wl,--version 2>/dev/null | grep -iq "GNU ld" && echo yes), yes)
LDFLAGS += -Wl,--no-as-needed
endif
endif
see this.

Thanks
No, under this link: https://github.com/ehsanrashid/DON I see this: Error 404!
Chacal X
Posts: 125
Joined: Mon Mar 10, 2025 9:06 pm
Full name: flavio thomazini

Re: DON Chess Engine

Post by Chacal X »

Why don't you ask Jim to compile it in SSE3 or AVX? I'm sure he'll solve the problem...
chessica
Posts: 1038
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: DON Chess Engine

Post by chessica »

Chacal X wrote: Thu Jan 08, 2026 12:14 pm Why don't you ask Jim to compile it in SSE3 or AVX? I'm sure he'll solve the problem...
There must be a reason for that.
erashid
Posts: 195
Joined: Sun Oct 20, 2013 8:40 pm
Full name: Ehsan Rashid

Re: DON Chess Engine

Post by erashid »

Chacal X wrote: Thu Jan 08, 2026 12:14 pm Why don't you ask Jim to compile it in SSE3 or AVX? I'm sure he'll solve the problem...
Wait I have SSSE3 compiles. 2 version..

I upload it now. just wait.

Thanks
erashid
Posts: 195
Joined: Sun Oct 20, 2013 8:40 pm
Full name: Ehsan Rashid

Re: DON Chess Engine

Post by erashid »

chessica wrote: Thu Jan 08, 2026 9:06 am
chessica wrote: Wed Jan 07, 2026 7:25 pm
erashid wrote: Wed Jan 07, 2026 7:22 pm
chessica wrote: Wed Jan 07, 2026 5:48 pm All builds are faulty and don't work for me, except for ssse3.
which one you are using ?

1. DON-SSE4.1
2. DON-AVX2
3-. DON-BMI2
3*. DON-BMI2-COMP
4-. DON-AVXVNNI
4*. DON-AVXVNNI-COMP
5-. DON-AVX512
5*. DON-AVX512-COMP

Thanks
It's difficult to say, because I didn't make a record.
Example: AVX2 --->>>g++ -o DON.exe benchmark.o bitboard.o engine.o evaluate.o main.o memory.o misc.o movegen.o movepick.o option.o perft.o polybook.o position.o search.o thread.o timeman.o tt.o uci.o tune.o full_threats.o half_ka_v2_hm.o accumulator.o network.o nmisc.o tablebase.o -fprofile-generate -m64 -Wl,--no-as-needed -static -lpthread -Wall -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -DUSE_PREFETCH -msse -DUSE_POPCNT -msse3 -mpopcnt -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto=full
lld: error: unknown argument: --no-as-needed
g++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:1131: DON.exe] Error 1
make[2]: Leaving directory '/home/Privat/don/don/src'
make[1]: *** [Makefile:1138: clang-profile-make] Error 2
make[1]: Leaving directory '/home/Privat/don/don/src'
make: *** [Makefile:994: profile-build] Error 2
What about this error?

gone now.. you compile?

Thanks
erashid
Posts: 195
Joined: Sun Oct 20, 2013 8:40 pm
Full name: Ehsan Rashid

DON Chess Engine

Post by erashid »

Please check out the latest build of DON here:
I uploaded to 3 servers.

1. mediafire
https://www.mediafire.com/folder/06ewg9vo8mfuj/DON

2. mega
https://mega.nz/folder/Cc1zkbAR#bnycmCX38aGjK6YavnMWqw

3. pixeldrain
https://pixeldrain.com/l/dWZSiJZ8

Please tell me if you want other builds also.
I uploaded the following ARCH for windows.

1. DON-SSSE3
2. DON-SSSE3-POPCNT
3. DON-SSE41-POPCNT
4. DON-AVX2
5-. DON-BMI2
5*. DON-BMI2-COMP
6-. DON-AVXVNNI
6*. DON-AVXVNNI-COMP
7-. DON-AVX512
7*. DON-AVX512-COMP

*NOTE: *COMP = Compressed version
- ~50% lower memory usage, typically 1–2% faster.
- Recommended for long gameplay and analysis.

Thanks
Ehsan Rashid
Chacal X
Posts: 125
Joined: Mon Mar 10, 2025 9:06 pm
Full name: flavio thomazini

Re: DON Chess Engine

Post by Chacal X »

That's incorrect, there's nothing in SSE3, see for yourself.