From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: bug#19973: Grafts break debug outputs Date: Sun, 01 Mar 2015 00:06:11 -0500 Message-ID: <878ufh71do.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRw5p-0006DE-JU for bug-guix@gnu.org; Sun, 01 Mar 2015 00:07:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRw5m-0004JH-DQ for bug-guix@gnu.org; Sun, 01 Mar 2015 00:07:05 -0500 Received: from debbugs.gnu.org ([140.186.70.43]:57434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRw5m-0004JB-9W for bug-guix@gnu.org; Sun, 01 Mar 2015 00:07:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YRw5l-0005oB-Pp for bug-guix@gnu.org; Sun, 01 Mar 2015 00:07:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRw4w-0005WK-QX for bug-guix@gnu.org; Sun, 01 Mar 2015 00:06:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRw4t-00047d-CY for bug-guix@gnu.org; Sun, 01 Mar 2015 00:06:10 -0500 Received: from world.peace.net ([50.252.239.5]:45689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRw4t-0003qa-7g for bug-guix@gnu.org; Sun, 01 Mar 2015 00:06:07 -0500 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 19973@debbugs.gnu.org Grafts break debug outputs, or at least that's my guess. Here's what I see: mhw@jojen:~$ guix build guile guix build: warning: ambiguous package specification `guile' guix build: warning: choosing guile-2.0.11 from gnu/packages/guile.scm:110:2 /gnu/store/3lhr8q28q6f59774di9av7ncy09jd55d-guile-2.0.11 /gnu/store/rgv3fvy6xqp6966rfh8v6fv7m48abcbh-guile-2.0.11-debug mhw@jojen:~$ guix package -I guile guile 2.0.11 out /gnu/store/3lhr8q28q6f59774di9av7ncy09jd55d-guile-2.0.11 guile 2.0.11 debug /gnu/store/rgv3fvy6xqp6966rfh8v6fv7m48abcbh-guile-2.0.11-debug mhw@jojen:~$ ls -l .guix-profile/lib/debug/gnu/store/ total 8 lrwxrwxrwx 12 root guixbuild 128 Dec 31 1969 122jv790mv2mlnylbrbzav65vghbw93n-guile-2.0.11 -> /gnu/store/rgv3fvy6xqp6966rfh8v6fv7m48abcbh-guile-2.0.11-debug/lib/debug/gnu/store/122jv790mv2mlnylbrbzav65vghbw93n-guile-2.0.11 lrwxrwxrwx 15 root guixbuild 127 Dec 31 1969 3g20rdmnavpblsmgppyl8jhg67nidhjk-glibc-2.20 -> /gnu/store/hrny2whqg9c3m0klyfpbmmcyiir9yf8m-gcc-toolchain-4.9.2/lib/debug/gnu/store/3g20rdmnavpblsmgppyl8jhg67nidhjk-glibc-2.20 I guess GDB can't find the debugging information because 122jv790mv2mlnylbrbzav65vghbw93n-guile-2.0.11 is the name of the guile directory *before* grafting. To work around this, I created my own ~/mydebug directory: mhw@jojen:~/mydebug/gnu/store$ ln -s /gnu/store/rgv3fvy6xqp6966rfh8v6fv7m48abcbh-guile-2.0.11-debug/lib/debug/gnu/store/122jv790mv2mlnylbrbzav65vghbw93n-guile-2.0.11 3lhr8q28q6f59774di9av7ncy09jd55d-guile-2.0.11 and then pointed GDB at ~/mydebug and then debugging works again. Mark