Skip to content
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

Build failure: cargo-llvm-cov #354058

Open
jennydaman opened this issue Nov 6, 2024 · 1 comment
Open

Build failure: cargo-llvm-cov #354058

jennydaman opened this issue Nov 6, 2024 · 1 comment
Labels

Comments

@jennydaman
Copy link

Steps To Reproduce

Steps to reproduce the behavior:

  1. build cargo-llvm-cov

Build log

Relevant part:
     Running tests/test.rs (target/x86_64-unknown-linux-gnu/release/deps/test-a7997ef8041c621b)

running 18 tests
test coverage_helper ... ignored
test merge ... ignored
test no_coverage ... ignored
test help ... ok
test version ... ok
test invalid_arg_no_passthrough ... ok
test invalid_arg ... ok
test show_env ... ok
test instantiations ... FAILED
test no_test ... FAILED
test cargo_config ... FAILED
test open_report ... FAILED
test virtual1 ... FAILED
test clean_ws ... FAILED
test real1 ... FAILED
test bin_crate ... FAILED
test clean_profraw_only ... ok
test merge_failure_mode_all ... FAILED

failures:

---- instantiations stdout ----
thread 'instantiations' panicked at tests/test.rs:39:9:
assertion failed: `self.status.success()`:

STDOUT:
------------------------------------------------------------

running 1 test
test test ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

STDERR:
------------------------------------------------------------
info: when --target option is used, coverage for proc-macro and build script will not be displayed because cargo does not pass RUSTFLAGS to them
info: cargo-llvm-cov currently setting cfg(coverage); you can opt-out it by passing --no-cfg-coverage
warning: /build/.tmp9xYUif/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2021
   Compiling instantiations v0.0.0 (/build/.tmp9xYUif)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.26s
     Running unittests src/lib.rs (target/llvm-cov-target/x86_64-unknown-linux-gnu/debug/deps/instantiations-9c6e5837a7d8359b)
warning: /build/.tmp9xYUif/target/llvm-cov-target/.tmp9xYUif-2250-14576188841148315502_0.profraw: raw profile version mismatch: Profile uses raw profile format version = 10; expected version = 9
PLEASE update this tool to version in the raw profile, or regenerate raw profile with expected version.
error: no profile can be merged
error: failed to merge profile data: process didn't exit successfully: `/nix/store/0hh92ya113abgrns6frrinndq7mv6y2p-llvm-18.1.8/bin/llvm-profdata merge -sparse -f /build/.tmp9xYUif/target/llvm-cov-target/.tmp9xYUif-profraw-list -o /build/.tmp9xYUif/target/llvm-cov-target/.tmp9xYUif.profdata` (exit status: 1)

Full logs: cargo-llvm-cov.log

Additional context

None

Notify maintainers

@wucke13 @matthiasbeyer @CobaltCause

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.11.5-arch1-1, Arch Linux, noversion, rolling`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.7`
 - nixpkgs: `/home/jenni/.nix-defexpr/channels/nixpkgs`

Add a 👍 reaction to issues you find important.

@jennydaman jennydaman added the 0.kind: build failure A package fails to build label Nov 6, 2024
@CobaltCause
Copy link
Contributor

Will be fixed by #353741

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants