Subject: Re: bug#40824: core-updates: guix upgrade error: emacs-guix-0.5.2.drv failed

From: Marius Bakke <[email-masked]>
Date: Sat, 25 Apr 2020 00:16:31 +0200

sirgazil via Bug reports for GNU Guix <[email-masked]> writes:

> ## Steps to reproduce
>
> 1. guix pull --branch=core-updates
> 2. guix upgrade
>
>
> ## Expected result
>
> All packages in my profile are upgraded successfully.
>
>
> ## Unexpected result
>
> The upgrade failed with the following error:
>
> ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
> building /gnu/store/a6zgjg4j5mj4q19s9qxnns6jmah8z6ic-emacs-guix-0.5.2.tar.xz.drv...
> building /gnu/store/c153g1c5w34jb57m8687g0nzik9air34-guix-1.1.0-1.7dd0539.drv...
> - 'copy-bootstrap-guile' phasebuilder for `/gnu/store/c153g1c5w34jb57m8687g0nzik9air34-guix-1.1.0-1.7dd0539.drv' failed with exit code 1
> build of /gnu/store/c153g1c5w34jb57m8687g0nzik9air34-guix-1.1.0-1.7dd0539.drv failed
> View build log at '/var/log/guix/drvs/c1/53g1c5w34jb57m8687g0nzik9air34-guix-1.1.0-1.7dd0539.drv.bz2'.
> cannot build derivation `/gnu/store/1ngb3056zgcgixpis58y5qnkrg70yy55-emacs-guix-0.5.2.drv': 1 dependencies couldn't be built
> guix upgrade: error: build of `/gnu/store/1ngb3056zgcgixpis58y5qnkrg70yy55-emacs-guix-0.5.2.drv' failed
> ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
>
>
> The build log said:
>
> ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
> starting phase `copy-bootstrap-guile'
> Backtrace:
> In ice-9/boot-9.scm:
>   1736:10 10 (with-exception-handler _ _ #:unwind? _ # _)
> In unknown file:
>            9 (apply-smob/0 #<thunk 7ffff5cccaa0>)
> In ice-9/boot-9.scm:
>     718:2  8 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> In ice-9/eval.scm:
>     619:8  7 (_ #(#(#<directory (guile-user) 7ffff58e9f00>)))
> In ice-9/command-line.scm:
>    185:18  6 (_ #<input: string 7ffff58e4a10>)
> In unknown file:
>            5 (eval (begin (use-modules (guix)) (with-store store …)) #)
> In guix/store.scm:
>    625:15  4 (call-with-store #<procedure 7ffff30ff500 at ice-9/eval…>)
>     544:2  3 (open-connection _ #:port _ #:reserve-space? _ # _)
> In ice-9/boot-9.scm:
>   1736:10  2 (with-exception-handler _ _ #:unwind? _ # _)
> In guix/store.scm:
>    552:28  1 (_)
> In ice-9/boot-9.scm:
>   1669:16  0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
> ERROR:
>   1. &store-connection-error:
>       file: "/tmp/guix-tests/var/27130/daemon-socket/socket"
>       errno: 2
> command "./test-env" "guile" "-c" "(begin (use-modules (guix)) (with-store store (let* ((item (add-to-store store \"guile-2.0.9.tar.xz\" #f \"sha256\" \"/gnu/store/3aigj659vsjxcrhn0r0vmkbjh3kj5pbs-guile-2.0.9.tar.xz\")) (root (string-append \"/tmp/gc-root-\" (basename item)))) (symlink item root) (add-indirect-root store root))))" failed with status 1
> ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★

I'm closing this as a duplicate of #40828.

The CI was able to build Guix and Emacs-Guix, so not sure why it fails
on your machine!