From: Kefu Chai Date: Fri, 23 Jan 2026 07:04:47 +0000 (+0800) Subject: debian/rules: exclude ceph-osd-crimson from dwz compression X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0b50da6588a464cb9d3758f93485055468f61549;p=ceph.git debian/rules: exclude ceph-osd-crimson from dwz compression 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 --- diff --git a/debian/rules b/debian/rules index 48b8634a1c4..393572ada38 100755 --- a/debian/rules +++ b/debian/rules @@ -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