From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gIwzH4H+WmEiNgAAgWs5BA (envelope-from ) for ; Mon, 04 Oct 2021 15:15:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QFP8GoH+WmGOBgAA1q6Kng (envelope-from ) for ; Mon, 04 Oct 2021 13:15:45 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CF97826B39 for ; Mon, 4 Oct 2021 15:15:44 +0200 (CEST) Received: from localhost ([::1]:51730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXNol-0006H3-TZ for larch@yhetil.org; Mon, 04 Oct 2021 09:15:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXNo6-0006Dq-Se for bug-guix@gnu.org; Mon, 04 Oct 2021 09:15:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52611) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXNo6-0007rP-Gr for bug-guix@gnu.org; Mon, 04 Oct 2021 09:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXNo6-0002x0-8U for bug-guix@gnu.org; Mon, 04 Oct 2021 09:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48907: Grafts cause discrepancies in debug symbols file names (debug symbols missing in GDB). Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 04 Oct 2021 13:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48907 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Received: via spool by 48907-submit@debbugs.gnu.org id=B48907.163335326711287 (code B ref 48907); Mon, 04 Oct 2021 13:15:02 +0000 Received: (at 48907) by debbugs.gnu.org; 4 Oct 2021 13:14:27 +0000 Received: from localhost ([127.0.0.1]:35924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXNnX-0002vy-HO for submit@debbugs.gnu.org; Mon, 04 Oct 2021 09:14:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXNnU-0002vj-Vn for 48907@debbugs.gnu.org; Mon, 04 Oct 2021 09:14:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52912) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXNnP-0007LC-NV; Mon, 04 Oct 2021 09:14:19 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=60542 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXNnP-0002oM-9j; Mon, 04 Oct 2021 09:14:19 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87v92lh1wc.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 27 Sep 2021 22:25:39 -0400") References: <87r1hdtu4t.fsf@gmail.com> <87eeczikq5.fsf@gnu.org> <87ilyqk8jg.fsf_-_@gmail.com> <87lf3mm560.fsf@gnu.org> <87v92lh1wc.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 =?UTF-8?Q?Vend=C3=A9miaire?= an 230 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: Mon, 04 Oct 2021 15:14:17 +0200 Message-ID: <8735phq6dy.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 48907@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633353345; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=ySkHq+3ztJOWX6CLbhQcx97gk0PMXDRN2iLG160Yu74=; b=Dswu/b9mXXO9l3k72ovhKzOqxg47MwmGPxIeGPUdjaZhQ8b95Xfv+dAuTplpEBqDwOkC/O jhBMURlX4kYUJdLG6CafXZuV8Gl0ADY5GE2LD4WOmEDYNIkikjZC+RVstQO3LHFcoGGlNm m90BGBr+P4t4BZoN0iXQKtGF6dsq+OcXuN2aIozh/qD+TyxYbcnr21784FsXIyzX9qh+i6 4LrLZU3fBPpYq98i9QB2fl5YWTHbBovE9kXXXbAptgqXQxAqsTgzHr/652GTxA5/DbNFCu MweCShYJVZJUFyuPC6AJvKCLykdAJIZLnmnHJ/gK3T4QXbdUsoCLXUnrPMjvKg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633353345; a=rsa-sha256; cv=none; b=G0yD0f4TFXM4rT68qaNAsOQPGNmo19+YkVDwL4x4FKTgbZk/ZfcXcjZ6v4ja8nRImJqdJV 1RgkNGVLaMwKNolbAhI8NAaxizptDcjwJhV4rr8OnHlgcigY9uxvzLHKK4sp53CNUhSNdM MYVOHq9iZMz8bVfCxa3qaT0lYqfT41W8OCmfz1Q7MAHapDlkat3kg0nwQnyhSb9YwexFsr Ebvghae9nuHW8u44drCyjlIGnuhb75OQotrVn+3UYdc9GSbUiSWNhmIruwld5g+gPjCXvu +cbO/tjrnrEt3OnARHy4KHv8cs823ZpIKgzKqHd/A2gjNTDiwP+FTyNWpvMhjw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: CF97826B39 X-Spam-Score: -2.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: kXMjjK61I6zq Hi, Maxim Cournoyer skribis: > Ludovic Court=C3=A8s writes: > > [...] > >>> Yikes! This means that debugging with grafts (with the aid of debugging >>> symbols) is no longer possible, right? >> >> It depends on whether the separate =E2=80=9Cdebug=E2=80=9D output gets g= rafted or not, >> but yeah, if a dependency tree has this shape (app -> lib + lib:debug), >> running =E2=80=98guix install app=E2=80=99 alone will prevent you from g= etting debugging >> symbols from =E2=80=98lib:debug=E2=80=99 I believe. That sucks. >> >> I wonder if we should revert 482fda2729c3e76999892cb8f9a0391a7bd37119. >> It=E2=80=99s often not very helpful anyway (we often find ourselves down= loading >> unnecessary package outputs because of grafting). > > Hmm. Perhaps. But it'd also suck to have to download 1 GiB of unneeded > debugging symbols to just apply a graft to Qt, for example. Yeah. That=E2=80=99s already the case in some cases though, that=E2=80=99s= what I meant. >>> I remember reading about a 2nd option to locate the separate debug >>> symbol files with GDB in info '(gdb) Separate Debug Files': >>> >>> >>> * The executable contains a "build ID", a unique bit string that is >> >> We=E2=80=99d have to check if this is applicable. Looking at the ld man= ual >> (info "(ld) Options"), it seems that the UUID =E2=80=9Cstyle=E2=80=9D is= ruled out >> because it=E2=80=99s non-deterministic, and the md5 and sha1 styles would >> require us to rewrite build IDs IIUC, similar to how we rewrite CRCs. > > Seems like it could work? simark from #gdb says it should be > deterministic for reproducible builds. We'd need to fixup the grafted > debug output, but they could being done in a separate derivation would > no longer matter (as the debug symbols would be matched on a unique ID > that is not linked to that derivation, not on their file name, which > is). > > Did I get the above right? To summarize, =E2=80=98.gnu_debuglink=E2=80=99 in executables/libraries con= tains the CRC of the debug file. Conversely, IIUC what the =E2=80=9Cnormative parts of the output contents= =E2=80=9D (info "(ld) Options") really are, build IDs are computed on the code, not on debug info. But the problems remains the same I think: if you have /gnu/store/abc=E2=80=A6/libfoo.so and /gnu/store/xyz=E2=80=A6/libfoo.so, ch= ances are that they are different due to embedded store file names, and thus get a different build ID. Am I right? (BTW, I just noticed build IDs were also discussed at .) Ludo=E2=80=99.