dh_strip behaviour in Ubuntu Hirsute

Bug #1929120 reported by Jhonny Oliveira
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
debhelper (Ubuntu)
Confirmed
Undecided
Unassigned
debugedit (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi!

Not sure if this is the right place to post this issue, hopefully you can point me in the right direction.

I'm able to successfully build Chromium in Ubuntu focal and groovy with debhelper, however, it seems something changed in hirsute, dh_strip (debhelper default) behaves differently and the build fails.

(hirsute-amd64)$ uname -a
Linux dev2104 5.11.0-17-generic #18-Ubuntu SMP Thu May 6 20:10:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Sample log lines:

- in focal (the log goes on without errors)

   dh_strip
        install -d debian/.debhelper/chromium-common/dbgsym-root/usr/lib/debug/.build-id/73
        objcopy --only-keep-debug --compress-debug-sections debian/chromium-common/usr/lib/chromium/libEGL.so debian/.debhelper/chromium-common/dbgsym-root/usr/lib/debug/.build-id/73/ac2a9ead6dff6e.debug
        install -d debian/.debhelper/chromium/dbgsym-root/usr/lib/debug/.build-id/bf
        objcopy --only-keep-debug --compress-debug-sections debian/chromium/usr/lib/chromium/chromium debian/.debhelper/chromium/dbgsym-root/usr/lib/debug/.build-id/bf/61ac39c295c7e5.debug
        install -d debian/.debhelper/chromium-sandbox/dbgsym-root/usr/lib/debug/.build-id/40
        objcopy --only-keep-debug --compress-debug-sections debian/chromium-sandbox/usr/lib/chromium/chrome-sandbox debian/.debhelper/chromium-sandbox/dbgsym-root/usr/lib/debug/.build-id/40/d98a95fa7a0436.debug
        install -d debian/.debhelper/chromium-driver/dbgsym-root/usr/lib/debug/.build-id/47
        objcopy --only-keep-debug --compress-debug-sections debian/chromium-driver/usr/bin/chromedriver debian/.debhelper/chromium-driver/dbgsym-root/usr/lib/debug/.build-id/47/a97a9a77eb5ac1.debug
        install -d debian/.debhelper/chromium-shell/dbgsym-root/usr/lib/debug/.build-id/a7
...

- in hirsute (dh_strip apparently runs different commands and fails. Remaining log lines in attachment.)

   dh_strip
 debugedit --build-id --build-id-seed=chromium-driver/90.0.4430.212-1\~xtradeb1hirsute1 debian/chromium-driver/usr/bin/chromedriver
 debugedit --build-id --build-id-seed=chromium-shell/90.0.4430.212-1\~xtradeb1hirsute1 debian/chromium-shell/usr/lib/chromium/chromium-shell
 debugedit --build-id --build-id-seed=chromium-sandbox/90.0.4430.212-1\~xtradeb1hirsute1 debian/chromium-sandbox/usr/lib/chromium/chrome-sandbox
 debugedit --build-id --build-id-seed=chromium-common/90.0.4430.212-1\~xtradeb1hirsute1 debian/chromium-common/usr/lib/chromium/libEGL.so
 debugedit --build-id --build-id-seed=chromium/90.0.4430.212-1\~xtradeb1hirsute1 debian/chromium/usr/lib/chromium/chromium
debugedit: debian/chromium-common/usr/lib/chromium/libEGL.so: Unknown DWARF DW_FORM_0x1f20
Cannot handle 8-byte build ID
Cannot handle 8-byte build ID
dh_strip: error: debugedit --build-id --build-id-seed=chromium-common/90.0.4430.212-1\~xtradeb1hirsute1 debian/chromium-common/usr/lib/chromium/libEGL.so returned exit code 1
dh_strip: error: debugedit --build-id --build-id-seed=chromium-sandbox/90.0.4430.212-1\~xtradeb1hirsute1 debian/chromium-sandbox/usr/lib/chromium/chrome-sandbox returned exit code 1

You can find the debian package here: https://launchpad.net/~xtradeb/+archive/ubuntu/apps/+sourcefiles/chromium/90.0.4430.212-1~xtradeb1/chromium_90.0.4430.212-1~xtradeb1.debian.tar.xz

Please let me know if you need further information.

Thank you!
Jhonny

Revision history for this message
Jhonny Oliveira (jhonny-oliveira) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in debhelper (Ubuntu):
status: New → Confirmed
Revision history for this message
banco (ban-co) wrote :

I've fixed it like in this patch:
https://git.pld-linux.org/?p=packages/ccache.git;a=commitdiff;h=0435ed4f5c3b8687b660073e157e82d474fc4eda;hp=a25c6b7178190592c717e54c81549e375b6c1932
By disabling faster linker in ./debian/rules from use_lld=true to use_lld=false.
After this everything compiled successfully.

Revision history for this message
Jhonny Oliveira (jhonny-oliveira) wrote :

I will give it a try.
Thank you!

Revision history for this message
StoatWblr (stoatwblr) wrote :

will this be rolled into Impish too (affects systems there too)

The issue itself is the debugedit package - this is called by dh_strip

It's breaking on 8 byte build IDs of clang/llvm built packages

Revision history for this message
Michał Sawicz (saviq) wrote :

Confirmed this is still the case for Jammy.

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

You can now ask lld to not build 8 byte build ids by passing to lld flags -Wl,--build-id=sha1

ifneq ($(WITH_LLD),OFF)
 CFLAGS += -fuse-ld=lld-$(LLVM_VERSION) -Wl,--build-id=sha1
endif

This is how we fixed halide package.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in debugedit (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.