From unknown Sat Jul 26 16:40:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39503: Supporting elf-debuginfod (debug symbol server) Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: mark@klomp.org, bug-guix@gnu.org Resent-Date: Fri, 07 Feb 2020 23:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39503 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: bug-Guix@gnu.org Cc: Mark Wielaard X-Debbugs-Original-Xcc: Mark Wielaard Received: via spool by submit@debbugs.gnu.org id=B.158111684819763 (code B ref -1); Fri, 07 Feb 2020 23:08:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Feb 2020 23:07:28 +0000 Received: from localhost ([127.0.0.1]:50420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0Cie-00058h-19 for submit@debbugs.gnu.org; Fri, 07 Feb 2020 18:07:28 -0500 Received: from lists.gnu.org ([209.51.188.17]:45252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0Cib-00058Z-Uh for submit@debbugs.gnu.org; Fri, 07 Feb 2020 18:07:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58340) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0Cia-0007FF-S1 for bug-Guix@gnu.org; Fri, 07 Feb 2020 18:07:25 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j0Cia-0004eA-P4 for bug-Guix@gnu.org; Fri, 07 Feb 2020 18:07:24 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=39374 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j0Cia-00066G-5Q for bug-Guix@gnu.org; Fri, 07 Feb 2020 18:07:24 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 19 =?UTF-8?Q?Pluvi=C3=B4se?= an 228 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 08 Feb 2020 00:07:22 +0100 Message-ID: <87imkiyp1x.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello Guix! I=E2=80=99ve just watched Mark=E2=80=99s very nice talk about debuginfod an= d and I=E2=80=99d like to work towards running an instance of it on ci.guix.gnu.org: https://fosdem.org/2020/schedule/event/debugging_debuginfod/ What=E2=80=99s missing today is configuring GCC with =E2=80=98--enable-link= er-build-id=E2=80=99 (which is not the default, unlike what Mark says in the talk :-)). If we do that, I wonder if we can stop using =E2=80=98.gnu_debuglink=E2=80= =99 (see the =E2=80=98strip=E2=80=99 phase in (guix build gnu-build-system)). Also, I suspect build IDs wouldn=E2=80=99t 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 =E2=80=98.gnu_debuglink=E2=80=99 upon grafting so th= at the links remain valid.) Thoughts? Thanks, Ludo=E2=80=99. PS: I found Eelco Dolstra=E2=80=99s dwarffs to be very smart, too! https://github.com/edolstra/dwarffs From unknown Sat Jul 26 16:40:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39503: Supporting elf-debuginfod (debug symbol server) Resent-From: Mark Wielaard Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 09 Feb 2020 22:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39503 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: bug-Guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15812880654289 (code B ref -1); Sun, 09 Feb 2020 22:42:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Feb 2020 22:41:05 +0000 Received: from localhost ([127.0.0.1]:53359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0vGD-000177-E8 for submit@debbugs.gnu.org; Sun, 09 Feb 2020 17:41:05 -0500 Received: from lists.gnu.org ([209.51.188.17]:43571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0vGB-00016z-P5 for submit@debbugs.gnu.org; Sun, 09 Feb 2020 17:41:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49728) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0vGA-00062x-Gf for bug-Guix@gnu.org; Sun, 09 Feb 2020 17:41:03 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_50,KHOP_HELO_FCRDNS, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0vG9-0007KF-3R for bug-Guix@gnu.org; Sun, 09 Feb 2020 17:41:02 -0500 Received: from wildebeest.demon.nl ([212.238.236.112]:49460 helo=gnu.wildebeest.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j0vG8-0007Gw-TD; Sun, 09 Feb 2020 17:41:01 -0500 Received: from librem (deer0x15.wildebeest.org [172.31.17.151]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 5B432300074D; Sun, 9 Feb 2020 23:40:58 +0100 (CET) Received: by librem (Postfix, from userid 1000) id C2FD9C3EE9; Sun, 9 Feb 2020 23:40:42 +0100 (CET) Date: Sun, 9 Feb 2020 23:40:42 +0100 From: Mark Wielaard Message-ID: <20200209224042.GB40455@wildebeest.org> References: <87imkiyp1x.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87imkiyp1x.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.238.236.112 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludo, On Sat, Feb 08, 2020 at 12:07:22AM +0100, Ludovic Court=C3=A8s wrote: > I=E2=80=99ve just watched Mark=E2=80=99s very nice talk about debuginfo= d and and I=E2=80=99d > like to work towards running an instance of it on ci.guix.gnu.org: >=20 > https://fosdem.org/2020/schedule/event/debugging_debuginfod/ Glad you liked it. > What=E2=80=99s missing today is configuring GCC with =E2=80=98--enable-= linker-build-id=E2=80=99 > (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 =E2=80=98.gnu_debuglink=E2= =80=99 (see the > =E2=80=98strip=E2=80=99 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=E2=80=99t mesh well with grafting: unl= ess 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 =E2=80=98.gnu_debuglink=E2=80=99 upon grafting s= o 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=E2=80=99s 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 10 17:13:16 2020 Received: (at control) by debbugs.gnu.org; 10 Feb 2020 22:13:16 +0000 Received: from localhost ([127.0.0.1]:55661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j1HIq-0005hN-1B for submit@debbugs.gnu.org; Mon, 10 Feb 2020 17:13:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j1HIn-0005hB-Uf for control@debbugs.gnu.org; Mon, 10 Feb 2020 17:13:14 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j1HIi-0002ai-Rp for control@debbugs.gnu.org; Mon, 10 Feb 2020 17:13:08 -0500 Received: from [2a01:e0a:1d:7270:6a6c:dc17:fc02:cfda] (port=45672 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j1HIi-0001vV-ED for control@debbugs.gnu.org; Mon, 10 Feb 2020 17:13:08 -0500 Date: Mon, 10 Feb 2020 23:13:07 +0100 Message-Id: <87lfpagkgc.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #39503 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) severity 39503 wishlist quit