Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2007-10

Extracting debug-information from fpc-executables

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Joost van der Sluis

Hi all.

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)

Joost

Reply by email

Joost van der Sluis
to Joost van der Sluis

Op woensdag 17-10-2007 om 13:22 uur [tijdzone +0200], schreef Joost van der Sluis:

Show quoted text 20 lines
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)

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?

Joost

Reply by email

Marc Weustink
to Joost van der Sluis
Joost van der Sluis wrote 29 lines
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.

Show quoted text 7 lines
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

Marc

Reply by email

Joost van der Sluis
to Marc Weustink

Op donderdag 18-10-2007 om 12:02 uur [tijdzone +0200], schreef Marc Weustink:

Show quoted text 32 lines
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

Show quoted text 10 lines
> 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.

Reply by email

Jonas Maebe
to Joost van der Sluis: Op woensdag 17-10-2007 om 13:22 uur [tijdzone +0200], schreef Joost van der Sluis:…
Joost van der Sluis wrote 10 lines
But there is also a fpc-bug (https://bugzilla.redhat.com/show_bug.cgi?id=337051) 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?

I think I fixed this in r8417 (r8584 in the fixes branch), apart from possibly the trailing slashes.

Jonas

Reply by email