Skip to content

-C split-debuginfo=packed generates duplicate .dwp files for shared objects #109309

Open
@jyn514

Description

@jyn514

I tried this code:

./configure --set rust.split-debuginfo=packed
x build --stage 0 compiler

I expected to see this happen: rustc/cargo generate a large .dwp file for rustc_driver.so and a small .dwp file for rustc-main.

Instead, this happened: Both crates have duplicate .dwp files:

; ls -lh build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/*rustc*
-rwxrwxr-x 4 jyn jyn 310M Mar 18 09:47 build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/librustc_driver.so
-rw-rw-r-- 2 jyn jyn 254M Mar 18 09:47 build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/librustc_driver.so.dwp
-rwxrwxr-x 3 jyn jyn  20K Mar 18 09:47 build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/rustc-main
-rw-rw-r-- 2 jyn jyn 254M Mar 18 09:47 build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/rustc-main.dwp

Meta

beta is

rust/src/stage0.json

Lines 19 to 22 in bb8a0ff

"compiler": {
"date": "2023-03-07",
"version": "beta"
},

Metadata

Metadata

Assignees

Labels

A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions