You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I updated my system recently, using the latest llvm package from homebrew and latest rust version. When I now run cargo pgo optimize, I keep getting a LLVM Profile Error: Runtime and instrumentation version mismatch : expected 10, but get 8 error.
My llvm installation is version 19, and running rustc --version --verbose reveals that my rust installation is also using llvm 19:
[rustc version]: 1.84.0 is recent enough
[llvm-profdata]: found at /Users/ivan/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin/llvm-profdata
[llvm-bolt]: found at /Users/ivan/Downloads/LLVM/build/bin/llvm-bolt
[merge-fdata]: found at /Users/ivan/Downloads/LLVM/build/bin/merge-fdata
I was missing bolt from my llvm install, so I have built it myself from version 19.1.17 of llvm (which is the latest one packaged by brew), but the same error still persists.
I think that you're going to get the same result, but you could try doing PGO without cargo-pgo (https://doc.rust-lang.org/rustc/profile-guided-optimization.html) to see if that works. If the same error happens without cargo-pgo, then sadly I can't do much here. You could report the issue in the Rust issue tracker though.
Hi! Love the project.
I updated my system recently, using the latest llvm package from homebrew and latest rust version. When I now run
cargo pgo optimize
, I keep getting aLLVM Profile Error: Runtime and instrumentation version mismatch : expected 10, but get 8
error.My llvm installation is version 19, and running
rustc --version --verbose
reveals that my rust installation is also using llvm 19:Is anyone else facing this issue?
The text was updated successfully, but these errors were encountered: