official-stockfish / Stockfish

A free and strong UCI chess engine
https://stockfishchess.org/
GNU General Public License v3.0
11.62k stars 2.29k forks source link

Stockfish 17 compile warning: default_8778923807362599951_0.profraw: raw profile version mismatch: Profile uses raw profile format version = 9; expected version = 8 #5587

Closed Chess321 closed 3 weeks ago

Chess321 commented 2 months ago

Describe the issue

MacBook Pro 16-inch M1 MAX

make -j profile-build COMP=clang ARCH=apple-silicon

Default net: nn-1111cefa1111.nnue Downloading https://tests.stockfishchess.org/api/nn/nn-1111cefa1111.nnue nn-1111cefa1111.nnue available : OK Network validated Default net: nn-37f18f62d772.nnue Downloading https://tests.stockfishchess.org/api/nn/nn-37f18f62d772.nnue nn-37f18f62d772.nnue available : OK Network validated

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' neon: 'yes' dotprod: 'yes' arm_version: '8' target_windows: ''

Step 3/4. Building optimized executable ... /Applications/Xcode.app/Contents/Developer/usr/bin/make ARCH=apple-silicon COMP=clang objclean /Applications/Xcode.app/Contents/Developer/usr/bin/make ARCH=apple-silicon COMP=clang clang-profile-use xcrun llvm-profdata merge -output=stockfish.profdata *.profraw warning: default_8778923807362599951_0.profraw: raw profile version mismatch: Profile uses raw profile format version = 9; expected version = 8 PLEASE update this tool to version in the raw profile, or regenerate raw profile with expected version. error: no profile can be merged make[1]: [clang-profile-use] Error 1 make: [profile-build] Error 2

Expected behavior

Compile

Steps to reproduce

Stockfish 17 source code https://github.com/official-stockfish/Stockfish/releases/tag/sf_17

Anything else?

No response

Operating system

MacOS

Stockfish version

Stockfish 17

Disservin commented 2 months ago

Run make clean before I think that should fix it

Chess321 commented 2 months ago

I'm using clang 18.1.8.

I deleted it and downloaded Stockfish 17 code from GitHub again.

Same problem.

Make clean doesn't help:

make clean

make -j profile-build COMP=clang ARCH=apple-silicon

Step 3/4. Building optimized executable ... /Applications/Xcode.app/Contents/Developer/usr/bin/make ARCH=apple-silicon COMP=clang objclean /Applications/Xcode.app/Contents/Developer/usr/bin/make ARCH=apple-silicon COMP=clang clang-profile-use xcrun llvm-profdata merge -output=stockfish.profdata *.profraw warning: default_8778923807362599951_0.profraw: raw profile version mismatch: Profile uses raw profile format version = 9; expected version = 8 PLEASE update this tool to version in the raw profile, or regenerate raw profile with expected version. error: no profile can be merged make[1]: [clang-profile-use] Error 1 make: [profile-build] Error 2

vondele commented 2 months ago

in that case, I believe it is the combination of tools (linker / compiler) you have installed that is not compatible.

R-Goc commented 2 months ago

This shouldn't happen. However a quick google shows that somehow apple manages to have this happen to their users. This is caused by a mismatch in version between clang and llvm packages. llvm-profdata is part of llvm, but clang is a separate package. Make sure that llvm and clang are the same version. You can check version by just passing --version to llvm-profdata and clang, or with your package manager. How this doesn't break more things, I have no clue.

Chess321 commented 2 months ago

@R-Goc

Both are 18.1.8:

brew list clang-format /opt/homebrew/Cellar/clang-format/18.1.8/bin/clang-format /opt/homebrew/Cellar/clang-format/18.1.8/bin/git-clang-format /opt/homebrew/Cellar/clang-format/18.1.8/sbom.spdx.json /opt/homebrew/Cellar/clang-format/18.1.8/share/clang/ (6 files)

brew list llvm /opt/homebrew/Cellar/llvm/18.1.8/bin/FileCheck /opt/homebrew/Cellar/llvm/18.1.8/bin/UnicodeNameMappingGenerator /opt/homebrew/Cellar/llvm/18.1.8/bin/amdgpu-arch /opt/homebrew/Cellar/llvm/18.1.8/bin/analyze-build /opt/homebrew/Cellar/llvm/18.1.8/bin/bugpoint /opt/homebrew/Cellar/llvm/18.1.8/bin/c-index-test /opt/homebrew/Cellar/llvm/18.1.8/bin/clang /opt/homebrew/Cellar/llvm/18.1.8/bin/clang++ /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-18 /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-apply-replacements /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-change-namespace /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-check /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-cl /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-cpp /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-doc /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-extdef-mapping /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-format /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-include-cleaner /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-include-fixer /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-linker-wrapper /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-move /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-offload-bundler /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-offload-packager /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-pseudo /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-query /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-refactor /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-rename /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-reorder-fields /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-repl /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-scan-deps /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-tblgen /opt/homebrew/Cellar/llvm/18.1.8/bin/clang-tidy /opt/homebrew/Cellar/llvm/18.1.8/bin/clangd /opt/homebrew/Cellar/llvm/18.1.8/bin/clangd-xpc-test-client /opt/homebrew/Cellar/llvm/18.1.8/bin/count /opt/homebrew/Cellar/llvm/18.1.8/bin/darwin-debug /opt/homebrew/Cellar/llvm/18.1.8/bin/diagtool /opt/homebrew/Cellar/llvm/18.1.8/bin/dsymutil /opt/homebrew/Cellar/llvm/18.1.8/bin/find-all-symbols /opt/homebrew/Cellar/llvm/18.1.8/bin/git-clang-format /opt/homebrew/Cellar/llvm/18.1.8/bin/hmaptool /opt/homebrew/Cellar/llvm/18.1.8/bin/intercept-build /opt/homebrew/Cellar/llvm/18.1.8/bin/ld.lld /opt/homebrew/Cellar/llvm/18.1.8/bin/ld64.lld /opt/homebrew/Cellar/llvm/18.1.8/bin/llc /opt/homebrew/Cellar/llvm/18.1.8/bin/lld /opt/homebrew/Cellar/llvm/18.1.8/bin/lld-link /opt/homebrew/Cellar/llvm/18.1.8/bin/lldb /opt/homebrew/Cellar/llvm/18.1.8/bin/lldb-argdumper /opt/homebrew/Cellar/llvm/18.1.8/bin/lldb-dap /opt/homebrew/Cellar/llvm/18.1.8/bin/lldb-instr /opt/homebrew/Cellar/llvm/18.1.8/bin/lldb-server /opt/homebrew/Cellar/llvm/18.1.8/bin/lli /opt/homebrew/Cellar/llvm/18.1.8/bin/lli-child-target /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-PerfectShuffle /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-addr2line /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-ar /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-as /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-bcanalyzer /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-bitcode-strip /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-c-test /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-cat /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-cfi-verify /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-config /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-cov /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-cvtres /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-cxxdump /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-cxxfilt /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-cxxmap /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-debuginfo-analyzer /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-debuginfod /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-debuginfod-find /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-diff /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-dis /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-dlltool /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-dwarfdump /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-dwarfutil /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-dwp /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-exegesis /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-extract /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-gsymutil /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-ifs /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-install-name-tool /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-jitlink /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-jitlink-executor /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-lib /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-libtool-darwin /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-link /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-lipo /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-lto /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-lto2 /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-mc /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-mca /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-ml /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-modextract /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-mt /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-nm /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-objcopy /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-objdump /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-opt-report /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-otool /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-pdbutil /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-profdata /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-profgen /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-ranlib /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-rc /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-readelf /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-readobj /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-readtapi /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-reduce /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-remarkutil /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-rtdyld /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-sim /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-size /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-split /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-stress /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-strings /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-strip /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-symbolizer /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-tblgen /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-tli-checker /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-undname /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-windres /opt/homebrew/Cellar/llvm/18.1.8/bin/llvm-xray /opt/homebrew/Cellar/llvm/18.1.8/bin/mlir-cat /opt/homebrew/Cellar/llvm/18.1.8/bin/mlir-cpu-runner /opt/homebrew/Cellar/llvm/18.1.8/bin/mlir-linalg-ods-yaml-gen /opt/homebrew/Cellar/llvm/18.1.8/bin/mlir-lsp-server /opt/homebrew/Cellar/llvm/18.1.8/bin/mlir-minimal-opt /opt/homebrew/Cellar/llvm/18.1.8/bin/mlir-minimal-opt-canonicalize /opt/homebrew/Cellar/llvm/18.1.8/bin/mlir-opt /opt/homebrew/Cellar/llvm/18.1.8/bin/mlir-pdll /opt/homebrew/Cellar/llvm/18.1.8/bin/mlir-pdll-lsp-server /opt/homebrew/Cellar/llvm/18.1.8/bin/mlir-query /opt/homebrew/Cellar/llvm/18.1.8/bin/mlir-reduce /opt/homebrew/Cellar/llvm/18.1.8/bin/mlir-tblgen /opt/homebrew/Cellar/llvm/18.1.8/bin/mlir-translate /opt/homebrew/Cellar/llvm/18.1.8/bin/modularize /opt/homebrew/Cellar/llvm/18.1.8/bin/not /opt/homebrew/Cellar/llvm/18.1.8/bin/nvptx-arch /opt/homebrew/Cellar/llvm/18.1.8/bin/obj2yaml /opt/homebrew/Cellar/llvm/18.1.8/bin/opt /opt/homebrew/Cellar/llvm/18.1.8/bin/pp-trace /opt/homebrew/Cellar/llvm/18.1.8/bin/run-clang-tidy /opt/homebrew/Cellar/llvm/18.1.8/bin/sancov /opt/homebrew/Cellar/llvm/18.1.8/bin/sanstats /opt/homebrew/Cellar/llvm/18.1.8/bin/scan-build /opt/homebrew/Cellar/llvm/18.1.8/bin/scan-build-py /opt/homebrew/Cellar/llvm/18.1.8/bin/scan-view /opt/homebrew/Cellar/llvm/18.1.8/bin/set-xcode-analyzer /opt/homebrew/Cellar/llvm/18.1.8/bin/split-file /opt/homebrew/Cellar/llvm/18.1.8/bin/tblgen-lsp-server /opt/homebrew/Cellar/llvm/18.1.8/bin/tblgen-to-irdl /opt/homebrew/Cellar/llvm/18.1.8/bin/verify-uselistorder /opt/homebrew/Cellar/llvm/18.1.8/bin/wasm-ld /opt/homebrew/Cellar/llvm/18.1.8/bin/yaml-bench /opt/homebrew/Cellar/llvm/18.1.8/bin/yaml2obj /opt/homebrew/Cellar/llvm/18.1.8/include/c++/ (1017 files) /opt/homebrew/Cellar/llvm/18.1.8/include/clang/ (743 files) /opt/homebrew/Cellar/llvm/18.1.8/include/clang-c/ (13 files) /opt/homebrew/Cellar/llvm/18.1.8/include/clang-tidy/ (392 files) /opt/homebrew/Cellar/llvm/18.1.8/include/lld/ (14 files) /opt/homebrew/Cellar/llvm/18.1.8/include/lldb/ (537 files) /opt/homebrew/Cellar/llvm/18.1.8/include/llvm/ (1907 files) /opt/homebrew/Cellar/llvm/18.1.8/include/llvm-c/ (29 files) /opt/homebrew/Cellar/llvm/18.1.8/include/mach-o/ (2 files) /opt/homebrew/Cellar/llvm/18.1.8/include/mlir/ (1495 files) /opt/homebrew/Cellar/llvm/18.1.8/include/mlir-c/ (41 files) /opt/homebrew/Cellar/llvm/18.1.8/include/polly/ (111 files) /opt/homebrew/Cellar/llvm/18.1.8/include/ (6 files) /opt/homebrew/Cellar/llvm/18.1.8/lib/libClangdXPCLib.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/libLLVM-C.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/libLLVM.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/libLTO.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/libMLIR.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/libRemarks.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/libclang-cpp.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/libclang.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/liblldb.18.1.8.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/libmlir_arm_runner_utils.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/libmlir_arm_sme_abi_stubs.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/libmlir_async_runtime.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/libmlir_c_runner_utils.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/libmlir_float16_utils.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/libmlir_runner_utils.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/libomp.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib /opt/homebrew/Cellar/llvm/18.1.8/lib/c++/ (10 files) /opt/homebrew/Cellar/llvm/18.1.8/lib/clang/ (279 files) /opt/homebrew/Cellar/llvm/18.1.8/lib/cmake/ (58 files) /opt/homebrew/Cellar/llvm/18.1.8/lib/libear/ (3 files) /opt/homebrew/Cellar/llvm/18.1.8/lib/libscanbuild/ (11 files) /opt/homebrew/Cellar/llvm/18.1.8/lib/objects-Release/ (45 files) /opt/homebrew/Cellar/llvm/18.1.8/lib/python3.10/ (3 files) /opt/homebrew/Cellar/llvm/18.1.8/lib/python3.11/ (3 files) /opt/homebrew/Cellar/llvm/18.1.8/lib/python3.12/ (3 files) /opt/homebrew/Cellar/llvm/18.1.8/lib/python3.7/ (3 files) /opt/homebrew/Cellar/llvm/18.1.8/lib/python3.8/ (3 files) /opt/homebrew/Cellar/llvm/18.1.8/lib/python3.9/ (3 files) /opt/homebrew/Cellar/llvm/18.1.8/lib/ (596 other files) /opt/homebrew/Cellar/llvm/18.1.8/libexec/python3.12/ (29 files) /opt/homebrew/Cellar/llvm/18.1.8/libexec/ (6 files) /opt/homebrew/Cellar/llvm/18.1.8/sbom.spdx.json /opt/homebrew/Cellar/llvm/18.1.8/share/clang/ (11 files) /opt/homebrew/Cellar/llvm/18.1.8/share/emacs/ (7 files) /opt/homebrew/Cellar/llvm/18.1.8/share/libc++/ (133 files) /opt/homebrew/Cellar/llvm/18.1.8/share/man/man1/scan-build.1 /opt/homebrew/Cellar/llvm/18.1.8/share/opt-viewer/ (6 files) /opt/homebrew/Cellar/llvm/18.1.8/share/scan-build/ (2 files) /opt/homebrew/Cellar/llvm/18.1.8/share/scan-view/ (4 files) /opt/homebrew/Cellar/llvm/18.1.8/share/vim/ (16 files) /opt/homebrew/Cellar/llvm/18.1.8/Toolchains/LLVM18.1.8.xctoolchain/Info.plist

vondele commented 2 months ago

clang-format is probably not the same as the clang compiler you use. Try the output of clang --version

R-Goc commented 2 months ago

Do llvm-profdata --version as well. It is mostly likely something related to the order of things in path.

Chess321 commented 2 months ago

@vondele @R-Goc

clang --version Homebrew clang version 18.1.8 Target: arm64-apple-darwin23.6.0 Thread model: posix InstalledDir: /opt/homebrew/opt/llvm/bin

llvm-profdata --version Homebrew LLVM version 18.1.8 Optimized build.

MinetaS commented 2 months ago

Can you check xcrun llvm-profdata --version?

Also try this: make -j profile-build ARCH=apple-silicon COMP=clang XCRUN=""

Chess321 commented 2 months ago

@MinetaS

xcrun llvm-profdata --version llvm-profdata: Unknown command! USAGE: llvm-profdata <merge|show|overlap> [args...]

Thx this works: make -j profile-build ARCH=apple-silicon COMP=clang XCRUN=""

Default net: nn-1111cefa1111.nnue nn-1111cefa1111.nnue available : OK Network validated Default net: nn-37f18f62d772.nnue nn-37f18f62d772.nnue available : OK Network validated

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' neon: 'yes' dotprod: 'yes' arm_version: '8' target_windows: ''

Flags: CXX: clang++ CXXFLAGS: -Wall -Wcast-qual -fno-exceptions -std=c++17 -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: -m64 -mmacosx-version-min=10.15 -arch arm64 -lpthread -Wall -Wcast-qual -fno-exceptions -std=c++17 -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 ... /Applications/Xcode.app/Contents/Developer/usr/bin/make ARCH=apple-silicon COMP=clang clang-profile-make /Applications/Xcode.app/Contents/Developer/usr/bin/make ARCH=apple-silicon COMP=clang \ EXTRACXXFLAGS='-fprofile-generate ' \ EXTRALDFLAGS=' -fprofile-generate' \ all clang++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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++ -o stockfish 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 nnue_misc.o half_ka_v2_hm.o network.o engine.o score.o memory.o -fprofile-generate -m64 -mmacosx-version-min=10.15 -arch arm64 -lpthread -Wall -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -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

Step 2/4. Running benchmark for pgo-build ... ./stockfish bench > PGOBENCH.out 2>&1 tail -n 4 PGOBENCH.out

Total time (ms) : 1286 Nodes searched : 1484730 Nodes/second : 1154533

Step 3/4. Building optimized executable ... /Applications/Xcode.app/Contents/Developer/usr/bin/make ARCH=apple-silicon COMP=clang objclean /Applications/Xcode.app/Contents/Developer/usr/bin/make ARCH=apple-silicon COMP=clang clang-profile-use llvm-profdata merge -output=stockfish.profdata *.profraw /Applications/Xcode.app/Contents/Developer/usr/bin/make ARCH=apple-silicon COMP=clang \ EXTRACXXFLAGS='-fprofile-use=stockfish.profdata' \ EXTRALDFLAGS='-fprofile-use ' \ all clang++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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 -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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++ -o stockfish 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 nnue_misc.o half_ka_v2_hm.o network.o engine.o score.o memory.o -fprofile-use -m64 -mmacosx-version-min=10.15 -arch arm64 -lpthread -Wall -Wcast-qual -fno-exceptions -std=c++17 -fprofile-use=stockfish.profdata -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

Step 4/4. Deleting profile data ... /Applications/Xcode.app/Contents/Developer/usr/bin/make ARCH=apple-silicon COMP=clang profileclean

./stockfish compiler

Stockfish 17 by the Stockfish developers (see AUTHORS file)

Compiled by : clang++ 18.1.8 on Apple Compilation architecture : apple-silicon Compilation settings : 64bit POPCNT NEON_DOTPROD Compiler VERSION macro : Homebrew Clang 18.1.8

Disservin commented 2 months ago

so apparently xcron is missing or what?

MinetaS commented 2 months ago

so apparently xcron is missing or what?

In macOS Clang is included in Xcode toolchain or can be installed via Homebrew. In Stockfish Makefile, it's assumed that clang++ points to Apple Clang (hence it runs xcrun llvm-profdata), but this can be problematic when Homebrew Clang is used instead.

Disservin commented 2 months ago

So in that case the question is if we want to change our Makefile and check where the compiler comes from or if we say that this is a misconfiguration of the users system?

vondele commented 2 months ago

I don't think that adding logic here is the right thing to do. If this user has also brew installed llvm-profdata correct it might work if he does make -j profile-build XCRUN="" ... ?

Disservin commented 2 months ago

that's what they just did here https://github.com/official-stockfish/Stockfish/issues/5587#issuecomment-2347417278 which worked?

vondele commented 2 months ago

ah, didn't see that, but yes, that makes sense.

MinetaS commented 1 month ago

So in that case the question is if we want to change our Makefile and check where the compiler comes from or if we say that this is a misconfiguration of the users system?

I have zero experience with macOS so it's hard to tell. It relies on how many people use which type of Clang respectively.

My opinion is that assuming the presence of Xcode sounds bad for now, because we only have one variable to check it (uname equal to Darwin) and this is not a correct requisite to verify whether Xcode is available or not.

Chess321 commented 1 month ago

A lot of other people and I compile Stockfish with Homebrew Clang very often and it was never a problem. So what changed that it is a problem now?

Note: Homebrew Clang 18.1.8 Xcode Clang 15.4 https://gist.github.com/yamaya/2924292 People don't like to use a very very old compiler. Apple is often 1-3 versions behind like 15 or 16 or 17 instead of 18, depends on which version/year we have. And I'm not even talking about 15.1, 15.2, 15.3, 15.4, 15.5 or about 15.1.1, 15.1.2, 15.1.3, 15.1.4

R-Goc commented 1 month ago

If it did work previously, could you bisect it? Do you have a known good commit at least, so that other people with macs could bisect it, if they can reproduce it?

MinetaS commented 1 month ago

The raw profile version is updated to 9 in LLVM 18.1.0-rc. https://github.com/llvm/llvm-project/commit/f95b2f1acf1171abb0d00089fd4c9238753847e3

Disservin commented 3 weeks ago

I'll close this as a misconfiguration issue on the users system (even though it was caused by the package manager).