Open krutikavk opened 4 months ago
Same, I've also tried with grcov 0.8.20 from crate.io. Same result.
Basically, you have a mismatch between your system's LLVM version (the one you compile your code with, I guess) and the one that is shipped by rust. You can check rust's version by:
rustc --version --verbose
$ rustc --version --verbose
rustc 1.81.0 (eeb90cda1 2024-09-04)
binary: rustc
commit-hash: eeb90cda1969383f56a2637cbd3037bdf598841c
commit-date: 2024-09-04
host: x86_64-unknown-linux-gnu
release: 1.81.0
LLVM version: 18.1.7
It seems you are right, my LLVM is now 18.1.8:
pacman -Qi llvm
Name : llvm
Version : 18.1.8-4
Description : Compiler infrastructure
Architecture : x86_64
URL : https://llvm.org/
Licenses : Apache-2.0 WITH LLVM-exception
Groups : None
Provides : None
Depends On : llvm-libs perl
Optional Deps : None
Required By : None
Optional For : diffoscope
Conflicts With : None
Replaces : None
Installed Size : 108.32 MiB
Packager : Evangelos Foutras <foutrelis@archlinux.org>
Build Date : Wed Jul 17 19:01:26 2024
Install Date : Mon Oct 14 17:56:45 2024
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
I'm seeing the same thing on macOS where I use Homebrew LLVM.
❯ rustc --version --verbose
rustc 1.82.0 (f6e511eec 2024-10-15)
binary: rustc
commit-hash: f6e511eec7342f59a25f7c0534f1dbea00d01b14
commit-date: 2024-10-15
host: aarch64-apple-darwin
release: 1.82.0
LLVM version: 19.1.1
❯ brew info llvm
==> llvm: stable 19.1.3 (bottled), HEAD [keg-only]
Next-gen compiler infrastructure
https://llvm.org/
Installed
/opt/homebrew/Cellar/llvm/19.1.3 (8,053 files, 1.9GB)
Poured from bottle using the formulae.brew.sh API on 2024-11-06 at 10:53:46
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/l/llvm.rb
License: Apache-2.0 WITH LLVM-exception
How do I fix this?
I am running grcov version 0.8.19. These commands are run while building a docker image.
Here are rust, rustup, grcov versions:
Operating system is Debian GNU/Linux 11 (bullseye).
I am following all the steps mentioned in documentation. How to fix this error?