]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
debian/rules: exclude ceph-osd-crimson from dwz compression 67057/head
authorKefu Chai <k.chai@proxmox.com>
Fri, 23 Jan 2026 07:04:47 +0000 (15:04 +0800)
committerKefu Chai <k.chai@proxmox.com>
Thu, 16 Jul 2026 14:13:55 +0000 (22:13 +0800)
When building with DWZ enabled, the debian packaging fails with:
```
  dh_dwz: error: Aborting due to earlier error
```
Running the dwz command manually reveals the root cause:
```
  $ dwz -mdebian/ceph-osd-crimson/usr/lib/debug/.dwz/x86_64-linux-gnu/ceph-osd-crimson.debug \
    -M/usr/lib/debug/.dwz/x86_64-linux-gnu/ceph-osd-crimson.debug -- \
    debian/ceph-osd-crimson/usr/bin/ceph-osd-crimson \
    debian/ceph-osd-crimson/usr/bin/crimson-store-nbd
  dwz: debian/ceph-osd-crimson/usr/bin/ceph-osd-crimson: Too many DIEs, not optimizing
  dwz: Too few files for multifile optimization
```
The dwz tool has a limit on the number of DWARF DIEs (Debug Information
Entries) it can process. The ceph-osd-crimson binary, being a large C++
executable with extensive template usage, exceeds this limit, causing
dwz to exit with status 1 and fail the build.

This change excludes only ceph-osd-crimson from dwz processing using
the -X flag, allowing other binaries in the package to still benefit
from DWARF compression while avoiding the build failure.

Please note, we always disable DWZ in ceph-build's ceph-dev-pipeline.

Fixes: https://tracker.ceph.com/issues/78303
Signed-off-by: Kefu Chai <k.chai@proxmox.com>
debian/rules

index 48b8634a1c46ae51d7485485b03e424d482135e4..393572ada38264bca051964908a619c40c76e136 100755 (executable)
@@ -54,6 +54,10 @@ endif
 
 ifeq ($(DWZ), false)
 override_dh_dwz:
+else
+override_dh_dwz:
+       # Exclude ceph-osd-crimson due to excessive debug info (too many DIEs)
+       dh_dwz -Xceph-osd-crimson
 endif
 
 # for python3-${pkg} packages