time-machine failure

  • Done
  • quality assurance status badge
Details
3 participants
  • Jan Nieuwenhuizen
  • Ludovic Courtès
  • zimoun
Owner
unassigned
Submitted by
Ludovic Courtès
Severity
normal
L
L
Ludovic Courtès wrote on 29 May 2020 12:01
(address . bug-guix@gnu.org)
87y2pb3vr7.fsf@inria.fr
Toggle snippet (57 lines)
$ guix time-machine --commit=ab0ede51c041927a1c35535aec3504f84d7a9751 -- environment --ad-hoc hello -- hello
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
La jenaj derivoj estos konstruataj:
/gnu/store/srb3liyzg9483ry5j1sdknkp2irzf6rm-compute-guix-derivation.drv
/gnu/store/92nj92vkk6galkw0kikxy2fzs9n7rr27-module-import-compiled.drv
/gnu/store/g14w05zd4lhc4qiqbcmrqznkhh4g9x06-module-import.drv
building /gnu/store/g14w05zd4lhc4qiqbcmrqznkhh4g9x06-module-import.drv...
building /gnu/store/92nj92vkk6galkw0kikxy2fzs9n7rr27-module-import-compiled.drv...
building /gnu/store/srb3liyzg9483ry5j1sdknkp2irzf6rm-compute-guix-derivation.drv...
;;; WARNING: loading compiled file /gnu/store/63819s86xv37kps3v42qsfvw5flsay0z-module-import-compiled/guix/store.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode kind
;;; WARNING: loading compiled file /gnu/store/63819s86xv37kps3v42qsfvw5flsay0z-module-import-compiled/guix/store.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode kind
;;; WARNING: loading compiled file /gnu/store/63819s86xv37kps3v42qsfvw5flsay0z-module-import-compiled/guix/utils.go failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode kind
;;; WARNING: loading compiled file /gnu/store/63819s86xv37kps3v42qsfvw5flsay0z-module-import-compiled/guix/utils.go failed:

[...]

Backtrace:
In ice-9/eval.scm:
293:34 19 (_ #(#(#(#<directory (guix packages) 7ffa43f1c8c0> ?)) ?))
293:34 18 (_ #(#(#(#(#<directory (guix packages) 7ffa43?>) ?) ?) ?))
In srfi/srfi-1.scm:
592:17 17 (map1 (("source" #<origin "mirror://gnu/guile/guil?>) ?))
In ice-9/boot-9.scm:
829:9 16 (catch srfi-34 #<procedure 7ffa384d1480 at ice-9/eval.?> ?)
In ice-9/eval.scm:
159:9 15 (_ #(#(#<directory (guix packages) 7ffa43f1c8c0> "s?" ?)))
In ice-9/boot-9.scm:
152:2 14 (with-fluid* _ _ _)
152:2 13 (with-fluid* _ _ _)
152:2 12 (with-fluid* _ _ _)
In unknown file:
11 (_ #<procedure 7ffa384d5dc0 at ice-9/eval.scm:330:13 ()> ?)
10 (_ #<procedure 7ffa38544800 at ice-9/eval.scm:330:13 ()> ?)
9 (_ #<procedure 7ffa38005180 at ice-9/eval.scm:330:13 ()> ?)
8 (_ #<procedure 7ffa37ce8420 at ice-9/eval.scm:330:13 ()> ?)
7 (_ #<procedure 7ffa37d21440 at ice-9/eval.scm:330:13 ()> ?)
6 (_ #<procedure 7ffa37d35340 at ice-9/eval.scm:330:13 ()> ?)
5 (_ #<procedure 7ffa37d37ca0 at ice-9/eval.scm:330:13 ()> ?)
4 (_ #<procedure 7ffa37d37c40 at ice-9/eval.scm:330:13 ()> ?)
In ice-9/eval.scm:
191:27 3 (_ #(#(#<directory (guix store) 7ffa4631f960> #<pr?>) ?))
196:35 2 (_ #(#(#(#<directory (guix store) 7ffa4631f960> ?) #) #))
293:34 1 (_ #(#(#(#(#(#(#(#<directory (guix g?>) ?) ?) ?) ?) ?) ?))
In unknown file:
0 (force #<promise #<procedure 7ffa44951ea0 at ice-9/eval?>)

ERROR: In procedure force:
In procedure canonicalize-path: No such file or directory: "build/utils.scm"
guix time-machine: error: You found a bug: the program '/gnu/store/hk4bcnsyb9fzviqh90768ss63q7cpmr2-compute-guix-derivation'
failed to compute the derivation for Guix (version: "ab0ede51c041927a1c35535aec3504f84d7a9751"; system: "x86_64-linux";
host version: "9744cc7b4636fafb772c94adb8f05961b5b39f16"; pull-version: 1).
Please report it by email to <bug-guix@gnu.org>.
Z
Z
zimoun wrote on 29 May 2020 12:45
(name . Ludovic Courtès)(address . ludovic.courtes@inria.fr)(address . 41595@debbugs.gnu.org)
CAJ3okZ2sfm24u+zQOUFtA7+s6KcK0RNf2ajpg2nD4CgC=QSd5w@mail.gmail.com
Hi Ludo,

On Fri, 29 May 2020 at 12:02, Ludovic Courtès <ludovic.courtes@inria.fr> wrote:

Toggle quote (3 lines)
> failed to compute the derivation for Guix (version: "ab0ede51c041927a1c35535aec3504f84d7a9751"; system: "x86_64-linux";
> host version: "9744cc7b4636fafb772c94adb8f05961b5b39f16"; pull-version: 1).

Toggle snippet (7 lines)
$ guix describe
Generation 26 May 29 2020 10:40:31 (current)
guix 0d371c6
repository URL: https://git.savannah.gnu.org/git/guix.git
commit: 0d371c633f7308cfde2432d6119d386a5c63198c

After some warnings,

Toggle snippet (15 lines)
Computing Guix derivation for 'x86_64-linux'... WARNING: (guix build
emacs-build-system): imported module (guix build utils) overrides core
binding `delete'
;;; Failed to autoload boost in (gnu packages boost):
;;; Throw to key `unbound-variable' with args `("resolve-interface"
"no binding `~A' in module ~A" (boost (gnu packages boost)) #f)'.
;;; Failed to autoload boost in (gnu packages boost):
;;; Throw to key `unbound-variable' with args `("resolve-interface"
"no binding `~A' in module ~A" (boost (gnu packages boost)) #f)'.
WARNING: (gnu packages crypto): imported module (guix build utils)
overrides core binding `delete'
WARNING: (gnu packages databases): imported module (guix build utils)
overrides core binding `delete'

it completes and display "Hello, world!". Well, the commit 0d371c6 is
one day older than the one you used 9744cc7.


Then, let pull the same faulty version

guix pull --commit=9744cc7 -p /tmp/new

and re-run the time-machine using '/tmp/new/bin/guix'. It completes too.


Do not know if it helps.

Cheers,
simon
J
J
Jan Nieuwenhuizen wrote on 29 May 2020 14:03
(name . Ludovic Courtès)(address . ludovic.courtes@inria.fr)(address . 41595@debbugs.gnu.org)
871rn33q3o.fsf@gnu.org
Ludovic Courtès writes:

Toggle quote (2 lines)
> $ guix time-machine --commit=ab0ede51c041927a1c35535aec3504f84d7a9751 -- environment --ad-hoc hello -- hello

[..]

Toggle quote (2 lines)
> Backtrace:

Yes, that's what I get.

After pulling back to (April 24th)

Toggle snippet (7 lines)
$ guix describe
Generation 53 May 29 2020 12:53:10 (current)
guix 2520059
repository URL: https://git.savannah.gnu.org/git/guix.git
commit: 2520059bdb43fa1663ce102f3f4c442d4918c32b

it works again

Toggle snippet (7 lines)
14:02:31 janneke@dundal:~/src/guix/master [env]
$ guix time-machine --commit=ab0ede51c041927a1c35535aec3504f84d7a9751 -- environment --ad-hoc hello -- hello
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
guile: warning: failed to install locale
Hello, world!

Janneke

--
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com| Avatar® http://AvatarAcademy.com
L
L
Ludovic Courtès wrote on 29 May 2020 18:34
(name . zimoun)(address . zimon.toutoune@gmail.com)(address . 41595-done@debbugs.gnu.org)
87v9kezon4.fsf@inria.fr
Hi,

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

Toggle quote (3 lines)
> it completes and display "Hello, world!". Well, the commit 0d371c6 is
> one day older than the one you used 9744cc7.

During that interval, I see two potential culprits:

01611d141e quirks: Add patch for https://bugs.gnu.org/41214.
9db8836916 channels: 'build-from-source' restores '%guile-for-build'.

This is fixed by 36640207c9543e48cd6daa92930f023f80065a5d, which also
fixes the “incompatible bytecode” warnings.

Toggle quote (6 lines)
> Then, let pull the same faulty version
>
> guix pull --commit=9744cc7 -p /tmp/new
>
> and re-run the time-machine using '/tmp/new/bin/guix'. It completes too.

That’s because the inferior for that commit is cached in
~/.cache/guix/inferiors. That “hides” the problem.

Thanks, comrades!

Ludo’.
Closed
J
J
Jan Nieuwenhuizen wrote on 29 May 2020 18:43
(address . 41595@debbugs.gnu.org)(address . ludovic.courtes@inria.fr)
87mu5qsnd9.fsf@gnu.org
Ludovic Courtès writes:

Hello!

Toggle quote (13 lines)
> zimoun <zimon.toutoune@gmail.com> skribis:
>
>> it completes and display "Hello, world!". Well, the commit 0d371c6 is
>> one day older than the one you used 9744cc7.
>
> During that interval, I see two potential culprits:
>
> 01611d141e quirks: Add patch for <https://bugs.gnu.org/41214>.
> 9db8836916 channels: 'build-from-source' restores '%guile-for-build'.
>
> This is fixed by 36640207c9543e48cd6daa92930f023f80065a5d, which also
> fixes the “incompatible bytecode” warnings.

Beautiful, thank you!

Toggle quote (2 lines)
> Thanks, comrades!

Yeah, indeed :-)

Janneke

--
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com| Avatar® http://AvatarAcademy.com
Z
Z
zimoun wrote on 29 May 2020 18:49
(name . Ludovic Courtès)(address . ludovic.courtes@inria.fr)(address . 41595-done@debbugs.gnu.org)
CAJ3okZ3xbBMkWPf1iPaE81EdfGfWJtg1VWFQ5bfVVLA=KgDjsA@mail.gmail.com
Hey!

On Fri, 29 May 2020 at 18:34, Ludovic Courtès <ludovic.courtes@inria.fr> wrote:

Toggle quote (8 lines)
> During that interval, I see two potential culprits:
>
> 01611d141e quirks: Add patch for <https://bugs.gnu.org/41214>.
> 9db8836916 channels: 'build-from-source' restores '%guile-for-build'.
>
> This is fixed by 36640207c9543e48cd6daa92930f023f80065a5d, which also
> fixes the “incompatible bytecode” warnings.

Cool!


Toggle quote (7 lines)
> > guix pull --commit=9744cc7 -p /tmp/new
> >
> > and re-run the time-machine using '/tmp/new/bin/guix'. It completes too.
>
> That’s because the inferior for that commit is cached in
> ~/.cache/guix/inferiors. That “hides” the problem.

Good to know. Thank you for the explanation.
So if I would like to reproduce using this strategy, before the new
pull, I should have to "garbage collect" to remove this cache, right?


Cheers,
simon
Closed
L
L
Ludovic Courtès wrote on 29 May 2020 20:58
(name . zimoun)(address . zimon.toutoune@gmail.com)(address . 41595-done@debbugs.gnu.org)
874kryy3eq.fsf@inria.fr
zimoun <zimon.toutoune@gmail.com> skribis:

Toggle quote (7 lines)
>> That’s because the inferior for that commit is cached in
>> ~/.cache/guix/inferiors. That “hides” the problem.
>
> Good to know. Thank you for the explanation.
> So if I would like to reproduce using this strategy, before the new
> pull, I should have to "garbage collect" to remove this cache, right?

Yeah, you can rm ~/.cache/guix/inferiors/* to be sure.

Ludo’.
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 41595@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 41595
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch