Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd gdb to the build #56990
Conversation
rust-highfive
assigned
alexcrichton
Dec 19, 2018
This comment has been minimized.
This comment has been minimized.
|
(rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
rust-highfive
added
the
S-waiting-on-review
label
Dec 19, 2018
This comment has been minimized.
This comment has been minimized.
|
Thanks for this! On the technical side this looks pretty reasonable to me. I'm somewhat hesitant to merge this though because I don't feel like it's tenable to keep adding large tools like this to our distribution. In the limit I don't think we are currently equipped via our current infrastructure to ship what's amounting to an entire toolchain distribution strategy (linker, debugger, compiler, libraries, tooling, etc). We're already feeling lots of pain on CI with timings, and although sccache can accelerate the build here it'll inevitably be yet more to build on builders already bleeding for time. I think the end goal here is great and we should move towards it, but I'm just not sure that we're ready for this just yet. I think we need to figure out a strategy that doesn't bottleneck absolutely everything on this one repository for distributing releases. Would you be up for postponing this until there's been a chance to chat more with the dev tools team as well as the infrastructure team? |
This comment has been minimized.
This comment has been minimized.
Sure. |
tromey
closed this
Dec 21, 2018
This comment has been minimized.
This comment has been minimized.
|
Ok! I'll put this on the infra team agenda to talk about, and @nrc you might be interested in this for the dev-tools agenda too! I'm gonna reopen this temporarily at least because I'd also like to use our try builds to analyze how long it takes to build gdb |
alexcrichton
reopened this
Dec 21, 2018
This comment has been minimized.
This comment has been minimized.
|
@bors: try |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Dec 21, 2018
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
bors
added
S-waiting-on-author
and removed
S-waiting-on-review
labels
Dec 21, 2018
This comment has been minimized.
This comment has been minimized.
|
@bors: retry |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Dec 21, 2018
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Triage; @tromey Hello, have you been able to get back to this PR? |
This comment has been minimized.
This comment has been minimized.
@alexcrichton knows the state now, see #56990 (comment) |
This comment has been minimized.
This comment has been minimized.
|
er sorry I forgot to come back to this, but @tromey looking at the logs of the try build I'm not sure I even saw GDB get built? |
This comment has been minimized.
This comment has been minimized.
Yeah, me neither :(. I will look into it. |
This comment has been minimized.
This comment has been minimized.
|
Ping from triage @tromey: What is the status of this PR? |
This comment has been minimized.
This comment has been minimized.
I haven't looked at it yet. Maybe will not have time to, I suppose #56990 (comment) makes it seem not super worthwhile. |
TimNN
added
A-allocators
and removed
A-allocators
labels
Jan 29, 2019
This comment has been minimized.
This comment has been minimized.
|
ping from triage. @tromey closing this based on your comment above and inactiveness. If you want to pursue this in the future you can reopen it and will get it reviewed. Thanks for contributing! |
tromey commentedDec 19, 2018
This optionally adds gdb to the Rust build, allowing gdb to be
installed via rustup. This makes it simpler to make debuginfo
changes, as gdb updates can now be shipped immediately.
If gdb is not checked out, nothing changes.
The build is perhaps a bit chatty, as gdb's "make" and "make install"
are run each time, even if they do nothing.
rust-gdb is modified to prefer the gdb installed by rustup. This is
analogous to what was done for rust-lldb.
The built gdb requires Python 2.7 as a shared library (other
dependencies are statically linked). This is a
least-common-denominator Python that is widely available and stable;
dynamic linking is used to avoid breaking existing gdb Python code
that might load shared libraries that themselves require a dynamic
libpython. To avoid problems here, a small wrapper program is used
that attemps to dlopen libpython; with failures being reported to the
user in an intelligible way.
Two of the Linux dist builds are updated to build gdb. More could be
added if need be.
If gdb is built as part of the build, and if no other gdb was
specified in config.toml, then the just-built gdb will be used for
debuginfo testing.
Closes #34457