From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eHATDvu7dF8fWQAA0tVLHw (envelope-from ) for ; Wed, 30 Sep 2020 17:10:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KBzaCfu7dF9VWwAAbx9fmQ (envelope-from ) for ; Wed, 30 Sep 2020 17:10:19 +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 A23879400EF for ; Wed, 30 Sep 2020 17:10:18 +0000 (UTC) Received: from localhost ([::1]:55266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNfcP-0002QY-9z for larch@yhetil.org; Wed, 30 Sep 2020 13:10:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNfPU-0005iH-Cb for help-guix@gnu.org; Wed, 30 Sep 2020 12:56:56 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:57996) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNfPS-0007fW-1v for help-guix@gnu.org; Wed, 30 Sep 2020 12:56:55 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id A4522A0570 for ; Wed, 30 Sep 2020 16:56:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo05-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo05-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8ZarAFGMChNI for ; Wed, 30 Sep 2020 16:56:50 +0000 (UTC) Received: from laptop (unknown [108.162.141.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 356799FF3F for ; Wed, 30 Sep 2020 16:56:49 +0000 (UTC) From: Simon South To: help-guix@gnu.org Subject: Installing gcc debugging symbols? Date: Wed, 30 Sep 2020 12:52:43 -0400 Message-ID: <871rijgqas.fsf@simonsouth.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.68.200.34; envelope-from=simon@simonsouth.net; helo=mailout.easymail.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/30 12:56:50 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: Lfn1skr+a/j8 Is there a way to install debugging information for gcc, as one can for glibc and other packages? I'm trying to test a change to Knot 3.0.0 and have found that gcc takes forever to finish linking (and usually crashes from running out of memory) when building the package using "guix build knot". Meanwhile, if I build the source "manually", from within "guix environment --pure knot", everything works fine. I'd like to diagnose this but connecting to the running gcc instance using gdb doesn't reveal much without gcc's debugging information available. I've tried "guix install gcc-toolchain@7.5:debug" but that installs debugging information for only glibc. I could edit gnu/packages/gcc.scm to set the "stripped?" variable to false and rebuild gcc so its debugging symbols are preserved, but then it's not clear how to install them. It seems I can build and install gcc itself with guix package --install-from-expression='(@ (gnu packages gcc) gcc-7)' but what I really want is guix package --install-from-expression='(@ (gnu packages gcc) (list gcc-7 "debug"))' This fails with a syntax error, however, and I see the documentation for "guix package" says Note that this option installs the first output of the specified package, which may be insufficient when needing a specific output of a multiple-output package. Is there a trick to making this work? -- Simon South simon@simonsouth.net