-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Using both --enable-debug, --enable-optimization causes an assertion failure on build #26484
Comments
Repros for me as well, on:
|
yes I can reproduce this locally as well (thought it was somehow related to my own branch, glad I checked against master as well...) |
backtrace from the assert under lldb on OS X : https://gist.github.com/pnkfelix/13851983520628197add |
|
(reduced test case here: https://gist.github.com/pnkfelix/268609f5a2e88cddac63 ) |
Yuck, these kinds bugs always take days to properly track down |
fix `configure`: allow both `--enable-debug` and `--disable-debuginfo` in one invocation. This is my very local fix to allow one to be able to (1.) build `rustc` and (2.) run `make check` with internal debug-mode *assertions* turned on in the presence of bugs like #26447 and #26484 (both of which are solely caused by debuginfo and thus can be sidestepped via `--disable-debuginfo`). This partially addresses #24416 (namely, it addresses the papercut outlined in the description of that ticket). But there are other issues mentioned in the comment thread that are not addressed here, so they should be separately addressed before closing that ticket, or separate bugs should be opened for them.
If you do
./configure --enable-debug --enable-optimization
,make
will fail with:Fails on both mac, linux on master. This error does not occur if you only use
--enable-debug
or--enable-optimization
exclusively.The text was updated successfully, but these errors were encountered: