[Bug 1929120] Re: dh_strip behaviour in Ubuntu Hirsute

Gianfranco Costamagna 1929120 at bugs.launchpad.net
Sun Mar 20 07:40:40 UTC 2022


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.

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

Title:
  dh_strip behaviour in Ubuntu Hirsute

Status in debhelper package in Ubuntu:
  Confirmed
Status in debugedit package in Ubuntu:
  New

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

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




More information about the foundations-bugs mailing list