-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
rustc assertion failed when building in release mode with -g #31702
Comments
This commit in the LLVM 3.8 release branch looks suspicious. Could you try updating your code to the most recent nightly so I can test against a rustc with that LLVM? |
|
Ah right, yes! I'll try with the same nightly where the only change is an upgraded LLVM and see what I can come up with. |
Ok, fixed in #31717 |
This commit rebases our LLVM submodule on the most recent tip of the `release_38` branch of LLVM. There's been a few fixes and this notably fixes the assertion error in rust-lang#31702.
Giant thank you @alexcrichton |
In rust-lang#31717 we rebased our LLVM fork over the 3.8 release branch, and it was thought that this fixed rust-lang#31702. The testing, however, must have been erroneous, as it unfortunately didn't fix the issue! Our MUSL nightly builders are failing from the same assertion reported in the issue, so we at least know the test case is a reproduction! I believe the failure is only happening on the MUSL nightly builders because none of the auto builders have LLVM assertions enabled, and the Linux nightly builder *does* have assertions enabled for the binaries we generate but the distcheck run doesn't test a compiler with LLVM assertions enabled.
Alas it looks like I was a little too eager to close this issue, sorry about that! Looks like the LLVM update didn't actually fix anything. |
…rson In #31717 we rebased our LLVM fork over the 3.8 release branch, and it was thought that this fixed #31702. The testing, however, must have been erroneous, as it unfortunately didn't fix the issue! Our MUSL nightly builders are failing from the same assertion reported in the issue, so we at least know the test case is a reproduction! I believe the failure is only happening on the MUSL nightly builders because none of the auto builders have LLVM assertions enabled, and the Linux nightly builder *does* have assertions enabled for the binaries we generate but the distcheck run doesn't test a compiler with LLVM assertions enabled.
If you unignore |
@alexcrichton Do you think that @sanxiyn's comment above correctly diagnoses this? If so, we should close this (and maybe removed the test?). |
Sure! |
rustc fails to build my crate in release mode with debugging symbols.
The crate is located here: https://github.com/ethcore/parity/tree/master/ethcore
It is hard to pinpoint the exact piece of code responsible since the error message gives no such indication.
Running
cargo rustc --release -- -g
fails with the following message:Stack trace:
The text was updated successfully, but these errors were encountered: