From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GIaxMr/dTWECRgAAgWs5BA (envelope-from ) for ; Fri, 24 Sep 2021 16:16:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gOpwLr/dTWGtagAA1q6Kng (envelope-from ) for ; Fri, 24 Sep 2021 14:16:31 +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 0ED7F32EB6 for ; Fri, 24 Sep 2021 16:16:31 +0200 (CEST) Received: from localhost ([::1]:40522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTm05-0000Xz-VY for larch@yhetil.org; Fri, 24 Sep 2021 10:16:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTlyg-0007tS-B5 for bug-guix@gnu.org; Fri, 24 Sep 2021 10:15:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47429) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTlyg-0000if-1I for bug-guix@gnu.org; Fri, 24 Sep 2021 10:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTlyf-0006yz-QR for bug-guix@gnu.org; Fri, 24 Sep 2021 10:15:01 -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: Fri, 24 Sep 2021 14:15:01 +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.163249289726817 (code B ref 48907); Fri, 24 Sep 2021 14:15:01 +0000 Received: (at 48907) by debbugs.gnu.org; 24 Sep 2021 14:14:57 +0000 Received: from localhost ([127.0.0.1]:58975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTlyb-0006yS-52 for submit@debbugs.gnu.org; Fri, 24 Sep 2021 10:14:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTlyZ-0006yD-9q for 48907@debbugs.gnu.org; Fri, 24 Sep 2021 10:14:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54734) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTlyU-0000Yl-5D; Fri, 24 Sep 2021 10:14:50 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=60464 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTlyT-0004i7-Sv; Fri, 24 Sep 2021 10:14:50 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87r1hdtu4t.fsf@gmail.com> <87eeczikq5.fsf@gnu.org> <87ilyqk8jg.fsf_-_@gmail.com> Date: Fri, 24 Sep 2021 16:14:47 +0200 In-Reply-To: <87ilyqk8jg.fsf_-_@gmail.com> (Maxim Cournoyer's message of "Thu, 23 Sep 2021 22:32:35 -0400") Message-ID: <87lf3mm560.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) 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=1632492991; 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=6DzIPNDWcCBm7t9D1Ctcxg5CZVGPMtRmmKnIfzO8nvc=; b=KTqPFJYX75z09hK3F2lt6L/h41niX5o6Ic8u2B3lB2uEP+WGXTlNEnRUmTt1nsorIB+ORO R5S6c21rEUs4WdgS1TRVzpiszFAt8VXPIfVS8DwVYsgogUoVX5t/KuVhe4Ch141b2zsgTV Uv4IlHkpvNSOmT9pan7ZRyjgIpmiSZmP6cMv4/orH26gHdeYdMFQzAAOIGOkr18kBGUQj1 VEltmRGiH+4oLMqPq7hFDm2U646HOAUwbLxFJB0ejr9AiaSK7bmPFl1jzFSzrY9C4DRWTH ewiDVuGn22O1nEVVNVNP98FJ5mUz4hiWOkA+/BqswTDA0y1TY6bL1bYJRi3UOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632492991; a=rsa-sha256; cv=none; b=mZ+kw10mzWBXN5R88tVzqRPEEMfG990cDkTIFCujloqKQBX2U55OMCXQH8qCzyNBLWDlms jWb8JmIgX4JaOPiC+miXk+VkIdcLhHFtMZ/d0k3Y7uyM+5f9ko7vdGtWHM8GjBMh2xr952 Y8hASS2TNraGLYteBiuk2Mj3LfD+4ISWox+6z6iNq8hYfsu7JChYHjOJYEpzmlBhNr1SCr 36nBZQzlSxqCvtajUr8kbj8HV6uEUz6/BhSRkr1IHYzdwHa8W2rOFYgRooCUBK/hXj5ylT WCgBql9Q625FF2J13w/yMoXizcixzHHa9YowfsHmH7OP9oKmog0RHymxfZ0xqw== 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.89 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: 0ED7F32EB6 X-Spam-Score: -2.89 X-Migadu-Scanner: scn0.migadu.com X-TUID: bDRUI1T4k1jV Hi, Maxim Cournoyer skribis: > Ludovic Court=C3=A8s writes: [...] >> This is due to the fact that, when you run =E2=80=98guix build jami-qt= =E2=80=99, the >> grafting derivation dismisses the =E2=80=9Cdebug=E2=80=9D output of qtde= clarative, since >> jami-qt does not depend on it. That way it doesn=E2=80=99t have to >> build/download and graft qtdeclarative:debug. [...] > 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 graf= ted 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 gett= ing 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 downloa= ding unnecessary package outputs because of grafting). > 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 manual (info "(ld) Options"), it seems that the UUID =E2=80=9Cstyle=E2=80=9D is ru= led 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. Thanks, Ludo=E2=80=99.