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

Bad interaction of RUSTFLAGS and cargo miri #567

Closed
RalfJung opened this issue Dec 10, 2018 · 1 comment
Closed

Bad interaction of RUSTFLAGS and cargo miri #567

RalfJung opened this issue Dec 10, 2018 · 1 comment
Labels
A-cargo Area: affects the cargo wrapper (cargo miri) C-bug Category: This is a bug.

Comments

@RalfJung
Copy link
Member

Running RUSTFLAGS=-g cargo miri run does not work:

error: -g and -C debuginfo both provided

error: Could not compile `byteorder`.

Adding some debug printing shows that we are running the command

"rustc" "-Zalways-encode-mir" "-Zmir-emit-retag" "-Zmir-opt-level=0" "--crate-name" "byteorder" "/home/r/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.0.0/src/lib.rs" "--color" "always" "--crate-type" "lib" "--emit=dep-info,link" "-C" "debuginfo=2" "--cfg" "feature=\"default\"" "--cfg" "feature=\"std\"" "-C" "metadata=96f138114898c6b9" "-C" "extra-filename=-96f138114898c6b9" "--out-dir" "/home/r/src/rust/miri.2/test-cargo-miri/target/debug/deps" "-L" "dependency=/home/r/src/rust/miri.2/test-cargo-miri/target/debug/deps" "--cap-lints" "allow" "-g" "--sysroot" "/home/r/.cache/miri/HOST" "--cfg" "feature=\"cargo-miri\""

this, indeed, contains both -g and -C debuginfo.

@RalfJung RalfJung added C-bug Category: This is a bug. A-cargo Area: affects the cargo wrapper (cargo miri) labels Mar 8, 2019
@RalfJung
Copy link
Member Author

RalfJung commented May 8, 2019

Fixed by rust-lang/rust#60426

@RalfJung RalfJung closed this as completed May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cargo Area: affects the cargo wrapper (cargo miri) C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

1 participant