#1149822 pdns-recursor: FTBFS: ld.lld: error: rec-rust-lib/rust/librecrust.a(recrust-0f59ee5548415ed8.recrust.d648b3cea954af1-cgu.00.rcgu.o): Invalid record #1149822
- Package:
- src:pdns-recursor
- Source:
- src:pdns-recursor
- Submitter:
- Santiago Vila
- Date:
- 2026-10-12 15:38:38 UTC
- Severity:
- normal
- Tags:
Dear maintainer: During a rebuild of all packages in unstable, this package failed to build. Below you will find the last part of the build log (probably the most relevant part, but not necessarily). If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202610/ About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages. If you cannot reproduce the bug please contact me privately, as I am willing to provide ssh access to a virtual machine where the bug is fully reproducible. If this is really a bug in one of the build-depends, please use reassign and add an affects on src:pdns-recursor, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] 1 warning generated. [180/185] rm -f librec-test.a && llvm-ar-21 csrDT librec-tes [too-long-redacted] ibrec-test.a.p/test-nod_cc.cc.o [181/185] clang++ -o pdns_recursor pdns_recursor.p/meson-ge [too-long-redacted] agent -lnetsnmp -Wl,--end-group FAILED: [code=1] pdns_recursor clang++ -o pdns_recursor pdns_recursor.p/meson-generated_.. [too-long-redacted] agent -lnetsnmp -Wl,--end-group ld.lld: error: rec-rust-lib/rust/librecrust.a(recrust-0f59ee5548415ed8.recrust.d648b3cea954af1-cgu.00.rcgu.o): Invalid record clang++: error: linker command failed with exit code 1 (use -v to see invocation) [182/185] clang++ -Irec_control.p -I. -I.. -Irec-rust-lib -I [too-long-redacted] ntrol.cc.o -c ../rec_control.cc In file included from <built-in>:478: <command line>:9:9: warning: '_FORTIFY_SOURCE' macro redefined [-Wmacro-redefined] 9 | #define _FORTIFY_SOURCE 2 | ^ <command line>:6:9: note: previous definition is here 6 | #define _FORTIFY_SOURCE 3 | ^ 1 warning generated. ninja: build stopped: subcommand failed. dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j2 -v returned exit code 1 make: *** [debian/rules:31: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------
[..] I imagine this is because rustc uses LLVM 22, while lld is still LLVM 21. I assume this will go away once llvm-defaults bumps LLVM. Chris
* Chris Hofstaedtler <zeha@debian.org> [261003 13:51]: bug. Please reassign. From a11884a6679c653601518fe2d2756c9ca7abd254 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler <zeha@debian.org> Date: Sat, 3 Oct 2026 13:50:06 +0200 Subject: [PATCH] Build with lld 22, matching rustc LLVM 22 usage --- debian/control | 2 +- debian/rules | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index 7afeeec..1a097a2 100644 --- a/debian/control +++ b/debian/control @@ -51,7 +51,7 @@ Build-Depends: libsodium-dev, libssl-dev, libsystemd-dev, - lld, + lld-22, meson, pkgconf, protobuf-compiler, diff --git a/debian/rules b/debian/rules index 93d0bb2..5242cdb 100755 --- a/debian/rules +++ b/debian/rules @@ -8,7 +8,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto export CC=clang export CXX=clang++ # lld defaults to xxhash for build-ids, breaks dbgsym lookup -export DEB_LDFLAGS_MAINT_APPEND = -fuse-ld=lld -Wl,--build-id=sha1 +export DEB_LDFLAGS_MAINT_APPEND = -fuse-ld=lld-22 -Wl,--build-id=sha1 export RUSTFLAGS = -Clinker-plugin-lto include /usr/share/dpkg/default.mk -- 2.55.0
We believe that the bug you reported is fixed in the latest version of
pdns-recursor, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1149822@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Chris Hofstaedtler <zeha@debian.org> (supplier of updated pdns-recursor package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 12 Oct 2026 16:19:19 +0200
Source: pdns-recursor
Architecture: source
Version: 5.4.6-2
Distribution: unstable
Urgency: medium
Maintainer: pdns-recursor packagers <pdns-recursor@packages.debian.org>
Changed-By: Chris Hofstaedtler <zeha@debian.org>
Closes: 1149822
Changes:
pdns-recursor (5.4.6-2) unstable; urgency=medium
.
* Build with lld 22, matching rustc LLVM 22 usage
(Closes: #1149822)
Checksums-Sha1:
ca3ee782b0b12d2eae849c1bba6beebb4bc80a2e 2480 pdns-recursor_5.4.6-2.dsc
e1b718be99f310529a74dc24ec9412fb4336fce0 17740 pdns-recursor_5.4.6-2.debian.tar.xz
565997676375c411dd9bd40810e6e5af30ff60a2 24683 pdns-recursor_5.4.6-2_arm64.buildinfo
Checksums-Sha256:
604d57a0caf2d4d2be3fbd3d0e1132b4e810864ff0756d3e37e1c5bda0e19b57 2480 pdns-recursor_5.4.6-2.dsc
1625d3e778114126bd18a7c05c135433336c17847d807047be61e73dcff891c5 17740 pdns-recursor_5.4.6-2.debian.tar.xz
60efb6aad579a1a842a412de8755fef16832035b9547359ab8ef5f09fb458840 24683 pdns-recursor_5.4.6-2_arm64.buildinfo
Files:
3b1cf6c9a547deb64608403dbeeed0c5 2480 net optional pdns-recursor_5.4.6-2.dsc
ca6443a55e68c9dcee82eb4750d12275 17740 net optional pdns-recursor_5.4.6-2.debian.tar.xz
b3df77cd3ea1aaeaf69b0dd03fa1a495 24683 net optional pdns-recursor_5.4.6-2_arm64.buildinfo
-----BEGIN PGP SIGNATURE-----
iHUEARYKAB0WIQSAaWBt6yRrKLK4+bRHi2NEKKNrcgUCaszyVQAKCRBHi2NEKKNr
csPHAP9krGHMMABpz8sfjcIWW8ExuN+gIgy2rB3iTsMVvWKkHQD/UKx3usbqhiI9
2EnNpClaNgxscdvIOM7UET/QDLRn9Qk=
=+usA
-----END PGP SIGNATURE-----