[Pkg-rust-maintainers] Bug#1034632: rust-zram-generator: FTBFS - Couldn't find DIE at [59fe9]
Lukas Märdian
slyon at ubuntu.com
Thu Apr 20 10:21:34 BST 2023
Package: rust-zram-generator
Version: 1.1.2-2
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch
X-Debbugs-Cc: slyon at ubuntu.com
Dear Maintainer,
rust-zram-generator FTBFS on LLVM-15 when LTO is enabled in Cargo.toml due to
https://github.com/rust-lang/rust/issues/66118
This does not currently affect Debian, but can be reproduced on Ubuntu, where
llvm-15 is already the default. It will affect Debian in the future.
dh_fixperms -a -O--buildsystem=cargo
dh_missing -a -O--buildsystem=cargo
dh_dwz -a -O--buildsystem=cargo
dwz: debian/systemd-zram-generator/lib/systemd/system-generators/zram-generator: Couldn't find DIE at [55d39] referenced by DW_AT_abstract_origin from DIE at [25457]
dh_dwz: error: dwz -- debian/systemd-zram-generator/lib/systemd/system-generators/zram-generator returned exit code 1
In Ubuntu, the attached patch was applied to achieve the following:
* d/rules: Disable dwz to fix FTBFS with LTO
Thanks for considering the patch.
-- Lukas
-- System Information:
Debian Release: bookworm/sid
APT prefers jammy-updates
APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy'), (100, 'jammy-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.19.0-38-generic (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
diff -Nru rust-zram-generator-1.1.2/debian/rules rust-zram-generator-1.1.2/debian/rules
--- rust-zram-generator-1.1.2/debian/rules 2022-12-28 18:03:27.000000000 +0100
+++ rust-zram-generator-1.1.2/debian/rules 2023-04-20 10:58:07.000000000 +0200
@@ -14,3 +14,7 @@
mv debian/systemd-zram-generator/usr/bin/zram-generator \
debian/systemd-zram-generator/lib/systemd/system-generators
rm -rf debian/systemd-zram-generator/usr/bin
+
+override_dh_dwz:
+ # Don't do anything. Fails because of LTO:
+ # https://github.com/rust-lang/rust/issues/66118
More information about the Pkg-rust-maintainers
mailing list