Skip to content

[v39] Build fails with undefined reference to ShashChess::WDLModel::is_initialized()' #71

Description

@bahmanm

Describe the issue

What Happened

Super excited to try it out, I decided to build it on my laptop. Sadly it failed:

$ make COMP=gcc -j profile-build ARCH=x86-64-sse41-popcnt

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

Flags:
CXX: g++
CXXFLAGS:  -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17  -DUSE_LIVEBOOK -Wno-psabi -mprefer-vector-width=256 -mno-avx512f -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DGIT_SHA=0289e374 -DGIT_DATE=20240504 -DARCH=x86-64-sse41-popcnt -flto -flto-partition=one
LDFLAGS:   -DUSE_LIVEBOOK -lcurl	 -m64 -Wl,--no-as-needed -lpthread  -Wall -Wextra -Wpedantic -Wcast-qual -fexceptions -std=c++17  -DUSE_LIVEBOOK -Wno-psabi -mprefer-vector-width=256 -mno-avx512f -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DGIT_SHA=0289e374 -DGIT_DATE=20240504 -DARCH=x86-64-sse41-popcnt -flto -flto-partition=one -flto=jobserver

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


Step 1/4. Building instrumented executable ...
/usr/bin/make ARCH=x86-64-sse41-popcnt COMP=gcc gcc-profile-make

...

/usr/lib64/gcc/x86_64-suse-linux/15/../../../../x86_64-suse-linux/bin/ld: /tmp/ccZ6mcjN.ltrans0.ltrans.o: in function `ShashChess::Engine::search_clear()':
<artificial>:(.text+0x141d08): undefined reference to `ShashChess::WDLModel::is_initialized()'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1113: shashchess] Error 1

My Machine

$ uname -a
Linux rostam 6.15.6-1-default #1 SMP PREEMPT_DYNAMIC Fri Jul 11 05:06:35 UTC 2025 (a69e09e) x86_64 x86_64 x86_64 GNU/Linux
$ g++ --version
g++ (SUSE Linux) 15.1.1 20250714
$ ld --version
GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.43.1.20241209-9
$ zypper info coreutils | grep Version
Version        : 9.7-3.1

Expected behavior

The build should have succeeded and a binary should have been produced.

Steps to reproduce

  • Download the source archive from v39 release page.
  • Extract it
  • cd src
  • make COMP=gcc -j profile-build ARCH=x86-64-sse41-popcnt

Anything else?

No response

Operating system

Linux

ShashChess version

v39

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions