GNU bug report logs - #55639
time-machine back in 2020: weird error

Previous Next

Package: guix;

Reported by: zimoun <zimon.toutoune <at> gmail.com>

Date: Wed, 25 May 2022 17:14:02 UTC

Severity: normal

To reply to this bug, email your comments to 55639 AT debbugs.gnu.org.

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

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


Report forwarded to ludo <at> gnu.org, bug-guix <at> gnu.org:
bug#55639; Package guix. (Wed, 25 May 2022 17:14:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to zimoun <zimon.toutoune <at> gmail.com>:
New bug report received and forwarded. Copy sent to ludo <at> gnu.org, bug-guix <at> gnu.org. (Wed, 25 May 2022 17:14:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: time-machine back in 2020: weird error
Date: Wed, 25 May 2022 19:13:12 +0200
Hi,

From 9d795fb, I get on machine A,

--8<---------------cut here---------------start------------->8---
$ guix time-machine --commit=a7b20226b2 -- build hello
[...]
Backtrace:
           1 (primitive-load "/home/simon/.cache/guix/inferiors/wulv?")
In guix/ui.scm:
  1936:12  0 (run-guix-command _ . _)

guix/ui.scm:1936:12: In procedure run-guix-command:
Throw to key `match-error' with args `("match" "no matching pattern" #<derivation /gnu/store/c6hgmfq0i4zgryqyl0ab1ms51fnrkmdv-bootstrap-binaries-0.drv => /gnu/store/5bdaayvl6cs8nrdivskz4dbrsy2m009c-bootstrap-binaries-0 7fcda0633a50>)'.
--8<---------------cut here---------------end--------------->8---

where it reads:

--8<---------------cut here---------------start------------->8---
$ guix gc --list-live | grep c6hgmfq0i4zgryqyl0ab1ms51fnrkmdv
finding garbage collector roots...
determining live/dead paths...
/gnu/store/c6hgmfq0i4zgryqyl0ab1ms51fnrkmdv-bootstrap-binaries-0.drv

$ guix gc --list-dead | grep 5bdaayvl6cs8nrdivskz4dbrsy2m009c
finding garbage collector roots...
determining live/dead paths...
/gnu/store/5bdaayvl6cs8nrdivskz4dbrsy2m009c-bootstrap-binaries-0

$ guix build /gnu/store/c6hgmfq0i4zgryqyl0ab1ms51fnrkmdv-bootstrap-binaries-0.drv
/gnu/store/5bdaayvl6cs8nrdivskz4dbrsy2m009c-bootstrap-binaries-0
--8<---------------cut here---------------end--------------->8---


Last, on machine B, the time-machine just works.  Maybe it is related to
NVMe and something like [1].

Well, I still do not understand why the time-machine raises an error
when the store have the necessary item.  Any idea?


1: <https://issues.guix.gnu.org/41264>

Cheers,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#55639; Package guix. (Tue, 31 May 2022 14:33:03 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 55639 <at> debbugs.gnu.org
Subject: Re: bug#55639: time-machine back in 2020: weird error
Date: Tue, 31 May 2022 16:32:34 +0200
Hi,

zimoun <zimon.toutoune <at> gmail.com> skribis:

>>From 9d795fb, I get on machine A,
>
> $ guix time-machine --commit=a7b20226b2 -- build hello
> [...]
> Backtrace:
>            1 (primitive-load "/home/simon/.cache/guix/inferiors/wulv?")
> In guix/ui.scm:
>   1936:12  0 (run-guix-command _ . _)
>
> guix/ui.scm:1936:12: In procedure run-guix-command:
> Throw to key `match-error' with args `("match" "no matching pattern" #<derivation /gnu/store/c6hgmfq0i4zgryqyl0ab1ms51fnrkmdv-bootstrap-binaries-0.drv => /gnu/store/5bdaayvl6cs8nrdivskz4dbrsy2m009c-bootstrap-binaries-0 7fcda0633a50>)'.

Works for me:

--8<---------------cut here---------------start------------->8---
$ guix describe
Generation 216  May 30 2022 00:00:02    (current)
  guix 98e2f4f
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 98e2f4fbebb8b08784401e2095123fcd3d3a32cb
$ guix time-machine --commit=a7b20226b2 -- build hello
guile: warning: failed to install locale
/gnu/store/a462kby1q51ndvxdv3b6p0rsixxrgx1h-hello-2.10
--8<---------------cut here---------------end--------------->8---

> Last, on machine B, the time-machine just works.  Maybe it is related to
> NVMe and something like [1].

This looks like something different, but it’s very weird.  The unhelpful
‘match-error’ seems to occur early on:

--8<---------------cut here---------------start------------->8---
$ head -1942 ~/.cache/guix/inferiors/wulvgnewx2av6dvgkq6adku4kzmlva75l2gukndywh7wvzenkmoa/share/guile/site/3.0/guix/ui.scm | tail -12
      ;; Disable canonicalization so we don't don't stat unreasonably.
      (with-fluids ((%file-port-name-canonicalization #f))
        (dynamic-wind
          (const #f)
          (lambda ()
            (apply command-main args))
          (lambda ()
            ;; Abuse 'exit-hook' (which is normally meant to be used by the
            ;; REPL) to run things like profiling hooks upon completion.
            (run-hook exit-hook)))))))

(define (run-guix . args)
--8<---------------cut here---------------end--------------->8---

Does “guix time-machine --commit=a7b20226b2 -- help” work for you?

Can you fiddle at the REPL and try to see more precisely what’s failing?

  guix time-machine --commit=a7b20226b2 -- repl -q

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#55639; Package guix. (Tue, 31 May 2022 16:34:01 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 55639 <at> debbugs.gnu.org
Subject: Re: bug#55639: time-machine back in 2020: weird error
Date: Tue, 31 May 2022 18:33:01 +0200
Hi,

On mar., 31 mai 2022 at 16:32, Ludovic Courtès <ludo <at> gnu.org> wrote:

> $ guix time-machine --commit=a7b20226b2 -- build hello
> guile: warning: failed to install locale
> /gnu/store/a462kby1q51ndvxdv3b6p0rsixxrgx1h-hello-2.10

It works on all of my machine except my newest one…

>> Last, on machine B, the time-machine just works.  Maybe it is related to
>> NVMe and something like [1].

…and what is different between all my machines and the newest one?

One thing is CPU.  It reminds me the unrelated OpenBLAS failure [1].
Well, the situation is:

* Fail

        i7-10700K  (Comet Lake)

* Build

        i7-6500U   (Skylake)        <-- Ludo ?
        5218       (Cascade Lake)


1: <https://yhetil.org/guix/86o83oywza.fsf <at> gmail.com>



> Can you fiddle at the REPL and try to see more precisely what’s failing?
>
>   guix time-machine --commit=a7b20226b2 -- repl -q

--8<---------------cut here---------------start------------->8---
$ guix time-machine --commit=a7b20226b2 -- repl -q
guile: warning: failed to install locale
GNU Guile 3.0.2
Copyright (C) 1995-2020 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guix-user)> (use-modules (guix store) (guix packages) (gnu packages base))
scheme@(guix-user)> (with-store store (package-derivation store hello))
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
Throw to key `match-error' with args `("match" "no matching pattern" #<derivation /gnu/store/c6hgmfq0i4zgryqyl0ab1ms51fnrkmdv-bootstrap-binaries-0.drv => /gnu/store/5bdaayvl6cs8nrdivskz4dbrsy2m009c-bootstrap-binaries-0 7f131ff71be0>)'.

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guix-user) [1]> ,bt
In ice-9/boot-9.scm:
  1736:10 27 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In guix/store.scm:
   630:22 26 (thunk)
In guix/packages.scm:
   966:16 25 (package-derivation _ #<package hello <at> 2.10 gnu/packages/base.scm:74 7f131fcbb000> _ #:graft? _)
  1285:22 24 (thunk)
  1218:25 23 (bag->derivation #<store-connection 256.99 7f131feb4500> #<<bag> name: "hello-2.10" system: "x86_64-linux" target: #f build-inputs: (("sour…> …)
In srfi/srfi-1.scm:
   586:29 22 (map1 (("source" #<origin "mirror://gnu/hello/hello-2.10.tar.gz" ghqgme32sythn2e7nhi3mu4c32k2p335sffyzokw6qpkolqpkfvq () 7f131fcb9000>) (…) …))
   586:17 21 (map1 (("tar" #<package tar <at> 1.32 guix/build-system/gnu.scm:143 7f131ff2ff00>) ("gzip" #<package gzip <at> 1.10 guix/build-system/gnu.scm:143…>) …))
In guix/packages.scm:
  1009:16 20 (expand-input #<store-connection 256.99 7f131feb4500> #<package hello <at> 2.10 gnu/packages/base.scm:74 7f131fcbb000> ("tar" #<package tar <at> 1.…>) …)
   966:16 19 (package-derivation _ #<package tar <at> 1.32 guix/build-system/gnu.scm:143 7f131ff2ff00> _ #:graft? _)
  1285:22 18 (thunk)
  1218:25 17 (bag->derivation #<store-connection 256.99 7f131feb4500> #<<bag> name: "tar-1.32" system: "x86_64-linux" target: #f build-inputs: (("source…> …)
In srfi/srfi-1.scm:
   586:17 16 (map1 (("source" #<origin "mirror://gnu/tar/tar-1.32.tar.xz" 2dj24b7ramzdx2ajxq7kydomhbwvfrjgesm74bkrdlchrcxr7xma ("/gnu/store/p4lmsp0k…>) …))
In guix/packages.scm:
   1028:5 15 (expand-input _ _ _ _ _)
In ice-9/boot-9.scm:
  1736:10 14 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In guix/packages.scm:
  1033:18 13 (_)
In guix/store.scm:
  2017:24 12 (run-with-store #<store-connection 256.99 7f131feb4500> #<procedure 7f131ff3d400 at guix/gexp.scm:234:5 (state)> #:guile-for-build _ #:system …)
   1851:8 11 (_ _)
In guix/gexp.scm:
    961:2 10 (_ _)
    821:2  9 (_ _)
In guix/store.scm:
  1899:12  8 (_ #<store-connection 256.99 7f131feb4500>)
   1336:2  7 (map/accumulate-builds #<store-connection 256.99 7f131feb4500> _ _)
In srfi/srfi-1.scm:
   586:17  6 (map1 ((#<package bootstrap-binaries <at> 0 gnu/packages/bootstrap.scm:212 7f132c44ae60> "out") ("/gnu/store/3vcinqz2z8j8n78jd83xxbh2bb15mxxw…") …))
In guix/store.scm:
   1295:8  5 (call-with-build-handler #<procedure build-accumulator (continue store things mode)> _)
  2017:24  4 (run-with-store #<store-connection 256.99 7f131feb4500> #<procedure 7f131ff92d20 at guix/gexp.scm:691:8 (state)> #:guile-for-build _ #:system …)
In guix/gexp.scm:
   693:18  3 (_ _)
In ice-9/boot-9.scm:
  1669:16  2 (raise-exception _ #:continuable? _)
  1667:16  1 (raise-exception _ #:continuable? _)
  1669:16  0 (raise-exception _ #:continuable? _)
scheme@(guix-user) [1]>
--8<---------------cut here---------------end--------------->8---

Let me know what could be useful to debug this?


Thanks,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#55639; Package guix. (Tue, 31 May 2022 17:01:01 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 55639 <at> debbugs.gnu.org
Subject: Re: bug#55639: time-machine back in 2020: weird error
Date: Tue, 31 May 2022 19:00:25 +0200
Re,

Maybe the issue is coming from the old Guile 3.0.2 of 2020 not
supporting some recent CPU…  Well, I do not know.

Any idea for debugging?  I already have tried to remove the potential
bugs between the chair and the keyboard. :-)


On mar., 31 mai 2022 at 18:33, zimoun <zimon.toutoune <at> gmail.com> wrote:

> $ guix time-machine --commit=a7b20226b2 -- repl -q

--8<---------------cut here---------------start------------->8---
scheme@(guix-user)> (with-store store (package-derivation store guile-3.0))
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
Throw to key `match-error' with args `("match" "no matching pattern" #<derivation /gnu/store/c6hgmfq0i4zgryqyl0ab1ms51fnrkmdv-bootstrap-binaries-0.drv => /gnu/store/5bdaayvl6cs8nrdivskz4dbrsy2m009c-bootstrap-binaries-0 7f25cac46c80>)'.

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guix-user) [1]> ,bt
In ice-9/boot-9.scm:
  1736:10 33 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In guix/store.scm:
   630:22 32 (thunk)
In guix/packages.scm:
   966:16 31 (package-derivation _ #<package guile <at> 3.0.2 gnu/packages/guile.scm:284 7f25ca60f320> _ #:graft? _)
  1285:22 30 (thunk)
  1218:25 29 (bag->derivation #<store-connection 256.99 7f25ca87cf50> #<<bag> name: "guile-3.0.2" system: "x86_64-linux" target: #f build-inputs: (("sou…> …)
In srfi/srfi-1.scm:
   586:17 28 (map1 (("source" #<origin "mirror://gnu/guile/guile-3.0.2.tar.xz" kpch2mqfgpeaumkfvw6yhyklxyihybcbygfiwikp6ieetmukt6fa ("/gnu/store/p4l…>) …))
In guix/packages.scm:
   1028:5 27 (expand-input _ _ _ _ _)
In ice-9/boot-9.scm:
  1736:10 26 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In guix/packages.scm:
  1033:18 25 (_)
In guix/store.scm:
  2017:24 24 (run-with-store #<store-connection 256.99 7f25ca87cf50> #<procedure 7f25d7145d80 at guix/gexp.scm:234:5 (state)> #:guile-for-build _ #:system …)
   1851:8 23 (_ _)
In guix/packages.scm:
   1390:5 22 (_ _)
In guix/store.scm:
  1886:38 21 (_ #<store-connection 256.99 7f25ca8b6f50>)
In guix/packages.scm:
   966:16 20 (package-derivation _ #<package guile <at> 3.0.2 guix/build-system/gnu.scm:143 7f25cabf8b40> _ #:graft? _)
  1285:22 19 (thunk)
  1218:25 18 (bag->derivation #<store-connection 256.99 7f25ca8b6f50> #<<bag> name: "guile-3.0.2" system: "x86_64-linux" target: #f build-inputs: (("sou…> …)
In srfi/srfi-1.scm:
   586:17 17 (map1 (("source" #<origin "mirror://gnu/guile/guile-3.0.2.tar.xz" kpch2mqfgpeaumkfvw6yhyklxyihybcbygfiwikp6ieetmukt6fa ("/gnu/store/p4l…>) …))
In guix/packages.scm:
   1028:5 16 (expand-input _ _ _ _ _)
In ice-9/boot-9.scm:
  1736:10 15 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In guix/packages.scm:
  1033:18 14 (_)
In guix/store.scm:
  2017:24 13 (run-with-store #<store-connection 256.99 7f25ca8b6f50> #<procedure 7f25d7145700 at guix/gexp.scm:234:5 (state)> #:guile-for-build _ #:system …)
   1851:8 12 (_ _)
In guix/gexp.scm:
    961:2 11 (_ _)
    821:2 10 (_ _)
In guix/store.scm:
  1899:12  9 (_ #<store-connection 256.99 7f25ca8b6f50>)
   1336:2  8 (map/accumulate-builds #<store-connection 256.99 7f25ca8b6f50> _ _)
In srfi/srfi-1.scm:
   586:17  7 (map1 ((#<package bootstrap-binaries <at> 0 gnu/packages/bootstrap.scm:212 7f25d7106e60> "out") ("/gnu/store/a7s2cq1by31wzqqas967x3g1si4wbj04…") …))
In guix/store.scm:
   1295:8  6 (call-with-build-handler #<procedure build-accumulator (continue store things mode)> _)
  2017:24  5 (run-with-store #<store-connection 256.99 7f25ca8b6f50> #<procedure 7f25c97aa9a0 at guix/gexp.scm:691:8 (state)> #:guile-for-build _ #:system …)
In guix/gexp.scm:
   693:18  4 (_ _)
In ice-9/boot-9.scm:
  1669:16  3 (raise-exception _ #:continuable? _)
  1667:16  2 (raise-exception _ #:continuable? _)
  1667:16  1 (raise-exception _ #:continuable? _)
  1669:16  0 (raise-exception _ #:continuable? _)
scheme@(guix-user) [1]>
--8<---------------cut here---------------end--------------->8---

Cheers,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#55639; Package guix. (Tue, 31 May 2022 18:29:01 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 55639 <at> debbugs.gnu.org
Subject: Re: bug#55639: time-machine back in 2020: weird error
Date: Tue, 31 May 2022 20:27:43 +0200
Hi,

On mar., 31 mai 2022 at 16:32, Ludovic Courtès <ludo <at> gnu.org> wrote:

> This looks like something different, but it’s very weird.  The unhelpful
> ‘match-error’ seems to occur early on:
>
> $ head -1942 ~/.cache/guix/inferiors/wulvgnewx2av6dvgkq6adku4kzmlva75l2gukndywh7wvzenkmoa/share/guile/site/3.0/guix/ui.scm | tail -12
>       ;; Disable canonicalization so we don't don't stat unreasonably.
>       (with-fluids ((%file-port-name-canonicalization #f))
>         (dynamic-wind
>           (const #f)
>           (lambda ()
>             (apply command-main args))
>           (lambda ()
>             ;; Abuse 'exit-hook' (which is normally meant to be used by the
>             ;; REPL) to run things like profiling hooks upon completion.
>             (run-hook exit-hook)))))))
>
> (define (run-guix . args)

Is it possible that it comes from Guile 3.0.2 on a recent CPU?


> Does “guix time-machine --commit=a7b20226b2 -- help” work for you?

Yes.

--8<---------------cut here---------------start------------->8---
$ guix time-machine --commit=a7b20226b2 -- build hello
guile: warning: failed to install locale
Backtrace:
           1 (primitive-load "/home/simon/.cache/guix/inferiors/wulvgnewx2av6dvgkq6adku4kzmlva75l2gukndywh7wvzenkmoa/bin/guix")
In guix/ui.scm:
  1936:12  0 (run-guix-command _ . _)

guix/ui.scm:1936:12: In procedure run-guix-command:
Throw to key `match-error' with args `("match" "no matching pattern" #<derivation /gnu/store/c6hgmfq0i4zgryqyl0ab1ms51fnrkmdv-bootstrap-binaries-0.drv => /gnu/store/5bdaayvl6cs8nrdivskz4dbrsy2m009c-bootstrap-binaries-0 7efc8591fe60>)'.

$ guix time-machine --commit=a7b20226b2 -- build /gnu/store/c6hgmfq0i4zgryqyl0ab1ms51fnrkmdv-bootstrap-binaries-0.drv
guile: warning: failed to install locale
/gnu/store/5bdaayvl6cs8nrdivskz4dbrsy2m009c-bootstrap-binaries-0
--8<---------------cut here---------------end--------------->8---


> Can you fiddle at the REPL and try to see more precisely what’s failing?
>
>   guix time-machine --commit=a7b20226b2 -- repl -q

--8<---------------cut here---------------start------------->8---
$ guix time-machine --commit=a7b20226b2 -- repl -q
guile: warning: failed to install locale
GNU Guile 3.0.2
Copyright (C) 1995-2020 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guix-user)> (use-modules (guix store) (guix packages) (gnu packages guile))
scheme@(guix-user)> (with-store store (package-derivation store guile-3.0))
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
Throw to key `match-error' with args `("match" "no matching pattern" #<derivation /gnu/store/c6hgmfq0i4zgryqyl0ab1ms51fnrkmdv-bootstrap-binaries-0.drv => /gnu/store/5bdaayvl6cs8nrdivskz4dbrsy2m009c-bootstrap-binaries-0 7f1910e6a6e0>)'.

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guix-user) [1]> ,bt
In ice-9/boot-9.scm:
  1736:10 33 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In guix/store.scm:
   630:22 32 (thunk)
In guix/packages.scm:
   966:16 31 (package-derivation _ #<package guile <at> 3.0.2 gnu/packages/guile.scm:284 7f1910b7e500> _ #:graft? _)
  1285:22 30 (thunk)
  1218:25 29 (bag->derivation #<store-connection 256.99 7f1910e0eeb0> #<<bag> name: "guile-3.0.2" system: "x86_64-linux" target: #f build-inp…> …)
In srfi/srfi-1.scm:
   586:17 28 (map1 (("source" #<origin "mirror://gnu/guile/guile-3.0.2.tar.xz" kpch2mqfgpeaumkfvw6yhyklxyihybcbygfiwikp6ieetmukt6fa ("/gn…>) …))
In guix/packages.scm:
   1028:5 27 (expand-input _ _ _ _ _)
In ice-9/boot-9.scm:
  1736:10 26 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In guix/packages.scm:
  1033:18 25 (_)
In guix/store.scm:
  2017:24 24 (run-with-store #<store-connection 256.99 7f1910e0eeb0> #<procedure 7f1910e4a880 at guix/gexp.scm:234:5 (state)> #:guile-for-build …)
   1851:8 23 (_ _)
In guix/packages.scm:
   1390:5 22 (_ _)
In guix/store.scm:
  1886:38 21 (_ #<store-connection 256.99 7f1910e6af50>)
In guix/packages.scm:
   966:16 20 (package-derivation _ #<package guile <at> 3.0.2 guix/build-system/gnu.scm:143 7f1910e480a0> _ #:graft? _)
  1285:22 19 (thunk)
  1218:25 18 (bag->derivation #<store-connection 256.99 7f1910e6af50> #<<bag> name: "guile-3.0.2" system: "x86_64-linux" target: #f build-inp…> …)
In srfi/srfi-1.scm:
   586:17 17 (map1 (("source" #<origin "mirror://gnu/guile/guile-3.0.2.tar.xz" kpch2mqfgpeaumkfvw6yhyklxyihybcbygfiwikp6ieetmukt6fa ("/gn…>) …))
In guix/packages.scm:
   1028:5 16 (expand-input _ _ _ _ _)
In ice-9/boot-9.scm:
  1736:10 15 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In guix/packages.scm:
  1033:18 14 (_)
In guix/store.scm:
  2017:24 13 (run-with-store #<store-connection 256.99 7f1910e6af50> #<procedure 7f1910e684c0 at guix/gexp.scm:234:5 (state)> #:guile-for-build …)
   1851:8 12 (_ _)
In guix/gexp.scm:
    961:2 11 (_ _)
    821:2 10 (_ _)
In guix/store.scm:
  1899:12  9 (_ #<store-connection 256.99 7f1910e6af50>)
   1336:2  8 (map/accumulate-builds #<store-connection 256.99 7f1910e6af50> _ _)
In srfi/srfi-1.scm:
   586:17  7 (map1 ((#<package bootstrap-binaries <at> 0 gnu/packages/bootstrap.scm:212 7f191a8f5500> "out") ("/gnu/store/a7s2cq1by31wzqqas967x…") …))
In guix/store.scm:
   1295:8  6 (call-with-build-handler #<procedure build-accumulator (continue store things mode)> _)
  2017:24  5 (run-with-store #<store-connection 256.99 7f1910e6af50> #<procedure 7f1910ebfb00 at guix/gexp.scm:691:8 (state)> #:guile-for-build …)
In guix/gexp.scm:
   693:18  4 (_ _)
In ice-9/boot-9.scm:
  1669:16  3 (raise-exception _ #:continuable? _)
  1667:16  2 (raise-exception _ #:continuable? _)
  1667:16  1 (raise-exception _ #:continuable? _)
  1669:16  0 (raise-exception _ #:continuable? _)
scheme@(guix-user) [1]> ,fr 7
In srfi/srfi-1.scm:
   586:17  7 (map1 ((#<package bootstrap-binaries <at> 0 gnu/packages/bootstrap.scm:212 7f191a8f5500> "out") ("/gnu/store/a7s2cq1by31wzqqas967x…") …))
scheme@(guix-user) [1]> ,locals
  Local variables:
  $1 = closure = #<procedure 7f1910e83270 at guix/store.scm:1337:9 (obj)>
  $2 = l = ((#<package bootstrap-binaries <at> 0 gnu/packages/bootstrap.scm:212 7f191a8f5500> "out") ("/gnu/store/a7s2cq1by31wzqqas967x3g1si4wbj0…") …)
scheme@(guix-user) [1]> (define b (caar $2))
scheme@(guix-user) [1]> ,pp b
$3 = #<package bootstrap-binaries <at> 0 gnu/packages/bootstrap.scm:212 7f191a8f5500>
scheme@(guix-user) [1]> (with-store store (package-derivation store b))
$4 = #<derivation /gnu/store/c6hgmfq0i4zgryqyl0ab1ms51fnrkmdv-bootstrap-binaries-0.drv => /gnu/store/5bdaayvl6cs8nrdivskz4dbrsy2m009c-bootstrap-binaries-0 7f1910e6a6e0>
scheme@(guix-user) [1]> (map $1 $2)
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
Throw to key `match-error' with args `("match" "no matching pattern" #<derivation /gnu/store/c6hgmfq0i4zgryqyl0ab1ms51fnrkmdv-bootstrap-binaries-0.drv => /gnu/store/5bdaayvl6cs8nrdivskz4dbrsy2m009c-bootstrap-binaries-0 7fd8a7ac66e0>)'.

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guix-user) [2]> ,bt
In ice-9/boot-9.scm:
   222:17  4 (map1 ((#<package bootstrap-binaries <at> 0 gnu/packages/bootstrap.scm:212 7fd8b150e500> "out") ("/gnu/store/a7s2cq1by31wzqqas967x…") …))
In guix/store.scm:
   1295:8  3 (call-with-build-handler #<procedure build-accumulator (continue store things mode)> _)
  2017:24  2 (run-with-store #<store-connection 256.99 7fd8a7ac6f50> #<procedure 7fd8a677e2a0 at guix/gexp.scm:691:8 (state)> #:guile-for-build …)
In guix/gexp.scm:
   693:18  1 (_ _)
In ice-9/boot-9.scm:
  1669:16  0 (raise-exception _ #:continuable? _)
scheme@(guix-user) [2]> ,locals
  Local variables:
  $5 = closure = #<procedure raise-exception (exn #:key continuable?)>
scheme@(guix-user) [2]> ,fr 4
In ice-9/boot-9.scm:
   222:17  4 (map1 ((#<package bootstrap-binaries <at> 0 gnu/packages/bootstrap.scm:212 7fd8b150e500> "out") ("/gnu/store/a7s2cq1by31wzqqas967x…") …))
scheme@(guix-user) [2]> ,locals
  Local variables:
  $6 = closure = #<procedure 7fd8a7adf090 at guix/store.scm:1337:9 (obj)>
  $7 = l = ((#<package bootstrap-binaries <at> 0 gnu/packages/bootstrap.scm:212 7fd8b150e500> "out") ("/gnu/store/a7s2cq1by31wzqqas967x3g1si4wbj0…") …)
scheme@(guix-user) [2]> ($6 (car $7))
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
Throw to key `match-error' with args `("match" "no matching pattern" #<derivation /gnu/store/c6hgmfq0i4zgryqyl0ab1ms51fnrkmdv-bootstrap-binaries-0.drv => /gnu/store/5bdaayvl6cs8nrdivskz4dbrsy2m009c-bootstrap-binaries-0 7fd8a7ac66e0>)'.

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guix-user) [3]> ,bt
In guix/store.scm:
   1295:8  3 (call-with-build-handler #<procedure build-accumulator (continue store things mode)> _)
  2017:24  2 (run-with-store #<store-connection 256.99 7fd8a7ac6f50> #<procedure 7fd8a6ab0280 at guix/gexp.scm:691:8 (state)> #:guile-for-build …)
In guix/gexp.scm:
   693:18  1 (_ _)
In ice-9/boot-9.scm:
  1669:16  0 (raise-exception _ #:continuable? _)
scheme@(guix-user) [3]> ,fr 3
In guix/store.scm:
   1295:8  3 (call-with-build-handler #<procedure build-accumulator (continue store things mode)> _)
scheme@(guix-user) [3]> ,locals
  Local variables:
  $8 = closure = #<variable 7fd8b321a830 value: #<<parameter> 7fd8b3232ac0 proc: #<procedure 7fd8b321b2a0 at ice-9/boot-9.scm:1299:5 () | (x)>>>
  $9 = handler = #<procedure build-accumulator (continue store things mode)>
scheme@(guix-user) [3]> ,fr 2
In guix/store.scm:
  2017:24  2 (run-with-store #<store-connection 256.99 7fd8a7ac6f50> #<procedure 7fd8a6ab0280 at guix/gexp.scm:691:8 (state)> #:guile-for-build …)
scheme@(guix-user) [3]> ,locals
  Local variables:
  $10 = closure = #<procedure run-with-store (store mval #:key guile-for-build system target)>
  $11 = store = #<store-connection 256.99 7fd8a7ac6f50>
  $12 = mval = #<procedure 7fd8a6ab0280 at guix/gexp.scm:691:8 (state)>
  $13 = t-10a3c941d34314a1-5734 = #<<parameter> 7fd8b36b7780 proc: #<procedure 7fd8b36be1e0 at ice-9/boot-9.scm:1299:5 () | (x)>>
  $14 = word = 0
  $15 = t-10a3c941d34314a1-573e = #<fluid 7fd8b36c52b0>
  $16 = mask = 4
While executing meta-command:
In procedure frame-local-ref: Wrong type argument in position 3: ptr
scheme@(guix-user) [3]> (car $7)
$17 = (#<package bootstrap-binaries <at> 0 gnu/packages/bootstrap.scm:212 7fd8b150e500> "out")
scheme@(guix-user) [3]> $6
$18 = #<procedure 7fd8a7adf090 at guix/store.scm:1337:9 (obj)>
--8<---------------cut here---------------end--------------->8---


Bah, I have not idea.  Does it come from

--8<---------------cut here---------------start------------->8---
(define (map/accumulate-builds store proc lst)
  "Apply PROC over each element of LST, accumulating 'build-things' calls and
coalescing them into a single call."
  (define result
    (map (lambda (obj)
           (with-build-handler build-accumulator
             (proc obj)))
         lst))
[...]
--8<---------------cut here---------------end--------------->8---

where line 1337 is the one with ’(map (lambda (obj)’?


Well, it is weird, isn’t?  I am lacking some magical trick to
investigate more.  Any ideas?


Cheers,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#55639; Package guix. (Wed, 01 Jun 2022 09:46:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 55639 <at> debbugs.gnu.org
Subject: Re: bug#55639: time-machine back in 2020: weird error
Date: Wed, 01 Jun 2022 11:44:48 +0200
Hi,

zimoun <zimon.toutoune <at> gmail.com> skribis:

> On mar., 31 mai 2022 at 16:32, Ludovic Courtès <ludo <at> gnu.org> wrote:
>
>> $ guix time-machine --commit=a7b20226b2 -- build hello
>> guile: warning: failed to install locale
>> /gnu/store/a462kby1q51ndvxdv3b6p0rsixxrgx1h-hello-2.10
>
> It works on all of my machine except my newest one…
>
>>> Last, on machine B, the time-machine just works.  Maybe it is related to
>>> NVMe and something like [1].
>
> …and what is different between all my machines and the newest one?

I don’t think it has anything to do with that.  Seems more like a
problem in our code that would only manifest under special
circumstances—we just need to find out what makes them special.  :-)

> $ guix time-machine --commit=a7b20226b2 -- repl -q
> guile: warning: failed to install locale
> GNU Guile 3.0.2
> Copyright (C) 1995-2020 Free Software Foundation, Inc.
>
> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
> This program is free software, and you are welcome to redistribute it
> under certain conditions; type `,show c' for details.
>
> Enter `,help' for help.
> scheme@(guix-user)> (use-modules (guix store) (guix packages) (gnu packages base))
> scheme@(guix-user)> (with-store store (package-derivation store hello))
> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
> Throw to key `match-error' with args `("match" "no matching pattern" #<derivation /gnu/store/c6hgmfq0i4zgryqyl0ab1ms51fnrkmdv-bootstrap-binaries-0.drv => /gnu/store/5bdaayvl6cs8nrdivskz4dbrsy2m009c-bootstrap-binaries-0 7f131ff71be0>)'.
>
> Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
> scheme@(guix-user) [1]> ,bt
> In ice-9/boot-9.scm:
>   1736:10 27 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
> In guix/store.scm:
>    630:22 26 (thunk)
> In guix/packages.scm:
>    966:16 25 (package-derivation _ #<package hello <at> 2.10 gnu/packages/base.scm:74 7f131fcbb000> _ #:graft? _)
>   1285:22 24 (thunk)
>   1218:25 23 (bag->derivation #<store-connection 256.99 7f131feb4500> #<<bag> name: "hello-2.10" system: "x86_64-linux" target: #f build-inputs: (("sour…> …)
> In srfi/srfi-1.scm:
>    586:29 22 (map1 (("source" #<origin "mirror://gnu/hello/hello-2.10.tar.gz" ghqgme32sythn2e7nhi3mu4c32k2p335sffyzokw6qpkolqpkfvq () 7f131fcb9000>) (…) …))
>    586:17 21 (map1 (("tar" #<package tar <at> 1.32 guix/build-system/gnu.scm:143 7f131ff2ff00>) ("gzip" #<package gzip <at> 1.10 guix/build-system/gnu.scm:143…>) …))
> In guix/packages.scm:
>   1009:16 20 (expand-input #<store-connection 256.99 7f131feb4500> #<package hello <at> 2.10 gnu/packages/base.scm:74 7f131fcbb000> ("tar" #<package tar <at> 1.…>) …)
>    966:16 19 (package-derivation _ #<package tar <at> 1.32 guix/build-system/gnu.scm:143 7f131ff2ff00> _ #:graft? _)
>   1285:22 18 (thunk)
>   1218:25 17 (bag->derivation #<store-connection 256.99 7f131feb4500> #<<bag> name: "tar-1.32" system: "x86_64-linux" target: #f build-inputs: (("source…> …)
> In srfi/srfi-1.scm:
>    586:17 16 (map1 (("source" #<origin "mirror://gnu/tar/tar-1.32.tar.xz" 2dj24b7ramzdx2ajxq7kydomhbwvfrjgesm74bkrdlchrcxr7xma ("/gnu/store/p4lmsp0k…>) …))
> In guix/packages.scm:
>    1028:5 15 (expand-input _ _ _ _ _)
> In ice-9/boot-9.scm:
>   1736:10 14 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
> In guix/packages.scm:
>   1033:18 13 (_)
> In guix/store.scm:
>   2017:24 12 (run-with-store #<store-connection 256.99 7f131feb4500> #<procedure 7f131ff3d400 at guix/gexp.scm:234:5 (state)> #:guile-for-build _ #:system …)
>    1851:8 11 (_ _)
> In guix/gexp.scm:
>     961:2 10 (_ _)
>     821:2  9 (_ _)
> In guix/store.scm:
>   1899:12  8 (_ #<store-connection 256.99 7f131feb4500>)
>    1336:2  7 (map/accumulate-builds #<store-connection 256.99 7f131feb4500> _ _)
> In srfi/srfi-1.scm:
>    586:17  6 (map1 ((#<package bootstrap-binaries <at> 0 gnu/packages/bootstrap.scm:212 7f132c44ae60> "out") ("/gnu/store/3vcinqz2z8j8n78jd83xxbh2bb15mxxw…") …))
> In guix/store.scm:
>    1295:8  5 (call-with-build-handler #<procedure build-accumulator (continue store things mode)> _)
>   2017:24  4 (run-with-store #<store-connection 256.99 7f131feb4500> #<procedure 7f131ff92d20 at guix/gexp.scm:691:8 (state)> #:guile-for-build _ #:system …)
> In guix/gexp.scm:
>    693:18  3 (_ _)
> In ice-9/boot-9.scm:
>   1669:16  2 (raise-exception _ #:continuable? _)
>   1667:16  1 (raise-exception _ #:continuable? _)
>   1669:16  0 (raise-exception _ #:continuable? _)
> scheme@(guix-user) [1]>
>
> Let me know what could be useful to debug this?

That looks like <https://issues.guix.gnu.org/53594>.  I don’t have a
good hypothesis for that yet, but I’m guessing it’s stateful: the bug
manifests if some things are missing from the store.

Could you try:

  guix time-machine --commit=a7b20226b2 -- build hello --no-grafts

If it works, does the same command without ‘--no-grafts’ work
afterwards?

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#55639; Package guix. (Wed, 01 Jun 2022 14:06:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 55639 <at> debbugs.gnu.org
Subject: Re: bug#55639: time-machine back in 2020: weird error
Date: Wed, 01 Jun 2022 16:04:49 +0200
Hi Ludo,

On mer., 01 juin 2022 at 11:44, Ludovic Courtès <ludo <at> gnu.org> wrote:

> I don’t think it has anything to do with that.  Seems more like a
> problem in our code that would only manifest under special
> circumstances—we just need to find out what makes them special.  :-)

[...]

> That looks like <https://issues.guix.gnu.org/53594>.  I don’t have a
> good hypothesis for that yet, but I’m guessing it’s stateful: the bug
> manifests if some things are missing from the store.

Another data point.  Recompile a7b20226b2 using recent Guile.

--8<---------------cut here---------------start------------->8---
$ guix describe
Generation 3	mai 10 2022 22:44:08	(current)
  guix 9d795fb
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 9d795fb8fd3feffe584462cdfe3869acee64d226
$ git log --oneline -1
a7b20226b2 (HEAD -> old-a7b20226b2) gnu: python-libmpsse: Update to 1.4.1.

$ guix shell -D guix --container
[env]$ ./bootstrap && ./configure --localstatedir=/var && make scripts/guix make-go -j32
[env]$ exit
exit

$ guix shell -D guix --pure
[env]$ ./pre-inst-env guix describe
Git checkout:
  repository: /home/simon/src/guix/guix
  branch: old-a7b20226b2
  commit: a7b20226b2bf1a73b8f0f6536e7fa43326f35e33
[env]$ ./pre-inst-env guix build hello
/gnu/store/a462kby1q51ndvxdv3b6p0rsixxrgx1h-hello-2.10
--8<---------------cut here---------------end--------------->8---


> Could you try:
>
>   guix time-machine --commit=a7b20226b2 -- build hello --no-grafts
>
> If it works, does the same command without ‘--no-grafts’ work
> afterwards?

It does not work when using no-grafts.  However, a big ’guix gc’ makes
it work.  It is really weird.  Note that the previous pre-inst-env is
done before GC.

Well, I have not been enough attentive to correctly save the problematic
part.  Now, I am unable to reproduce. )-:


It is hard to know what had been initially substituted and what had been
locally recompiled.  I mean, today and after GC, it looks like,

--8<---------------cut here---------------start------------->8---
0,4 MB will be downloaded
 module-import-compiled  99KiB        597KiB/s 00:00 [##################] 100.0%
 libfontenc-1.1.4  13KiB              2.3MiB/s 00:00 [##################] 100.0%
 module-import-compiled  56KiB        601KiB/s 00:00 [##################] 100.0%
 mkfontscale-1.2.1  20KiB             3.7MiB/s 00:00 [##################] 100.0%
 module-import-compiled  116KiB       860KiB/s 00:00 [##################] 100.0%
 mkfontdir-1.0.7  4KiB                3.3MiB/s 00:00 [##################] 100.0%
 module-import-compiled  9KiB         2.9MiB/s 00:00 [##################] 100.0%
 module-import-compiled  56KiB        853KiB/s 00:00 [##################] 100.0%
 module-import-compiled  46KiB        1.1MiB/s 00:00 [##################] 100.0%
building /gnu/store/splvvik624s9nyxysz6b1970pq5hy4gp-config.scm.drv...
building /gnu/store/w3229vmzf5620pkcn785xfw1ahl3jhri-config.scm.drv...
building /gnu/store/lhrdcca79hjjnmhz25bgzmg1a9hc3j7i-guix-config-source.drv...
building /gnu/store/i63lwisk345si6552rwyry3pfaa6wqij-guix-core-source.drv...
building /gnu/store/hsskiqmzd6822jxqday78kqabi0m3dj6-guix-config.drv...
building /gnu/store/dhxdn4wc1rdw13cmy8b20qc23vgvirvc-guix-core.drv...
[...]
--8<---------------cut here---------------end--------------->8---

all these derivations are locally built and I do not know what happened
a couple of days ago.  If these had been substituted and if the
substitutes had something incompatible with my hardware for whatever
reason, then weird behaviour.  Hum, too many if. :-)


Cheers,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#55639; Package guix. (Sun, 05 Mar 2023 20:32:02 GMT) Full text and rfc822 format available.

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

From: Nicolò Balzarotti <nicolo.balzarotti <at> iit.it>
To: <55639 <at> debbugs.gnu.org>
Subject: time-machine back in 2020: weird error
Date: Sun, 5 Mar 2023 21:31:38 +0100
Hi, I think I'm experiencing the same issue.
I need opencv 3.4, found a commit with it 
(63856931dbe1e72311b472347331ce1c16b0de0b)

On two machines
> guix describe:
 guix eb87d2c

> guix describe:
 guix 59b102c

guix time-machine --commit=63856931dbe1e72311b472347331ce1c16b0de0b -- 
build opencv

Computing Guix derivation for 'x86_64-linux'... Backtrace:
          5-(primitive-load 
"/gnu/store/d5llsvv8g1idnm87q7cs4r5a4s0…")
In ice-9/eval.scm:
   155:9 4 (_ _)
   159:9 3 (_ #(#(#(#(#(#(#(#(#(#(#(…) …) …) …) …) …) …) 
…) …) …) …))
  173:47 2 (_ #(#(#(#(#(#(#(#(#(#(#(…) …) …) …) …) …) …) 
…) …) …) …))
In ./guix/self.scm:
   914:4 1 (guix-derivation "/gnu/store/hp2afllp9vsp4kmr67nrhr8ig…" 
…)
   885:2 0 (guile-for-build "3.0")

./guix/self.scm:885:2: In procedure guile-for-build:
Throw to key `match-error' with args `("match" "no matching pattern" 
"3.0")'.
guix time-machine: error: You found a bug: the program 
'/gnu/store/d5llsvv8g1idnm87q7cs4r5a4s0kxyap-compute-guix-derivation'
failed to compute the derivation for Guix (version: 
"63856931dbe1e72311b472347331ce1c16b0de0b"; system: "x86_64-linux";
host version: "59b102cab9d66ba0c561ed9ed8df04f9fc340bd2"; pull-version: 
1).
Please report it by email to <bug-guix <at> gnu.org>.


Same happens with --no-grafts, on both machines.

Any idea on what is causing it?

Thanks!






This bug report was last modified 2 years and 157 days ago.

Previous Next


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