-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Incompatibility using both -Zinstrument-coverage
and -Z build-std
#79401
Comments
By the way, there is a current PR OISF/suricata#5582 with a fix : not using |
@catenacyber - Thanks for the bug report! I did some experimenting (briefly), and I can repro this issue, for instance, with: RUSTFLAGS="-Zinstrument-coverage" cargo build --release -Z build-std --target x86_64-unknown-linux-gnu I don't fully understand how One copy loads the standard (This is a minimually-educated guess, from the error messages.) Anyhow, I don't think So I tried: RUSTFLAGS="-Zprofile" cargo build --release -Z build-std --target x86_64-unknown-linux-gnu Sure enough, I get the same errors. Since Note, both |
Indeed, I do not know which experimental feature should fix this. |
@alexcrichton - Is |
I believe the |
@catenacyber - Would you mind copy/pasting your issue into that list (perhaps just linking back to here for context if helpful)? Thanks! |
@rustbot label +A-code-coverage |
I tried this code:
This ends up running
cargo build --release -Z build-std
I expected to see this happen:
Compilation succeeds
Instead, this happened:
Compilation failed with
and many more errors about other duplicate items
Meta
This is part of #34701 cc @richkadel
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: