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

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

Closed
glandium opened this issue Mar 27, 2021 · 2 comments
Closed

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

glandium opened this issue Mar 27, 2021 · 2 comments
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. C-bug Category: This is a bug. requires-nightly This issue requires a nightly compiler in some way. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@glandium
Copy link
Contributor

glandium commented Mar 27, 2021

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.

@glandium glandium added the C-bug Category: This is a bug. label Mar 27, 2021
@jonas-schievink jonas-schievink added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 27, 2021
@nagisa nagisa added the requires-nightly This issue requires a nightly compiler in some way. label Mar 27, 2021
@glandium
Copy link
Contributor Author

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
Copy link

wllenyj commented Feb 16, 2022

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
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. C-bug Category: This is a bug. requires-nightly This issue requires a nightly compiler in some way. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants