Commit 8ec6557
rust: kbuild: skip gendwarfksyms in
Starting with Rust 1.91.0 (released 2025-10-30), in upstream commit
ab91a63d403b ("Ignore intrinsic calls in cross-crate-inlining cost model")
[1][2], `bindings.o` stops containing DWARF debug information because the
`Default` implementations contained `write_bytes()` calls which are now
ignored in that cost model (note that `CLIPPY=1` does not reproduce it).
This means `gendwarfksyms` complains:
RUSTC L rust/bindings.o
error: gendwarfksyms: process_module: dwarf_get_units failed: no debugging information?
For the moment, conditionally skip `gendwarfksyms` for Rust >= 1.91.0.
Cc: [email protected] # Needed in 6.12.y and later (Rust is pinned in older LTSs).
Reported-by: Haiyue Wang <[email protected]>
Closes: https://lore.kernel.org/rust-for-linux/[email protected]/
Link: rust-lang/rust@ab91a63 [1]
Link: rust-lang/rust#145910 [2]
Signed-off-by: Miguel Ojeda <[email protected]>bindings.o for Rust >= 1.91.01 parent dc77806 commit 8ec6557
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
| 546 | + | |
546 | 547 | | |
547 | 548 | | |
548 | 549 | | |
| |||
0 commit comments