-
Notifications
You must be signed in to change notification settings - Fork 2.6k
cargo check fails, cargo build fails, cargo build --release works #7015
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
Comments
Can you post a project or Cargo.toml that reproduces the problem? |
Hm, I can't seem to find a way to reproduce it. Have you tried running |
Yes, sure. Same error in the project I posted earlier. |
Sorry, I'm not able to reproduce your issue, and I don't really see any clues which could explain it. You might get more help on one of the forums like URLO. |
Oh, another thing you might try is disabling incremental compilation to see if that is the culprit. Set the environment variable |
CARGO_INCREMENTAL=0 builds correctly! Thanks! |
Move to close? |
Yep, hopefully the compiler team can wrangle it. People may follow rust-lang/rust#59535 for updates. |
Problem
cargo check on a project using serde fails the final linking, with a rather huge amount of undefine references. The same goes for debug build, but release works as expected.
Steps
Possible Solution(s)
Build with --release creates a working binary, but is slow and doesn't work as well with 'cargo watch -c' (my workflow...)
cargo +nightly check
cargo 1.37.0-nightly (545f354 2019-05-23)
Notes
cargo 1.35.0 (6f3e9c3 2019-04-04)
rustc 1.35.0 (3c235d560 2019-05-20)
stable-x86_64-unknown-linux-gnu (default)
Debian GNU/Linux 10 testing amd64
cargo_check_serde_output.txt
The text was updated successfully, but these errors were encountered: