GNU bug report logs - #44081
qtbase strips debug info from the debug output

Previous Next

Package: guix;

Reported by: Malte Frank Gerdes <malte.f.gerdes <at> gmail.com>

Date: Mon, 19 Oct 2020 19:50:02 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44081 in the body.
You can then email your comments to 44081 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#44081; Package guix. (Mon, 19 Oct 2020 19:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Malte Frank Gerdes <malte.f.gerdes <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 19 Oct 2020 19:50:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Malte Frank Gerdes <malte.f.gerdes <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: qtbase strips debug info from the debug output
Date: Mon, 19 Oct 2020 21:48:49 +0200
[Message part 1 (text/plain, inline)]
Hi,

i'm trying to get debug symbols for qt related packages. I noticed that
those inherit from qtsvg which itself inherits from qtbase. The
behaviour that i see is: before the stripping phase all objects have
debugging info and afterwards even the separate debug files don't have
them anymore.

I tested other packages based on gnu-build-system; there every .debug
file that's in the debug output contains the debug info as
expected. This can be checked with `readelf --debug-dump
<path-to-file>'.

I read the package defintions but can't see where it goes wrong.

Attached is build log of qtbase with (outputs '("out" "debug")) added to
it's package definition. Note that during the strip phase strip issues
warnings regarding files in the debug output which should simply not be
because this (imho) where strip strips the debug info from the .debug
files.

Any help and/or clarification as to what is happening here is much
appreciated :)


Malte

[28yn4lc656prrqgrjbfx84ixhv07jz-qtbase-5.14.2.drv.bz2 (application/octet-stream, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#44081; Package guix. (Wed, 21 Oct 2020 02:41:01 GMT) Full text and rfc822 format available.

Message #8 received at 44081 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Malte Frank Gerdes <malte.f.gerdes <at> gmail.com>
Cc: 44081 <at> debbugs.gnu.org
Subject: Re: bug#44081: qtbase strips debug info from the debug output
Date: Tue, 20 Oct 2020 22:40:43 -0400
Hello,

Malte Frank Gerdes <malte.f.gerdes <at> gmail.com> writes:

> Hi,
>
> i'm trying to get debug symbols for qt related packages. I noticed that
> those inherit from qtsvg which itself inherits from qtbase. The
> behaviour that i see is: before the stripping phase all objects have
> debugging info and afterwards even the separate debug files don't have
> them anymore.

You want to use the staging branch of Guix, as it already includes a
debug output for qtbase and related packages (which inherits from its
definition).

Possibly what was missing from your experiment was the
"--force-debug-info" configure option that prevents the Qt build system
from stripping the debug symbols (the otherwise default behavior).  You
can inspect commit ab6fe9d3620 to see how it was done.

Hope that helps,

Maxim




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Wed, 21 Oct 2020 03:56:02 GMT) Full text and rfc822 format available.

Notification sent to Malte Frank Gerdes <malte.f.gerdes <at> gmail.com>:
bug acknowledged by developer. (Wed, 21 Oct 2020 03:56:02 GMT) Full text and rfc822 format available.

Message #13 received at 44081-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Malte Frank Gerdes <malte.f.gerdes <at> gmail.com>
Cc: 44081-done <at> debbugs.gnu.org
Subject: Re: bug#44081: qtbase strips debug info from the debug output
Date: Tue, 20 Oct 2020 23:55:43 -0400
Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

> Hello,
>
> Malte Frank Gerdes <malte.f.gerdes <at> gmail.com> writes:
>
>> Hi,
>>
>> i'm trying to get debug symbols for qt related packages. I noticed that
>> those inherit from qtsvg which itself inherits from qtbase. The
>> behaviour that i see is: before the stripping phase all objects have
>> debugging info and afterwards even the separate debug files don't have
>> them anymore.
>
> You want to use the staging branch of Guix, as it already includes a
> debug output for qtbase and related packages (which inherits from its
> definition).
>
> Possibly what was missing from your experiment was the
> "--force-debug-info" configure option that prevents the Qt build system
> from stripping the debug symbols (the otherwise default behavior).  You
> can inspect commit ab6fe9d3620 to see how it was done.
>
> Hope that helps,
>
> Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 18 Nov 2020 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 209 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.