-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stockfish 17 compile warning: default_8778923807362599951_0.profraw: raw profile version mismatch: Profile uses raw profile format version = 9; expected version = 8 #5587
Comments
Run make clean before I think that should fix it |
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 ... |
in that case, I believe it is the combination of tools (linker / compiler) you have installed that is not compatible. |
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. |
Both are 18.1.8: brew list clang-format brew list llvm |
clang-format is probably not the same as the clang compiler you use. Try the output of |
Do llvm-profdata --version as well. It is mostly likely something related to the order of things in path. |
Can you check Also try this: |
xcrun llvm-profdata --version Thx this works: Default net: nn-1111cefa1111.nnue Config: Flags: Testing config sanity. If this fails, try 'make help' ... Step 1/4. Building instrumented executable ... Step 2/4. Running benchmark for pgo-build ...
|
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 |
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 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 |
that's what they just did here #5587 (comment) which worked? |
ah, didn't see that, but yes, that makes sense. |
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. |
A lot of other people and I compile Stockfish with Homebrew Clang very often and it was never a problem. Note: |
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? |
The raw profile version is updated to 9 in LLVM 18.1.0-rc. llvm/llvm-project@f95b2f1 |
I'll close this as a misconfiguration issue on the users system (even though it was caused by the package manager). |
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
The text was updated successfully, but these errors were encountered: