Closed Zibri closed 1 year ago
Mh this works just fine for my WSL
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS"
whats the output of g++-9 -v
maybe?
Ah, please also change the Steps to reproduce
I changed the issue... I don't know what was messed up before but I removed the directory and cloned again the full repository. Now "build" works.. but profile-build does not. $ make -j profile-build ARCH=x86-64-modern COMP=clang
I rechecked everything:
this works: make clean;make -j build ARCH=x86-64-modern COMP=clang this fails: make clean;make -j build ARCH=x86-64-modern COMP=gcc COMPCXX=g++-9 and this fails too: make clean;make -j profile-build ARCH=x86-64-modern COMP=clang
This is typically an issue with how you have installed the toolchains. For example, your first post contains the following error message:
cannot open /opt/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.6/lib/linux/libclang_rt.profile-x86_64.a
That's not something we can fix from our side.
if I remove flto lines in Makefile everything works:
713:# CXXFLAGS += -flto -flto-partition=one 714:# LDFLAGS += $(CXXFLAGS) -flto=jobserver 716:# CXXFLAGS += -flto=full
Can anyone explain me why?
This is typically an issue with how you have installed the toolchains. For example, your first post contains the following error message:
cannot open /opt/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.6/lib/linux/libclang_rt.profile-x86_64.a
That's not something we can fix from our side.
Yep.. sorry.. I noticed now.. I had the paths set for ndk compile. With normal paths clang works too... BUT, I have to remove flto lines from Makefile if I want to use gcc-9
Please provide detailed information in each specific case.
make
output, including error messagesNevermind... with the correct PATH variable, everything works. My bad. Perhaps, as a hint, set the PATH variable to the default at the top of the makefile. That will solve any similar problems people might have.
You may close this. Sorry.
Just for reference, this is now my build script and it works, no matter how the PATH variable is set:
#!/bin/bash
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
cd Stockfish/src
rm -rf stockfish.armv8 stockfish.bmi2
git pull
make clean;make -j8 build ARCH=armv8 COMP=ndk;make -j strip ARCH=armv8 COMP=ndk
mv stockfish stockfish.armv8
make clean;make -j8 profile-build ARCH=x86-64-bmi2 COMP=gcc COMPCXX=g++-9;make -j strip ARCH=x86-64-bmi2 COMP=gcc COMPCXX=g++-9
mv stockfish stockfish.bmi2
Describe the issue
$ make -j profile-build ARCH=x86-64-modern COMP=clang-10
[...]
Expected behavior
.
Steps to reproduce
make clean;make -j profile-build ARCH=x86-64-modern COMP=clang
Anything else?
$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.5 LTS"
Operating system
All
Stockfish version
latest