Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
can't compile libstd with -Z debug-info #9167
libextra and libsyntax seem to build okay with -Z debug-info, but libstd complains:
referenced this issue
Oct 1, 2013
added a commit
Oct 8, 2013
Nonetheless, we still should explicitly track the problems that arise when you have optimizations turned on.
There are two classes of potential problems: Issues where the debug-info does not properly reflect the program state (a common problem in any programming language when mixing optimizations and debug-info), and Issues where the compiler actually fails to compile a program correctly (ignoring the output debug-info). If we are getting LLVM assertion failures, then we are effectively seeing the latter, since the assertion failure will cause a debug-build of LLVM to die.
From some initial experiments, I can confirm that one can bootstrap a non-optimized rustc build with
It would be good for us to address the assertion failures, but I'll probably first take the step I outlined in #9770 of extending the configure script with a flag to turn this stuff on for the libraries built during rustc bootstrapping.
Yes, that's a bit tricky until we have a new snapshot. I always used
Yes, it's definitely the second kind of failure. And as far as I can tell from my (rather preliminary) investigation of the problem, it happens before any optimization passes even run. That is, if my mental model of
If it really works that way then we are just using LLVM's
Adding debug info options to the configure script can't hurt, I guess. I'd definitely use them