Bug 28985 - dwz: Unknown debugging section .debug_addr [DWARF-5 not recognized]
Summary: dwz: Unknown debugging section .debug_addr [DWARF-5 not recognized]
Status: RESOLVED DUPLICATE of bug 27375
Alias: None
Product: dwz
Classification: Unclassified
Component: default (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-21 08:08 UTC by Gianfranco
Modified: 2022-09-22 14:47 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
bin armhf tarball (515.90 KB, application/x-xz)
2022-03-21 08:17 UTC, Gianfranco
Details
obj armhf tarball (7.04 MB, application/x-xz)
2022-03-21 08:20 UTC, Gianfranco
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***