GNU bug report logs - #64966
Rockpro64 SBC not booting anymore after "gnu: shepherd@0.10: Use guile-fibers 1.3.1."

Previous Next

Package: guix;

Reported by: Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org>

Date: Mon, 31 Jul 2023 00:33:01 UTC

Severity: important

Done: Ludovic Courtès <ludo <at> gnu.org>

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 64966 in the body.
You can then email your comments to 64966 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 bug-guix <at> gnu.org:
bug#64966; Package guix. (Mon, 31 Jul 2023 00:33:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 31 Jul 2023 00:33:02 GMT) Full text and rfc822 format available.

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

From: Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org>
To: bug-guix <at> gnu.org
Subject: Rockpro64 SBC not booting anymore after "gnu: shepherd <at> 0.10: Use
 guile-fibers 1.3.1."
Date: Mon, 31 Jul 2023 02:31:22 +0200
[Message part 1 (text/plain, inline)]
Hi,

With the commit right before c219c22cbd[1], my rockpro64 (ARM 64bit
SBC) boots fine and I get a login prompt both on the attached display
and serial port.

With c219c22cbd[1] instead it blocks here (see the attached boot.log
file for the full boot log):
> [   33.762050] avdd: disabling

I've attached the system.scm file I used for the test. It's being
reused by a machine configuration in another file (rockpro64.scm) and
I deploys the configuration with:
> guix time-machine --commit=$(GUIX_COMMIT) -- deploy -L . rockpro64.scm

References:
-----------
[1] commit c219c22cbdb62ba52b50ec8fb12bebce0b1dd459
    gnu: shepherd <at> 0.10: Use guile-fibers 1.3.1.
    * gnu/packages/admin.scm (shepherd-0.10)[native-inputs, inputs]:
      Replace GUILE-FIBERS-1.1 with GUILE-FIBERS-1.3.

Denis.
[system.scm (text/x-scheme, attachment)]
[boot.log (text/x-log, attachment)]
[Message part 4 (application/pgp-signature, inline)]

Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 21 Aug 2023 14:56:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#64966; Package guix. (Mon, 21 Aug 2023 15:01:01 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org>
Cc: 64966 <at> debbugs.gnu.org
Subject: Re: bug#64966: Rockpro64 SBC not booting anymore after "gnu:
 shepherd <at> 0.10: Use guile-fibers 1.3.1."
Date: Mon, 21 Aug 2023 17:00:26 +0200
[Message part 1 (text/plain, inline)]
Hi Denis,

Apologies for the delay.

Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org> skribis:

> With the commit right before c219c22cbd[1], my rockpro64 (ARM 64bit
> SBC) boots fine and I get a login prompt both on the attached display
> and serial port.
>
> With c219c22cbd[1] instead it blocks here (see the attached boot.log
> file for the full boot log):
>> [   33.762050] avdd: disabling
>
> I've attached the system.scm file I used for the test. It's being
> reused by a machine configuration in another file (rockpro64.scm) and
> I deploys the configuration with:
>> guix time-machine --commit=$(GUIX_COMMIT) -- deploy -L . rockpro64.scm
>
> References:
> -----------
> [1] commit c219c22cbdb62ba52b50ec8fb12bebce0b1dd459
>     gnu: shepherd <at> 0.10: Use guile-fibers 1.3.1.
>     * gnu/packages/admin.scm (shepherd-0.10)[native-inputs, inputs]:
>       Replace GUILE-FIBERS-1.1 with GUILE-FIBERS-1.3.

I believe this is due to this bug:

  https://github.com/wingo/fibers/issues/89

How about this patch:

[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 65d2e387b5..cb698e82b8 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -385,9 +385,15 @@ (define-public shepherd-0.10
                (base32
                 "0v9ld9gbqdp5ya380fbkdsxa0iqr90gi6yk004ccz3n792nq6wlj"))))
     (native-inputs (modify-inputs (package-native-inputs shepherd-0.9)
-                     (replace "guile-fibers" guile-fibers-1.3)))
+                     (replace "guile-fibers"
+                       ;; Work around
+                       ;; <https://github.com/wingo/fibers/issues/89>.
+                       (if (target-aarch64?)
+                           guile-fibers-1.1
+                           guile-fibers-1.3))))
     (inputs (modify-inputs (package-inputs shepherd-0.9)
-              (replace "guile-fibers" guile-fibers-1.3)))))
+              (replace "guile-fibers"
+                (this-package-native-input "guile-fibers"))))))
 
 (define-public shepherd shepherd-0.9)
 
[Message part 3 (text/plain, inline)]
?

Thanks,
Ludo’.

Information forwarded to bug-guix <at> gnu.org:
bug#64966; Package guix. (Fri, 25 Aug 2023 18:25:01 GMT) Full text and rfc822 format available.

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

From: Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 64966 <at> debbugs.gnu.org
Subject: Re: bug#64966: Rockpro64 SBC not booting anymore after "gnu:
 shepherd <at> 0.10: Use guile-fibers 1.3.1."
Date: Fri, 25 Aug 2023 20:24:28 +0200
[Message part 1 (text/plain, inline)]
On Mon, 21 Aug 2023 17:00:26 +0200
Ludovic Courtès <ludo <at> gnu.org> wrote:

> Hi Denis,
Hi,

[...]
> How about this patch:

I've some issue testing the patch. With guix
1c916c167b7eb1f2f8af2cf621aa1512b00b1033 ("gnu: Add thunarx-python.")
I've the following:
>   LD [M]  net/nsh/nsh.ko
>   LD [M]  net/qrtr/qrtr.ko
>   LD [M]  net/qrtr/qrtr-smd.ko
>   LD [M]  net/qrtr/qrtr-tun.ko
>   LD [M]  net/qrtr/qrtr-mhi.ko
> error: in phase 'build': uncaught exception:
> %exception #<&invoke-error program: "make" arguments: ("-j" "6")
> exit-status: 2 term-signal: #f stop-signal: #f> phase `build' failed
> after 15717.1 seconds command "make" "-j" "6" failed with status 2
> builder for
> `/gnu/store/969v8chaxmh1b6abr202y2myl0npb6zh-linux-libre-6.4.11.drv'
> failed with exit code 1 cannot build derivation
> `/gnu/store/lky0cr3p0y9lgzarcnrl2aq4y4389ygq-linux-modules.drv': 1
> dependencies couldn't be built building path(s)
> `/gnu/store/n2jk40lhr395jnpi5nr6dhdc536ngrsd-mcron-job' cannot build
> derivation
> `/gnu/store/6f0x8bkmalkrx3n24f9jfvxpd6cvs7sk-parameters.drv': 1
> dependencies couldn't be built cannot build derivation
> `/gnu/store/m5j1961vjyrk1s48i864lcp0h4a0v2sk-profile.drv': 1
> dependencies couldn't be built building path(s)
> `/gnu/store/bhyhl6gw0gkawykb6k0ziyim0wpfnbk6-module-import-compiled'
> cannot build derivation
> `/gnu/store/m7mw72finn57b0j5f66x4dcwgm22k2xj-system.drv': 1
> dependencies couldn't be built cannot build derivation
> `/gnu/store/gbwsrrvlfw2v3cdgxnmi31bz38x5xhgc-switch-to-system.scm.drv':
> 1 dependencies couldn't be built cannot build derivation
> `/gnu/store/ynn503gdm4r6azqa8wa0sjakshx0pcgz-remote-exp.scm.drv': 1
> dependencies couldn't be built guix deploy: error: build of
> `/gnu/store/ynn503gdm4r6azqa8wa0sjakshx0pcgz-remote-exp.scm.drv'
> failed

And here I tried without the patch, in a guix checkout built with make
and with the following command: './pre-inst-env guix deploy -L
rockpro64/ rockpro64/rockpro64.scm'.

I'm unsure of what is wrong with the kernel build, but since it's not
downloading substitutes for it, the issue is probably more general.

Denis.
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#64966; Package guix. (Fri, 25 Aug 2023 19:47:02 GMT) Full text and rfc822 format available.

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

From: Julien Lepiller <julien <at> lepiller.eu>
To: 64966 <at> debbugs.gnu.org
Subject: Re: bug#64966: Rockpro64 SBC not booting anymore after "gnu:
 shepherd <at> 0.10: Use guile-fibers 1.3.1."
Date: Fri, 25 Aug 2023 21:45:47 +0200
Le Fri, 25 Aug 2023 20:24:28 +0200,
Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org> a écrit :

> ./pre-inst-env guix deploy -L
> rockpro64/ rockpro64/rockpro64.scm

If you're doing this on a non aarch64 system, you'll need to add
--system=aarch64-linux.




Information forwarded to bug-guix <at> gnu.org:
bug#64966; Package guix. (Wed, 13 Sep 2023 14:38:01 GMT) Full text and rfc822 format available.

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

From: Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 64966 <at> debbugs.gnu.org
Subject: Re: bug#64966: Rockpro64 SBC not booting anymore after "gnu:
 shepherd <at> 0.10: Use guile-fibers 1.3.1."
Date: Wed, 13 Sep 2023 16:37:30 +0200
[Message part 1 (text/plain, inline)]
Hi again,

For some reasons I didn't receive your last mail.

In the machine definition I have (system "aarch64-linux"). I've now
also added -s aarch64-linux as well just to be safe.

As for the patch, it is now in Guix (4dd33fc628 gnu: shepherd: Switch
back to Fibers 1.1 on Arm machines.), and after bisecting the kernel
issue I had (I sent a bug report for that), I simply modified the system
definition to use linux-libre-lts instead.

I used this guix revision:
> $ guix describe
> Generation 71	Sep 13 2023 16:03:04	(current)
>   guix 4f933f9
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: 4f933f977dd8aa61ca3e50b194d3b56e298a3e30

And it booted fine. Thanks a lot.

Denis.
[Message part 2 (application/pgp-signature, inline)]

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Wed, 13 Sep 2023 20:41:02 GMT) Full text and rfc822 format available.

Notification sent to Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org>:
bug acknowledged by developer. (Wed, 13 Sep 2023 20:41:03 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org>
Cc: 64966-done <at> debbugs.gnu.org
Subject: Re: bug#64966: Rockpro64 SBC not booting anymore after "gnu:
 shepherd <at> 0.10: Use guile-fibers 1.3.1."
Date: Wed, 13 Sep 2023 22:40:35 +0200
Hi Denis,

Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org> skribis:

> And it booted fine. Thanks a lot.

Awesome, thanks for checking!

Ludo’.




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

This bug report was last modified 1 year and 210 days ago.

Previous Next


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