#978436 rustc: generates invalid DWARF with LTO enabled (dwz: Couldn't find DIE referenced by DW_AT_abstract_origin)

Package:
rustc
Source:
rustc
Description:
Rust systems programming language
Submitter:
Lucas Nussbaum
Date:
2025-02-27 17:36:05 UTC
Severity:
important
Tags:
#978436#5
Date:
2020-12-26 22:04:06 UTC
From:
To:
Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
http://qa-logs.debian.net/2020/12/26/mozjs78_78.4.0-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with me
so that we can identify if something relevant changed in the meantime.

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.

#978436#10
Date:
2020-12-27 13:00:14 UTC
From:
To:
Control: forwarded -1 https://github.com/rust-lang/rust/issues/66118
Control: clone -1 -2
Control: retitle -2 rustc: generates invalid DWARF with LTO enabled (dwz: Couldn't find DIE referenced by DW_AT_abstract_origin)
Control: severity -2 important
Control: reassign -2 rustc 1.48.0+dfsg1-2

I can reproduce this. It looks like the same issue that is already worked
around on riscv64 by using -Clto=thin, but now it's on amd64 too.

I'll try to work around it by using -Clto=thin on all architectures. If
that doesn't work, we can try disabling dwz entirely.

    smcv