Skip to content
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

rust-gdbgui script is not installed #61282

Closed
jonblack opened this issue May 28, 2019 · 5 comments
Closed

rust-gdbgui script is not installed #61282

jonblack opened this issue May 28, 2019 · 5 comments
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Comments

@jonblack
Copy link

According to merge request #53774, and the line builder.install(&builder.src.join("src/etc/rust-gdbgui"), &sysroot.join("bin"), 0o755); in src/bootstrap/dist.rs, the script rust-gdbgui should be installed in ~/.cargo/bin/rust-gdbgui.

With rust 1.35.0 I don't see this script installed. I'm running linux, so the installer should be going into that branch. I can see rust-gdb and rust-lldb.

When I copy the file manually, it works.

@Mark-Simulacrum Mark-Simulacrum added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Jun 4, 2019
@JeanMertz
Copy link

I was looking into gdbgui as well, and can confirm that this is still the case.

@Ryan1729
Copy link
Contributor

I can also confirm that I needed to copy the script to ~/.cargo/bin/rust-gdbgui with rust 1.44.0

@iacchus
Copy link

iacchus commented Jul 4, 2020

I opened it with rustup run nightly rust-gdbgui or rustup run stable rust-gdbgui after installing it: pip install gdbgui

@awoimbee
Copy link
Contributor

rust-gdbgui is in fact installed with the rust toolchain, it sits in ~/.rustup/toolchains/{TOOLCHAIN}/bin/rust-gdbgui
The only issue is that rust-gdbgui isn't in /usr/bin/:

~$ ls -l /usr/bin/rust*
lrwxrwxrwx 1 root root   15  9 juil. 00:43 /usr/bin/rustc -> /usr/bin/rustup
lrwxrwxrwx 1 root root   15  9 juil. 00:43 /usr/bin/rustdoc -> /usr/bin/rustup
lrwxrwxrwx 1 root root   15  9 juil. 00:43 /usr/bin/rustfmt -> /usr/bin/rustup
lrwxrwxrwx 1 root root   15  9 juil. 00:43 /usr/bin/rust-gdb -> /usr/bin/rustup
lrwxrwxrwx 1 root root   15  9 juil. 00:43 /usr/bin/rust-lldb -> /usr/bin/rustup
-rwxr-xr-x 1 root root 6,6M  9 juil. 00:43 /usr/bin/rustup

rustup run stable rust-gdbgui works

@jyn514
Copy link
Member

jyn514 commented Feb 3, 2023

I'm not sure what the original problem was here, but rust-gdbgui is installed locally for me with rustup, and packaged with the Ubuntu rust-gdb package; and the code for it is exactly the same as the code for rust-gdb:

rust/src/bootstrap/dist.rs

Lines 545 to 546 in 7f5ce94

builder.install(&builder.src.join("src/etc/rust-gdb"), &sysroot.join("bin"), 0o755);
builder.install(&builder.src.join("src/etc/rust-gdbgui"), &sysroot.join("bin"), 0o755);

So I think this has been fixed.

@jyn514 jyn514 closed this as completed Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

7 participants