Skip to content

Conversation

@Urgau
Copy link
Member

@Urgau Urgau commented Dec 22, 2025

Turns out #150110 didn't work as expected, because when the standard library sources are present, we helpfully un-remap the paths to the local directory of the user, including when we are building the compiler and standard library it-self (duh!), and since those paths are absolute (not relative), our purely relative remapping didn't pick them up.

This behavior wasn't a issue before because the un-remap logic immediately tries to remap them again, and since we had the absolute remapping we would just remap them to the the same thing.

To fix that issue I've adjusted our remapping to remap both the absolute and relative paths when building rustc and std, as well as added a run-make to make sure we don't regress it again (with a new needs-std-remap-debuginfo directive).

r? @jieyouxu

@rustbot
Copy link
Collaborator

rustbot commented Dec 22, 2025

compiletest directives have been modified. Please add or update docs for the
new or modified directive in src/doc/rustc-dev-guide/.

Some changes occurred in src/tools/compiletest

cc @jieyouxu

The rustc-dev-guide subtree was changed. If this PR only touches the dev guide consider submitting a PR directly to rust-lang/rustc-dev-guide otherwise thank you for updating the dev guide with your changes.

cc @BoxyUwU, @jieyouxu, @Kobzol, @tshepang

The run-make-support library was changed

cc @jieyouxu

@rustbot rustbot added A-compiletest Area: The compiletest test runner A-run-make Area: port run-make Makefiles to rmake.rs A-rustc-dev-guide Area: rustc-dev-guide A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 22, 2025
@rust-log-analyzer

This comment has been minimized.

@Urgau Urgau force-pushed the remap-debuginfo-absolute branch from bd16ded to 4d839da Compare December 22, 2025 18:44
@Urgau
Copy link
Member Author

Urgau commented Dec 22, 2025

@bors try jobs=dist-x86_64-linux

rust-bors bot added a commit that referenced this pull request Dec 22, 2025
Remap both absolute and relative paths when building `rustc` and `std`

try-job: dist-x86_64-linux
@rust-bors
Copy link

rust-bors bot commented Dec 22, 2025

⌛ Trying commit 4d839da with merge 859f7f2

To cancel the try build, run the command @bors try cancel.

Workflow: https://github.com/rust-lang/rust/actions/runs/20442752661

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletest Area: The compiletest test runner A-run-make Area: port run-make Makefiles to rmake.rs A-rustc-dev-guide Area: rustc-dev-guide A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants