-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Enabling lto in 1.2.0 causes LLVM ERROR near llvm.lifetime.end #28233
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
Just tried with nightly and got the following:
So the error from nightly is a bit better, but we're still choking when we shouldn't |
The second one is probably #26447 which has been fixed recently. |
@dotdash that was closed 19 days ago (2015-08-16), but my nightly (as can be seen above) is from 2 days ago (2015-09-02). Either there is a regression or this is a different issue (or nightlies are not as nightly as I'd expect) |
Oh, that version information was not in the mail I got, and I didn't check the page if there were any edits. Nevermind that then. |
Is this when compiling specific code, all code, or the compiler itself? |
I'm seeing this on one of my projects. I haven't tested editing other crates Cargo.toml's to enable lto to see if they have a similar failure, but I'll take a look at doing so. I'll see if I can find some code I can point at that reproduces, but I'm not sure I can promise anything here. |
How can I reproduce this issue? |
When compiling this with
With
|
Triage: @vi's example still triggers the assertion on |
This also occurs when building https://github.com/serde-rs/json-benchmark with LTO enabled. Used compiler:
|
The scgi example doesn't reproduce when building. json-benchmark current doesn't build (proc_macro crate isn't found). Closing. |
Disabling
lto
causes compilation to complete without issue. Enabling it causes errors as follow.Below are a few runs of
cargo build
followed bycargo clean
between runs.(note: some cargo output was mixed in with the next one, I've left it in place without editing)
The text was updated successfully, but these errors were encountered: