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

Re: linux split-dwarf fails with -Clinker-plugin-lto #108696

Closed
cavivie opened this issue Mar 3, 2023 · 4 comments
Closed

Re: linux split-dwarf fails with -Clinker-plugin-lto #108696

cavivie opened this issue Mar 3, 2023 · 4 comments
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) C-bug Category: This is a bug.

Comments

@cavivie
Copy link

cavivie commented Mar 3, 2023

I have reviewed the relevant bugs of rust, and I have a similar problem before that. Although it has been fixed, it still doesn't work for me. I don't know what happened. Only when I comment out split-debuginfo or set lto to false can I compile it successfully.

I tried many configs, there are three samples:

[profile.release]
opt-level = "z"
lto = true
debug = false
split-debuginfo = "unpacked"
[profile.release]
opt-level = "z"
lto = true
debug = true
split-debuginfo = "unpacked"
[profile.release]
opt-level = 2
lto = true
debug = true
split-debuginfo = "unpacked"

Meta

rustc --version --verbose:

rustc 1.66.0 (69f9c33d7 2022-12-12)
binary: rustc
commit-hash: 69f9c33d71c871fc16ac445211281c6e7a340943
commit-date: 2022-12-12
host: x86_64-unknown-linux-gnu
release: 1.66.0
LLVM version: 15.0.2

uname -a:

Linux 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux

cat /etc/os-release:

PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Backtrace

cargo build --release --target x86_64-unknown-linux-gnu

error: failed to build archive: No such file or directory

error: could not compile `cfg-if` due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `pin-utils` due to previous error
error: could not compile `bitflags` due to previous error
error: could not compile `pin-project-lite` due to previous error
...
error: could not compile `libc` due to previous error
error: Recipe `build` failed on line 16 with exit code 101

@cavivie cavivie added the C-bug Category: This is a bug. label Mar 3, 2023
@cavivie
Copy link
Author

cavivie commented Mar 3, 2023

image

@ehuss
Copy link
Contributor

ehuss commented Mar 3, 2023

I believe this has already been fixed in the latest version (1.67), can you try a newer release?

@workingjubilee workingjubilee added the A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) label Mar 4, 2023
@workingjubilee
Copy link
Member

Minimized example has no repro with latest stable. Probably is, in fact, already fixed, unless there's a more complex version that is not.

@workingjubilee workingjubilee closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2023
@cavivie
Copy link
Author

cavivie commented Mar 23, 2023

Thank you all very much! It works for me well now, I just forgot to close this issue🤭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants