Bug 28985

Summary: dwz: Unknown debugging section .debug_addr [DWARF-5 not recognized]
Product: dwz Reporter: Gianfranco <costamagnagianfranco>
Component: defaultAssignee: Nobody <nobody>
Status: RESOLVED DUPLICATE    
Severity: normal CC: dwz
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Attachments: bin armhf tarball
obj armhf tarball

Description Gianfranco 2022-03-21 08:08:38 UTC
Hello, as said, building hedgewars on ppc64el and armhf rerurns this error:

dh_dwz: error: dwz -mdebian/hedgewars/usr/lib/debug/.dwz/powerpc64le-linux-gnu/hedgewars.debug -M/usr/lib/debug/.dwz/powerpc64le-linux-gnu/hedgewars.debug -- debian/hedgewars/usr/lib/hedgewars/bin/hedgewars debian/hedgewars/usr/lib/hedgewars/bin/hedgewars-server debian/hedgewars/usr/lib/hedgewars/bin/hwengine debian/hedgewars/usr/lib/hedgewars/lib/libavwrapper.so.1.0 debian/hedgewars/usr/lib/hedgewars/lib/libphyslayer.so.1.0 returned exit code 1
dh_dwz: error: Aborting due to earlier error
make[1]: Leaving directory '/<<PKGBUILDDIR>>'

/usr/bin/dwz: ./obj-arm-linux-gnueabihf/bin/hedgewars-server: .debug_info section not present
/usr/bin/dwz: ./bin/hwengine: .debug_info section not present
/usr/bin/dwz: ./bin/libavwrapper.so.1.0: .debug_info section not present
/usr/bin/dwz: ./bin/libphyslayer.so.1.0: .debug_info section not present


armhf tarball attached
Comment 1 Gianfranco 2022-03-21 08:17:24 UTC
Created attachment 14026 [details]
bin armhf tarball
Comment 2 Gianfranco 2022-03-21 08:20:26 UTC
Created attachment 14027 [details]
obj armhf tarball
Comment 3 Gianfranco 2022-03-21 08:37:53 UTC
btw the return value is 1
Comment 4 Gianfranco 2022-03-21 09:03:13 UTC
and dwz version is: 0.14
Comment 5 Gianfranco 2022-03-21 13:35:55 UTC
dwz: debian/hedgewars/usr/lib/hedgewars/bin/hedgewars: Unknown debugging section .debug_addr is probably the culprit
Comment 6 Gianfranco 2022-09-22 06:37:34 UTC
Hello, the culprit is that we are emitting dwarf-5 clang binaries, and dwz is not compatible with it.
appending the -gdwarf-4 C*FLAG to the build works.

But ideally upstream dwz should support dwarf-5, considering a patch is already available.
https://sourceware.org/pipermail/dwz/2021q1/000930.html
Comment 7 Gianfranco 2022-09-22 14:47:34 UTC
Duplicate

*** This bug has been marked as a duplicate of bug 27375 ***