Public bug reported:

Commit e66125ce24f6 ("UBUNTU: [Packaging] Add llvm-21-dev to build-depends
for perf", LP: #2138328) added llvm-21-dev as an unqualified Build-Depends
entry to enable LLVM-accelerated addr2line() in perf.

Because llvm-21-dev is not annotated with :native or an architecture
restriction, dpkg attempts to satisfy it for the target (cross)
architecture during cross-compilation (e.g. arm64 from amd64).  Since
the llvm-21-dev package is not available for all cross targets or cannot
co-install alongside the native toolchain, cross-builds fail to resolve
build dependencies.

The fix (already applied in stonking as commit 2aebbf625fd4) makes three
changes to debian.master/control.stub.in:

 - Replaces "llvm-21-dev" with "llvm-21-tools:native <!stage1>" so the
   LLVM dependency is satisfied from the build host architecture.
 - Adds "libllvm21 <!stage1>" as a separate library dependency.
 - Adds "libstd-rust-dev" with an explicit architecture list.

This needs to be cherry-picked to resolute.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: packaging resolute

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2165407

Title:
  resolute: llvm-21-dev build-depends breaks cross-builds

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2165407/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to