Skip to content

-Z profile broken since the upgrade to LLVM 11 #83552

Closed
@glandium

Description

@glandium
Contributor

The same errors as #50203 (cannot merge previous GCDA file: corrupt arc tag) are happening again, starting with nightly-2020-08-24 (5180f3d), which is the first nightly after #73526.

I'm using the flags -Zprofile -Ccodegen-units=1 -Cinline-threshold=0, and setting CARGO_INCREMENTAL=0 in the environment.

Activity

added
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Mar 27, 2021
glandium

glandium commented on Apr 10, 2021

@glandium
ContributorAuthor

This looks like a LLVM issue purely. If I upgrade the C compiler to LLVM 11 too, then it works (this was on a crate with ffi code). I guess this is not something rust can do anything about.

wllenyj

wllenyj commented on Feb 16, 2022

@wllenyj

The same problem reappeared in 1.60.0-nightly (09cb29c 2022-02-15)

    ubuntu: info: default toolchain set to 'nightly-x86_64-unknown-linux-gnu'
    ubuntu:   nightly-x86_64-unknown-linux-gnu installed - rustc 1.60.0-nightly (09cb29c64 2022-02-15)
    ubuntu: 
    ubuntu: 
    ubuntu: Rust is installed now. Great!

...

failures:

---- x86_64::mpspec::bindgen_test_layout_mpc_cpu stdout ----
---- x86_64::mpspec::bindgen_test_layout_mpc_cpu stderr ----
profiling: /vagrant/target/debug/deps/db_boot-f38d7d4bfa105ed8.gcda: cannot merge previous GCDA file: corrupt arc tag (0x00000000)
profiling: /vagrant/target/debug/deps/db_boot-f38d7d4bfa105ed8.gcda: cannot merge previous GCDA file: corrupt arc tag (0x00000001)
profiling: /vagrant/target/debug/deps/db_boot-f38d7d4bfa105ed8.gcda: cannot merge previous GCDA file: corrupt arc tag (0x00000001)
profiling: /vagrant/target/debug/deps/db_boot-f38d7d4bfa105ed8.gcda: cannot merge previous GCDA file: corrupt arc tag (0x75747375)
profiling: /vagrant/target/debug/deps/db_boot-f38d7d4bfa105ed8.gcda: cannot merge previous GCDA file: corrupt arc tag (0x3638782d)
profiling: /vagrant/target/debug/deps/db_boot-f38d7d4bfa105ed8.gcda: cannot merge previous GCDA file: corrupt arc tag (0x696c2f75)

See https://github.com/wllenyj/dragonball-sandbox/runs/5212083346 for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @nagisa@glandium@jonas-schievink@wllenyj

        Issue actions

          -Z profile broken since the upgrade to LLVM 11 · Issue #83552 · rust-lang/rust