official-pikafish / Pikafish

UCI xiangqi engine
http://pikafish.com
GNU General Public License v3.0
940 stars 172 forks source link

fail to compile on Linux machine? #67

Open chqzeng opened 8 months ago

chqzeng commented 8 months ago

Describe the issue

machine: Linux 22.04 CPU: AMD 3090

git clone https://github.com/official-pikafish/Pikafish
cd Pikafish/src
sudo make -j profile-build ARCH=x86-64-avx2 

or replace last command as: make -j build ARCH=x86-64 or make -j profile-build ARCH=x86-64-bmi2

Expected behavior

report an error,

lto-wrapper: warning: jobserver is not available: ‘--jobserver-auth=’ is not present in ‘MAKEFLAGS’
make[2]: Leaving directory '~/Pikafish/src'
make[1]: Leaving directory '~/Pikafish/src'

Step 2/4. Running benchmark for pgo-build ...
./pikafish bench > PGOBENCH.out 2>&1
make: *** [Makefile:913: profile-build] Error 1

even change the command above as example, still see this error message.

Steps to reproduce

please see the steps in description and error in expected behaviour

Anything else?

No response

Operating system

Linux

Pikafish version

Pikafish 2024-01-26 b764ad9

Klamath233 commented 8 months ago

Did you make sure ./pikafish bench can locate the NNUE file correctly?

Klamath233 commented 8 months ago

Try this before running make:

wget -c https://github.com/official-pikafish/Networks/releases/download/master-net/pikafish.nnue
basaiyv commented 6 months ago

COMP: clang