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

Incremental compilation failed #904

Closed
waghanza opened this issue Jan 29, 2019 · 2 comments
Closed

Incremental compilation failed #904

waghanza opened this issue Jan 29, 2019 · 2 comments
Assignees
Labels
upstream An unresolvable issue: an upstream dependency bug

Comments

@waghanza
Copy link

Hi,

With rust 1.34.0-nightly (2019-01-29), I have the following message :

error: can't perform LTO when compiling incrementally

error: aborting due to previous error

error: Could not compile `server`.

To learn more, run the command again with --verbose.

on compilation

 RUSTFLAGS="-C target-cpu=native" cargo build --release

I have not knowledge in rust, so I just want to report bug

The source code is https://github.com/the-benchmarker/web-frameworks/tree/master/rust/rocket

Regards,

@jebrosen
Copy link
Collaborator

This is caused by the settings in Cargo.toml in conjunction with rust-lang/cargo#6564 , nothing actually related to Rocket afaik. I will take a closer look later and see what is the best way to get it running again.

@jebrosen jebrosen added the upstream An unresolvable issue: an upstream dependency bug label Jan 30, 2019
@jebrosen jebrosen self-assigned this Jan 30, 2019
@jebrosen
Copy link
Collaborator

It looks like adding incremental = false in Cargo.toml (in the same section as lto = true) would fix the compilation error. The error should also go away on its own once it's reverted and later re-introduced in a non-breaking way.

@waghanza waghanza closed this as completed Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream An unresolvable issue: an upstream dependency bug
Projects
None yet
Development

No branches or pull requests

2 participants