Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1602096
Summary: | debuginfo package creation fails due to compressed DWARF information on rawhide (f29) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Lokesh Mandvekar <lsm5> |
Component: | rpm | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | amurdaca, carl, dwalsh, fkluknav, fweimer, igor.raits, jcajka, kshlmster, lemenkov, lsm5, mjw, nalin, packaging-team-maint, pmatilai, pmoravco, quantum.analyst, renich, vbatts, vmukhame, zebob.m |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-11-16 01:11:04 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1602938, 1604024, 1604112, 1604134, 1604195, 1604526 |
Description
Lokesh Mandvekar
2018-07-17 19:44:09 UTC
This happens with cri-o as well, so quite likely a golang issue. Moving to golang.. Yes, this started with Go1.11 as it is now compressing DWARF debug information by default. Unfortunately the breakage lies in the rpm/debuginfo as it seems to not be able to parse the compressed sections. I have turned off the default DWARF compression for time being in Golang(golang-1.11-0.beta1.2 is building right now), until the rpm/debuginfo can be fixed. This should unblock any package that fails in the upmentioned fashion. Reassigning. There are at least two packaging tools, rmp debugedit and dwz, which don't deal with DWARF compressed ELF sections. The easiest workaround for that would be to explicitly decompress any that find-debuginfo.sh encounters. That could be done by doing something (untested) like the following: diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh index 90a4494..7b01bc0 100755 --- a/scripts/find-debuginfo.sh +++ b/scripts/find-debuginfo.sh @@ -357,6 +357,9 @@ do_file() get_debugfn "$f" [ -f "${debugfn}" ] && return + echo "explicitly decompress any DWARF compressed ELF sections in $f" + eu-elfcompress -q -p -t none "$f" + echo "extracting debug info from $f" # See also cpio SOURCEFILE copy. Directories must match up. debug_base_name="$RPM_BUILD_DIR" *** Bug 1601220 has been marked as a duplicate of this bug. *** glusterd2 was hit with the same issue (bz#1604134). I can confirm that the workaround works [1]. [1]: https://koji.fedoraproject.org/koji/taskinfo?taskID=28469808 Should be fixed with latest elfutils + rpm. I'm seeing this same behavior while working on a new package. https://paste.fedoraproject.org/paste/uAHrJcZKzxKanCJ9FCgxlw My mock chroot is seeing these versions: rpm-4.14.2.1-2.fc30.x86_64 elfutils-0.174-5.fc30.x86_64 golang-1.11.2-1.fc30.x86_64 I get the same result on F27, F28, and F29. Here is the spec file and SRPM I'm working with. https://carlwgeorge.fedorapeople.org/golang-github-rainycape-memcache.spec https://carlwgeorge.fedorapeople.org/golang-github-rainycape-memcache-0-0.1.20181114git1031fa0.fc30.src.rpm If you don't build any binary, remove: %build %gobuildroot Otherwise with a %build section, the packaging process tries to find debuginfo data. *facepalm* That fixed it, thanks Robert. Sorry for the noise everyone. No worries. The error message isn't very helpful. Hopefully someone seeing the error message finds this bug report and sees the actual fix. |