-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
$ rustc --version
rustc 1.52.1
$ rm -f hello hello.dwp; RUSTC_BOOTSTRAP=1 rustc hello.rs -Z unstable-options -C split-debuginfo=packed -C debuginfo=2
$ ls -gG hello hello.dwp
-rwxr-xr-x 1 10792848 May 19 15:31 hello*
-rw-r--r-- 1 33864 May 19 15:31 hello.dwp
Ok, that worked. But adding --out-dir $PWD
makes it fail:
$ rust-llvm-dwp --version
LLVM (http://llvm.org/):
LLVM version 11.0.1
Optimized build.
Default target: x86_64-pc-linux-gnu
Host CPU: skylake
$ rm -f hello hello.dwp; RUSTC_BOOTSTRAP=1 rustc hello.rs -Z unstable-options -C split-debuginfo=packed -C debuginfo=2 --out-dir $PWD
error: linking dwarf objects with `rust-llvm-dwp` failed: exit code: 1
|
= note: "rust-llvm-dwp" "-e" "/home/infinity0/var/lib/rust/hello" "-o" "/home/infinity0/var/lib/rust/hello.dwp"
= note:
= note: error: No such file or directory
error: aborting due to previous error
$ echo $?
0
# furthermore, the exit code from rustc is 0
$ ls -gG hello hello.dwp
ls: cannot access 'hello.dwp': No such file or directory
-rwxr-xr-x 1 10793312 May 19 15:31 hello*
exit code 2
Metadata
Metadata
Assignees
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.