[fpc-devel] Extracting debug-information from fpc-executables

Joost van der Sluis joost at cnoc.nl
Thu Oct 18 12:37:02 CEST 2007


Op donderdag 18-10-2007 om 12:02 uur [tijdzone +0200], schreef Marc
Weustink:
> Joost van der Sluis wrote:
> > Op woensdag 17-10-2007 om 13:22 uur [tijdzone +0200], schreef Joost van
> > der Sluis:
> >> On recent (development) Fedora-systems the debug-information is
> >> extracted form executables in a different manner.
> >>
> >> That could be a problem when building RPM's on a Fedora system.
> >>
> >> I got this output, does it ring a bell to anyone?
> >>
> >> + /usr/lib/rpm/find-debuginfo.sh /builddir/build/BUILD/fpcbuild-2.2.0
> >> extracting debug info from /var/tmp/fpc-2.2.0-7.fc8-root-kojibuilder/usr/lib64/fpc/2.2.0/ppcx64
> >> /usr/lib/rpm/debugedit: /var/tmp/fpc-2.2.0-7.fc8-root-kojibuilder/usr/lib64/fpc/2.2.0/ppcx64: Could not find DWARF-2 abbreviation -1
> >> extracting debug info from /var/tmp/fpc-2.2.0-7.fc8-root-kojibuilder/usr/bin/plex
> >> /usr/lib/rpm/debugedit: /var/tmp/fpc-2.2.0-7.fc8-root-kojibuilder/usr/bin/plex: Could not find DWARF-2 abbreviation 255
> >> extracting debug info from /var/tmp/fpc-2.2.0-7.fc8-root-kojibuilder/usr/bin/fpcmake
> >> /usr/lib/rpm/debugedit: /var/tmp/fpc-2.2.0-7.fc8-root-kojibuilder/usr/bin/fpcmake: Could not find DWARF-2 abbreviation -1
> >> extracting debug info from /var/tmp/fpc-2.2.0-7.fc8-root-kojibuilder/usr/bin/fp
> >> /usr/lib/rpm/debugedit: /var/tmp/fpc-2.2.0-7.fc8-root-kojibuilder/usr/bin/fp: Could not find DWARF-2 abbreviation -1
> >> extracting debug info from /var/tmp/fpc-2.2.0-7.fc8-root-kojibuilder/usr/bin/rmcvsdir
> >> /usr/lib/rpm/debugedit: /var/tmp/fpc-2.2.0-7.fc8-root-kojibuilder/usr/bin/rmcvsdir: Could not find DWARF-2 abbreviation -1
> >> extracting debug info from /var/tmp/fpc-2.2.0-7.fc8-root-kojibuilder/usr/bin/h2pas
> >> error: Bad exit status from /var/tmp/rpm-tmp.22914 (%install)
> > 
> > Someone from Redhat helped investigate and solve the problem. There was
> > one problem with rpm
> > (https://bugzilla.redhat.com/show_bug.cgi?id=336951) which is fixed.
> > 
> > But there is also a fpc-bug
> > (https://bugzilla.redhat.com/show_bug.cgi?id=337051)
> 
> Can you create a Mantis issue for this.

Done: http://www.freepascal.org/mantis/view.php?id=9965

> > They updated the rpm-package, so that it doesn't crach on it anymore
> > (https://bugzilla.redhat.com/show_bug.cgi?id=337011) but I like to have
> > this fixed in fpc.
> > 
> > But I think I've heard some fpc-developers talking about this issue
> > before, are the problems with file-names in the dwarf-debuginfo fixed?
> > And do fpc follow the guidelines as in the bug-report?
> 
> I need to reread the specs. IIRC I added the lineinfo according to my 
> interpretation of the specs

If you need help, the person who submitted this bug-report has a lot of
experience with the Dwarf-format.

He send me a mail in which he said that he likes it that he now has a
second compiler which produces Dwarf-info. It's usefull for testing, and
he found a few shortcomings in the elfutils library with it already.

Joost.





More information about the fpc-devel mailing list