-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
On riscv64gc linux, split-debuginfo ="unpacked" caused error: A dwo section may not contain relocations #110224
Comments
Transferred to rust-lang/rust, since this looks to be a compiler issue. |
@ehuss llvm/llvm-project#56642 (comment) says that LLVM doesn't support this combination of flags. It's unclear to me whether it's impossible or just not implemented yet, but in the meantime, cargo should probably stop passing -C split-debuginfo to proc-macros? there's some mention of |
The report above doesn't mention proc-macros. It seems to happen for normal binaries. The following seems to fail for me:
If split-debuginfo isn't supported on this target, then rustc should report that it isn't supported (Cargo already tests for this). I believe that is defined by the |
- Fix broken rust target. - Workaround rustc bug: rust-lang/rust#110224
- Fix broken rust target. - Workaround rustc bug: rust-lang/rust#110224
I'm getting the same issue with |
Disable packed/unpacked options for riscv linux/android. Other riscv targets already only have off option. Fixes: rust-lang#110224
…piler-errors riscv only supports split_debuginfo=off for now Disable packed/unpacked options for riscv linux/android. Other riscv targets already only have the off option. The packed/unpacked options might be supported in the future. See upstream issue for more details: llvm/llvm-project#56642 Fixes rust-lang#110224
…piler-errors riscv only supports split_debuginfo=off for now Disable packed/unpacked options for riscv linux/android. Other riscv targets already only have the off option. The packed/unpacked options might be supported in the future. See upstream issue for more details: llvm/llvm-project#56642 Fixes rust-lang#110224
…piler-errors riscv only supports split_debuginfo=off for now Disable packed/unpacked options for riscv linux/android. Other riscv targets already only have the off option. The packed/unpacked options might be supported in the future. See upstream issue for more details: llvm/llvm-project#56642 Fixes rust-lang#110224
…piler-errors riscv only supports split_debuginfo=off for now Disable packed/unpacked options for riscv linux/android. Other riscv targets already only have the off option. The packed/unpacked options might be supported in the future. See upstream issue for more details: llvm/llvm-project#56642 Fixes rust-lang#110224
Rollup merge of rust-lang#120518 - kxxt:riscv-split-debug-info, r=compiler-errors riscv only supports split_debuginfo=off for now Disable packed/unpacked options for riscv linux/android. Other riscv targets already only have the off option. The packed/unpacked options might be supported in the future. See upstream issue for more details: llvm/llvm-project#56642 Fixes rust-lang#110224
Problem
On riscv64gc linux, split-debuginfo ="unpacked" caused error: A dwo section may not contain relocations.
-C split-debuginfo=unpacked
flag to rustc.I think the behavior of rust < 1.64 is correct.
Steps
The following steps:
caused the following failure:
Compiling failure v0.1.0 (/root/failure) error: A dwo section may not contain relocations error: could not compile `failure` due to previous error
Possible Solution(s)
No response
Notes
Related: llvm/llvm-project#56642
Version
The text was updated successfully, but these errors were encountered: