unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Mark Wielaard <mark@klomp.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: bug-Guix@gnu.org
Subject: bug#39503: Supporting elf-debuginfod (debug symbol server)
Date: Sun, 9 Feb 2020 23:40:42 +0100	[thread overview]
Message-ID: <20200209224042.GB40455@wildebeest.org> (raw)
In-Reply-To: <87imkiyp1x.fsf@gnu.org>

Hi Ludo,

On Sat, Feb 08, 2020 at 12:07:22AM +0100, Ludovic Courtès wrote:
> I’ve just watched Mark’s very nice talk about debuginfod and and I’d
> like to work towards running an instance of it on ci.guix.gnu.org:
> 
>   https://fosdem.org/2020/schedule/event/debugging_debuginfod/

Glad you liked it.

> What’s missing today is configuring GCC with ‘--enable-linker-build-id’
> (which is not the default, unlike what Mark says in the talk :-)).

It indeed isn't, I just believed it was because almost all distros
enable it by default, except for Guix :)

> If we do that, I wonder if we can stop using ‘.gnu_debuglink’ (see the
> ‘strip’ phase in (guix build gnu-build-system)).

debug consumers still need a way to resolve the build-ids.  The
debuginfod-client is one (new) way of doing it. But it will take some
time to add support to everything. Traditionally a debug file for a
build-id is resolved though the file system. That is a symlink under
/usr/lib/debug/.build-id/xx/yyyyy.debug that points to the actual
debug file. It is normally installed by the debuginfo package. For
guix some alternative location should be found and the debug consumers
should be patched to look there (if you want to get rid of
.gnu_debuglink).

> Also, I suspect build IDs wouldn’t mesh well with grafting: unless we
> rewrite them, the same build ID would match both the ungrafted and the
> grafted variant.  Is that a problem?  Not sure.  (Currently (guix build
> debug-link) recomputes ‘.gnu_debuglink’ upon grafting so that the links
> remain valid.)

I don't understand grafting yet. But if it is a different build, then
it needs a new/unique build-id.

> PS: I found Eelco Dolstra’s dwarffs to be very smart, too!
>     https://github.com/edolstra/dwarffs

After the talk I also learned about:
https://docs.01.org/clearlinux/latest/guides/clear/debug.html

      reply	other threads:[~2020-02-09 22:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-07 23:07 bug#39503: Supporting elf-debuginfod (debug symbol server) Ludovic Courtès
2020-02-09 22:40 ` Mark Wielaard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200209224042.GB40455@wildebeest.org \
    --to=mark@klomp.org \
    --cc=bug-Guix@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).