GNU bug report logs - #63008
[PATCH core-updates] gnu: gdb@11: Update to 11.2.

Previous Next

Package: guix-patches;

Reported by: Pierre Langlois <pierre.langlois <at> gmx.com>

Date: Fri, 21 Apr 2023 22:16:02 UTC

Severity: normal

Tags: patch

Done: Efraim Flashner <efraim <at> flashner.co.il>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63008 in the body.
You can then email your comments to 63008 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#63008; Package guix-patches. (Fri, 21 Apr 2023 22:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pierre Langlois <pierre.langlois <at> gmx.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 21 Apr 2023 22:16:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pierre Langlois <pierre.langlois <at> gmx.com>
To: guix-patches <at> gnu.org
Subject: [PATCH core-updates] gnu: gdb <at> 11: Update to 11.2.
Date: Fri, 21 Apr 2023 23:11:28 +0100
[Message part 1 (text/plain, inline)]
Hi Guix!

I'm trying out the core-updates branch on aarch64, and gdb <at> 11 doesn't
build with the new glibc, see: https://sourceware.org/bugzilla/show_bug.cgi?id=28302

Luckily, the patch was backported to 11.2, so it's a trivial fix! Is
this OK to commit? It'll be a big rebuild, I guess it could be bundled
with other fixes.

Thanks,
Pierre

[signature.asc (application/pgp-signature, inline)]
[0001-gnu-gdb-11-Update-to-11.2.patch (text/x-patch, inline)]
From dd8ab2ac3659057241707f05a5a63910aa1da677 Mon Sep 17 00:00:00 2001
Message-Id: <dd8ab2ac3659057241707f05a5a63910aa1da677.1682115065.git.pierre.langlois <at> gmx.com>
From: Pierre Langlois <pierre.langlois <at> gmx.com>
Date: Fri, 21 Apr 2023 22:53:11 +0100
Subject: [PATCH] gnu: gdb <at> 11: Update to 11.2.

* gnu/packages/gdb.scm (gdb-11): Update to 11.2.
---
 gnu/packages/gdb.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/gdb.scm b/gnu/packages/gdb.scm
index 82050d9ac5..dfc32ea2fb 100644
--- a/gnu/packages/gdb.scm
+++ b/gnu/packages/gdb.scm
@@ -48,14 +48,14 @@ (define-module (gnu packages gdb)
 (define-public gdb-11
   (package
     (name "gdb")
-    (version "11.1")
+    (version "11.2")
     (source (origin
               (method url-fetch)
               (uri (string-append "mirror://gnu/gdb/gdb-"
                                   version ".tar.xz"))
               (sha256
                (base32
-                "151z6d0265hv9cgx9zqqa4bd6vbp20hrljhd6bxl7lr0gd0crkyc"))))
+                "0cif2n3wfg1w8vc1kfnp6358idxa1zj0wjm8m5qqc6w8f5mc75ql"))))
     (build-system gnu-build-system)
     (outputs '("out" "debug"))
     (arguments
-- 
2.39.2


Information forwarded to guix-patches <at> gnu.org:
bug#63008; Package guix-patches. (Sat, 22 Apr 2023 20:16:01 GMT) Full text and rfc822 format available.

Message #8 received at 63008 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: 63008 <at> debbugs.gnu.org
Subject: gdb on aarch64
Date: Sat, 22 Apr 2023 22:15:45 +0200
Hello Pierre,

we also have gdb <at> 12 in core-updates; does this also not build? Right now
none of the two have been built on aarch64 on CI, so I lack an overview.

On x86_64, both build; @12 has 101 dependents, @11 7563!
This cannot be accomodated on core-updates any more, I am afraid.

We will need to build it out afterwards. And probably the best course
of action would be to move the dependents to gdb <at> 12; or drop the
dependency? Why do so many packages depend on a debugger?

Andreas





Information forwarded to guix-patches <at> gnu.org:
bug#63008; Package guix-patches. (Mon, 24 Apr 2023 19:12:01 GMT) Full text and rfc822 format available.

Message #11 received at 63008 <at> debbugs.gnu.org (full text, mbox):

From: Pierre Langlois <pierre.langlois <at> gmx.com>
To: Andreas Enge <andreas <at> enge.fr>
Cc: 63008 <at> debbugs.gnu.org, guix-patches <at> gnu.org
Subject: Re: [bug#63008] gdb on aarch64
Date: Mon, 24 Apr 2023 20:04:18 +0100
[Message part 1 (text/plain, inline)]
Hi Andreas, sorry I missed your reply!

Andreas Enge <andreas <at> enge.fr> writes:

> Hello Pierre,
>
> we also have gdb <at> 12 in core-updates; does this also not build? Right now
> none of the two have been built on aarch64 on CI, so I lack an overview.

Yup, gdb <at> 12 builds just fine for me!

>
> On x86_64, both build; @12 has 101 dependents, @11 7563!
> This cannot be accomodated on core-updates any more, I am afraid.
>
> We will need to build it out afterwards. And probably the best course
> of action would be to move the dependents to gdb <at> 12; or drop the
> dependency? Why do so many packages depend on a debugger?

Yeah gdb is used as a dependency for testing rust, I'm not sure if it
has to be 11, it can probably work with 12 although I haven't tried.

I think the main reason we still have gdb 11 is to make sure we don't
rebuild the rust world. I'm afraid if we don't do update it know, we'll
have to do it quite soon, can the rust world be rebuilt on a staging
branch soon after the core-updates merge? I'm concerned that these days
a lot relies on rust (via librsvg IIRC), so not having it available
might be an issue, even for simple systems :-/.

All that being said, it might be possible to add a separate gdb <at> 11.2
package, and only use it for rust on non-x86, in a way that doesn't
cause a rebuild, could that work?

Thanks,
Pierre

[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#63008; Package guix-patches. (Mon, 24 Apr 2023 19:13:01 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#63008; Package guix-patches. (Mon, 24 Apr 2023 19:22:02 GMT) Full text and rfc822 format available.

Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pierre Langlois <pierre.langlois <at> gmx.com>
To: Pierre Langlois <pierre.langlois <at> gmx.com>
Cc: Andreas Enge <andreas <at> enge.fr>, 63008 <at> debbugs.gnu.org, guix-patches <at> gnu.org
Subject: Re: [bug#63008] gdb on aarch64
Date: Mon, 24 Apr 2023 20:20:26 +0100
[Message part 1 (text/plain, inline)]
Pierre Langlois <pierre.langlois <at> gmx.com> writes:

> [[PGP Signed Part:Undecided]]
> Hi Andreas, sorry I missed your reply!
>
> Andreas Enge <andreas <at> enge.fr> writes:
>
>> Hello Pierre,
>>
>> we also have gdb <at> 12 in core-updates; does this also not build? Right now
>> none of the two have been built on aarch64 on CI, so I lack an overview.
>
> Yup, gdb <at> 12 builds just fine for me!
>
>>
>> On x86_64, both build; @12 has 101 dependents, @11 7563!
>> This cannot be accomodated on core-updates any more, I am afraid.
>>
>> We will need to build it out afterwards. And probably the best course
>> of action would be to move the dependents to gdb <at> 12; or drop the
>> dependency? Why do so many packages depend on a debugger?
>
> Yeah gdb is used as a dependency for testing rust, I'm not sure if it
> has to be 11, it can probably work with 12 although I haven't tried.
>
> I think the main reason we still have gdb 11 is to make sure we don't
> rebuild the rust world. I'm afraid if we don't do update it know, we'll
> have to do it quite soon, can the rust world be rebuilt on a staging
> branch soon after the core-updates merge? I'm concerned that these days
> a lot relies on rust (via librsvg IIRC), so not having it available
> might be an issue, even for simple systems :-/.
>
> All that being said, it might be possible to add a separate gdb <at> 11.2
> package, and only use it for rust on non-x86, in a way that doesn't
> cause a rebuild, could that work?

To illustrate what I mean, here's a WIP patch (it needs comments),
AFAICT, this would only be a rebuild on non-x86:

[signature.asc (application/pgp-signature, inline)]
[gdb.patch (text/x-patch, inline)]
diff --git a/gnu/packages/gdb.scm b/gnu/packages/gdb.scm
index 82050d9ac5..d460f3950c 100644
--- a/gnu/packages/gdb.scm
+++ b/gnu/packages/gdb.scm
@@ -146,6 +146,18 @@ (define-public gdb-11
     ;; RPC stubs).
     (supported-systems (fold delete %supported-systems %hurd-systems))))
 
+(define-public gdb-11.2
+  (package
+    (inherit gdb-11)
+    (version "11.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://gnu/gdb/gdb-"
+                                  version ".tar.xz"))
+              (sha256
+               (base32
+                "xvczsqcbh5y0gx7qrclpna0qzx26sk7lra6y8qzxam1biyzr65qf"))))))
+
 (define-public gdb-12
   (package
     (inherit gdb-11)
@@ -166,6 +178,11 @@ (define-public gdb/pinned
   ;; enough to avoid massive rebuilds.
   gdb-11)
 
+(define-public gdb-11.2/pinned
+  ;; This is the fixed version that packages depend on.  Update it rarely
+  ;; enough to avoid massive rebuilds.
+  gdb-11.2)
+
 (define-public gdb
   ;; The "default" version.
   gdb-12)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index d07f4ef10c..3cc5a4926b 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -788,7 +788,9 @@ (define-public rust
                     (format #f "prefix = ~s" (assoc-ref outputs "rustfmt"))))
                  (invoke "./x.py" "install" "rustfmt")))))))
       ;; Add test inputs.
-      (native-inputs (cons* `("gdb" ,gdb/pinned)
+      (native-inputs (cons* `("gdb" ,(if (target-x86?)
+                                         gdb/pinned
+                                         gdb-11.2/pinned))
                             `("procps" ,procps)
                             (package-native-inputs base-rust))))))
 

Information forwarded to guix-patches <at> gnu.org:
bug#63008; Package guix-patches. (Mon, 24 Apr 2023 19:22:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#63008; Package guix-patches. (Mon, 24 Apr 2023 20:13:02 GMT) Full text and rfc822 format available.

Message #23 received at 63008 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: Pierre Langlois <pierre.langlois <at> gmx.com>
Cc: 63008 <at> debbugs.gnu.org, Efraim Flashner <efraim <at> flashner.co.il>
Subject: Re: [bug#63008] gdb on aarch64
Date: Mon, 24 Apr 2023 22:12:35 +0200
Hello Pierre,

Am Mon, Apr 24, 2023 at 08:04:18PM +0100 schrieb Pierre Langlois:
> I think the main reason we still have gdb 11 is to make sure we don't
> rebuild the rust world. I'm afraid if we don't do update it know, we'll
> have to do it quite soon, can the rust world be rebuilt on a staging
> branch soon after the core-updates merge?

definitely, there already is a rust-team branch, and the rust team is in
the starting block. Discussing gdb in this context would probably be
a good idea!

Andreas





Information forwarded to guix-patches <at> gnu.org:
bug#63008; Package guix-patches. (Tue, 25 Apr 2023 10:47:02 GMT) Full text and rfc822 format available.

Message #26 received at 63008 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Andreas Enge <andreas <at> enge.fr>
Cc: Pierre Langlois <pierre.langlois <at> gmx.com>, 63008 <at> debbugs.gnu.org
Subject: Re: [bug#63008] gdb on aarch64
Date: Tue, 25 Apr 2023 13:46:47 +0300
[Message part 1 (text/plain, inline)]
On Mon, Apr 24, 2023 at 10:12:35PM +0200, Andreas Enge wrote:
> Hello Pierre,
> 
> Am Mon, Apr 24, 2023 at 08:04:18PM +0100 schrieb Pierre Langlois:
> > I think the main reason we still have gdb 11 is to make sure we don't
> > rebuild the rust world. I'm afraid if we don't do update it know, we'll
> > have to do it quite soon, can the rust world be rebuilt on a staging
> > branch soon after the core-updates merge?
> 
> definitely, there already is a rust-team branch, and the rust team is in
> the starting block. Discussing gdb in this context would probably be
> a good idea!

I also noticed that gdb-11.1 failed to build on core-updates on
riscv64-linux. I can confirm that gdb-12 does build on riscv64-linux on
core-updates. I haven't tried yet to use gdb-12 in place of gdb-11 in
the rust tests, but I assume it would work. I'll test it out on x86_64
on core-updates to see if it works.

It sounds like as it currently stands neither aarch64 nor riscv64 have a
working rust on core-updates. I suppose, in order to decrease the number
of rebuilds, we could introduce gdb-11.2 and use that as the gdb input
in rust for those two architectures until I can either switch everyone
to 11.2 in the rust-team branch or switch everyone to gdb-12.

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#63008; Package guix-patches. (Tue, 25 Apr 2023 12:02:01 GMT) Full text and rfc822 format available.

Message #29 received at 63008 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Andreas Enge <andreas <at> enge.fr>
Cc: Pierre Langlois <pierre.langlois <at> gmx.com>, 63008 <at> debbugs.gnu.org
Subject: Re: [bug#63008] gdb on aarch64
Date: Tue, 25 Apr 2023 15:01:15 +0300
[Message part 1 (text/plain, inline)]
On Mon, Apr 24, 2023 at 10:12:35PM +0200, Andreas Enge wrote:
> Hello Pierre,
> 
> Am Mon, Apr 24, 2023 at 08:04:18PM +0100 schrieb Pierre Langlois:
> > I think the main reason we still have gdb 11 is to make sure we don't
> > rebuild the rust world. I'm afraid if we don't do update it know, we'll
> > have to do it quite soon, can the rust world be rebuilt on a staging
> > branch soon after the core-updates merge?
> 
> definitely, there already is a rust-team branch, and the rust team is in
> the starting block. Discussing gdb in this context would probably be
> a good idea!

I was able to build rust-1.60 on core-updates on x86_64 using
gdb-minimal. IMO we should switch to that for aarch64/riscv64 and then
I'll switch x86_64 over to it later in the rust-team branch.

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#63008; Package guix-patches. (Tue, 25 Apr 2023 13:07:02 GMT) Full text and rfc822 format available.

Message #32 received at 63008 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: Efraim Flashner <efraim <at> flashner.co.il>,
 Pierre Langlois <pierre.langlois <at> gmx.com>, 63008 <at> debbugs.gnu.org
Subject: Re: [bug#63008] gdb on aarch64
Date: Tue, 25 Apr 2023 15:05:51 +0200
Hello Efraim,

Am Tue, Apr 25, 2023 at 01:46:47PM +0300 schrieb Efraim Flashner:
> It sounds like as it currently stands neither aarch64 nor riscv64 have a
> working rust on core-updates.

I am not sure whether it works, but at least it builds on aarch64:
   https://ci.guix.gnu.org/build/37421/details
This is rust-1.60, our publicly visible version; internally we are at 1.65,
which I suppose the rust-team branch is going to make visible soon.
I also see a few green dots of rust-* packages in the dashboard, alongside
many red dots; a random sample of them shows they suffer from the infamous
cuirass bug "cannot build missing derivation".

So I think we are good as far as core-updates is concerned, and you can
make the changes on the rust-team branch when you see fit.

Andreas





Information forwarded to guix-patches <at> gnu.org:
bug#63008; Package guix-patches. (Wed, 26 Apr 2023 07:05:01 GMT) Full text and rfc822 format available.

Message #35 received at 63008 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: Efraim Flashner <efraim <at> flashner.co.il>,
 Pierre Langlois <pierre.langlois <at> gmx.com>, 63008 <at> debbugs.gnu.org
Subject: Re: [bug#63008] gdb on aarch64
Date: Wed, 26 Apr 2023 09:04:37 +0200
Am Tue, Apr 25, 2023 at 03:05:51PM +0200 schrieb Andreas Enge:
> I am not sure whether it works, but at least it builds on aarch64:
>    https://ci.guix.gnu.org/build/37421/details
> This is rust-1.60

It was also the version from January, while the current one does not build.
Sorry for the noise, and looking forward to the rust-team branch merge!

Andreas





Reply sent to Efraim Flashner <efraim <at> flashner.co.il>:
You have taken responsibility. (Sat, 20 May 2023 20:01:02 GMT) Full text and rfc822 format available.

Notification sent to Pierre Langlois <pierre.langlois <at> gmx.com>:
bug acknowledged by developer. (Sat, 20 May 2023 20:01:02 GMT) Full text and rfc822 format available.

Message #40 received at 63008-done <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Andreas Enge <andreas <at> enge.fr>, Pierre Langlois <pierre.langlois <at> gmx.com>,
 63008-done <at> debbugs.gnu.org
Subject: Re: [bug#63008] gdb on aarch64
Date: Sat, 20 May 2023 23:00:46 +0300
[Message part 1 (text/plain, inline)]
On Tue, Apr 25, 2023 at 03:01:15PM +0300, Efraim Flashner wrote:
> On Mon, Apr 24, 2023 at 10:12:35PM +0200, Andreas Enge wrote:
> > Hello Pierre,
> > 
> > Am Mon, Apr 24, 2023 at 08:04:18PM +0100 schrieb Pierre Langlois:
> > > I think the main reason we still have gdb 11 is to make sure we don't
> > > rebuild the rust world. I'm afraid if we don't do update it know, we'll
> > > have to do it quite soon, can the rust world be rebuilt on a staging
> > > branch soon after the core-updates merge?
> > 
> > definitely, there already is a rust-team branch, and the rust team is in
> > the starting block. Discussing gdb in this context would probably be
> > a good idea!
> 
> I was able to build rust-1.60 on core-updates on x86_64 using
> gdb-minimal. IMO we should switch to that for aarch64/riscv64 and then
> I'll switch x86_64 over to it later in the rust-team branch.

I've since switched rust to using gdb-12.1 and removed gdb-11 from Guix.
Closing this bug!

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 18 Jun 2023 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 311 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.