* Chris Hofstaedtler <[email protected]> [261003 13:51]:
On Sat, Oct 03, 2026 at 11:17:18AM +0000, Santiago Vila wrote:
Package: src:pdns-recursor
Version: 5.4.6-1
[..]
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)

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.

The following patch makes it build, so I assume this is a tooling bug. Please reassign.


From a11884a6679c653601518fe2d2756c9ca7abd254 Mon Sep 17 00:00:00 2001
From: Chris Hofstaedtler <[email protected]>
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

Reply via email to