unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#44081: qtbase strips debug info from the debug output
@ 2020-10-19 19:48 Malte Frank Gerdes
  2020-10-21  2:40 ` Maxim Cournoyer
  0 siblings, 1 reply; 3+ messages in thread
From: Malte Frank Gerdes @ 2020-10-19 19:48 UTC (permalink / raw)
  To: 44081

[-- Attachment #1: Type: text/plain, Size: 951 bytes --]

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


[-- Attachment #2: 28yn4lc656prrqgrjbfx84ixhv07jz-qtbase-5.14.2.drv.bz2 --]
[-- Type: application/octet-stream, Size: 317599 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#44081: qtbase strips debug info from the debug output
  2020-10-19 19:48 bug#44081: qtbase strips debug info from the debug output Malte Frank Gerdes
@ 2020-10-21  2:40 ` Maxim Cournoyer
  2020-10-21  3:55   ` Maxim Cournoyer
  0 siblings, 1 reply; 3+ messages in thread
From: Maxim Cournoyer @ 2020-10-21  2:40 UTC (permalink / raw)
  To: Malte Frank Gerdes; +Cc: 44081

Hello,

Malte Frank Gerdes <malte.f.gerdes@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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#44081: qtbase strips debug info from the debug output
  2020-10-21  2:40 ` Maxim Cournoyer
@ 2020-10-21  3:55   ` Maxim Cournoyer
  0 siblings, 0 replies; 3+ messages in thread
From: Maxim Cournoyer @ 2020-10-21  3:55 UTC (permalink / raw)
  To: Malte Frank Gerdes; +Cc: 44081-done

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

> Hello,
>
> Malte Frank Gerdes <malte.f.gerdes@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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-21  3:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-19 19:48 bug#44081: qtbase strips debug info from the debug output Malte Frank Gerdes
2020-10-21  2:40 ` Maxim Cournoyer
2020-10-21  3:55   ` Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).