GNU bug report logs - #34637
inferiors example yields error from guix package

Previous Next

Package: guix;

Reported by: Martin Flack <martin.flack <at> gmail.com>

Date: Sun, 24 Feb 2019 00:40:02 UTC

Severity: normal

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 34637 in the body.
You can then email your comments to 34637 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#34637; Package guix. (Sun, 24 Feb 2019 00:40:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Martin Flack <martin.flack <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 24 Feb 2019 00:40:02 GMT) Full text and rfc822 format available.

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

From: Martin Flack <martin.flack <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: inferiors example yields error from guix package
Date: Sat, 23 Feb 2019 16:16:54 -0800
[Message part 1 (text/plain, inline)]
I'm getting an error trying the example here:
https://www.gnu.org/software/guix/manual/en/html_node/Inferiors.html

```
(use-modules (guix inferior) (guix channels)
             (srfi srfi-1))   ;for 'first'

(define channels
  ;; This is the old revision from which we want to
  ;; extract guile-json.
  (list (channel
         (name 'guix)
         (url "https://git.savannah.gnu.org/git/guix.git")
         (commit
          "65956ad3526ba09e1f7a40722c96c6ef7c0936fe"))))

(define inferior
  ;; An inferior representing the above revision.
  (inferior-for-channels channels))

;; Now create a manifest with the current "guile" package
;; and the old "guile-json" package.
(packages->manifest
 (list (first (lookup-inferior-packages inferior "guile-json"))
       (specification->package "guile")))
```

```
$ guix --version
guix (GNU Guix) 0964671086fb9e372894e788038aee75098e61a6
Copyright (C) 2019 the Guix authors
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
```

```
$ guix package -n -m example-inferior.scm
Updating channel 'guix' from Git repository at '
https://git.savannah.gnu.org/git/guix.git'...
Computing Guix derivation for 'x86_64-linux'... |
substitute: updating substitutes from 'https://bayfront.guixsd.org'...
100.0%
The following derivation will be built:
   /gnu/store/zxrm9a410iywcdm71crjbg2j4ggpvdbv-profile.drv
The following profile hook will be built:
   /gnu/store/gkhfa4z16x4336pbi1ha7njgdpm680yf-guix-package-cache.drv
guix package: error: exception thrown: #<condition &store-protocol-error
[message: "build of
`/gnu/store/zxrm9a410iywcdm71crjbg2j4ggpvdbv-profile.drv' failed" status:
100] 1f80de0>
```

I'm running guix on ubuntu 18.04.2.

I noticed bug 34402 was similar - I think I'm at the latest version of guix
today.

-- 

Martin
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#34637; Package guix. (Wed, 06 Mar 2019 13:47:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Martin Flack <martin.flack <at> gmail.com>
Cc: 34637 <at> debbugs.gnu.org
Subject: Re: bug#34637: inferiors example yields error from guix package
Date: Wed, 06 Mar 2019 14:46:02 +0100
Hi Martin,

Martin Flack <martin.flack <at> gmail.com> skribis:

> I'm getting an error trying the example here:
> https://www.gnu.org/software/guix/manual/en/html_node/Inferiors.html

[...]

> $ guix package -n -m example-inferior.scm
> Updating channel 'guix' from Git repository at '
> https://git.savannah.gnu.org/git/guix.git'...
> Computing Guix derivation for 'x86_64-linux'... |
> substitute: updating substitutes from 'https://bayfront.guixsd.org'...
> 100.0%
> The following derivation will be built:
>    /gnu/store/zxrm9a410iywcdm71crjbg2j4ggpvdbv-profile.drv
> The following profile hook will be built:
>    /gnu/store/gkhfa4z16x4336pbi1ha7njgdpm680yf-guix-package-cache.drv
> guix package: error: exception thrown: #<condition &store-protocol-error
> [message: "build of
> `/gnu/store/zxrm9a410iywcdm71crjbg2j4ggpvdbv-profile.drv' failed" status:
> 100] 1f80de0>

Could you paste the file reported by:

  guix build --log-file /gnu/store/zxrm9a410iywcdm71crjbg2j4ggpvdbv-profile.drv

?

TIA,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#34637; Package guix. (Wed, 06 Mar 2019 20:34:01 GMT) Full text and rfc822 format available.

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

From: Martin Flack <martin.flack <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 34637 <at> debbugs.gnu.org
Subject: Re: bug#34637: inferiors example yields error from guix package
Date: Wed, 6 Mar 2019 12:33:17 -0800
[Message part 1 (text/plain, inline)]
That said there was no log file, but I've pulled since, so I pulled again
and redid the test.

``
$ guix --version
guix (GNU Guix) 3546e97f38bb4dfa4c016cd7a20d4add277ca8f7
Copyright (C) 2019 the Guix authors
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ guix package -n -m example-inferior.scm
Updating channel 'guix' from Git repository at '
https://git.savannah.gnu.org/git/guix.git'...
Computing Guix derivation for 'x86_64-linux'... \
substitute: updating substitutes from 'https://bayfront.guixsd.org'...
100.0%
The following derivation will be built:
   /gnu/store/b5qmqrs7fjd0w7zh5zgm4an21v1alich-profile.drv
The following profile hook will be built:
   /gnu/store/gkhfa4z16x4336pbi1ha7njgdpm680yf-guix-package-cache.drv
/guix package: error: exception thrown: #<condition &store-protocol-error
[message: "build of
`/gnu/store/b5qmqrs7fjd0w7zh5zgm4an21v1alich-profile.drv' failed" status:
100] 4a4c750>

$ guix build --log-file
/gnu/store/b5qmqrs7fjd0w7zh5zgm4an21v1alich-profile.drv
guix build: error: no build log for
'/gnu/store/b5qmqrs7fjd0w7zh5zgm4an21v1alich-profile.drv'
```

There is maybe an extra clue in guix environment output, regarding repl:

```
$ guix environment --ad-hoc -m example-inferior.scm

Updating channel 'guix' from Git repository at '
https://git.savannah.gnu.org/git/guix.git'...
Computing Guix derivation for 'x86_64-linux'... |
The following derivation will be built:
   /gnu/store/caqr64cryz42nh687mg8p7dnpjk3dhqn-profile.drv
The following profile hook will be built:
   /gnu/store/gkhfa4z16x4336pbi1ha7njgdpm680yf-guix-package-cache.drv
building path(s)
`/gnu/store/yd83jmcpivf6aqzbhx5qwv59fcv40wd9-guix-package-cache'
guix: repl: command not found
Try `guix --help' for more information.
Backtrace:
           1 (primitive-load "/gnu/store/fgxq3d1zix70k2acrrcg1yn9qj0?")
           0 (scm-error misc-error #f "~A ~S" ("inferior failed" #) #f)

ERROR: In procedure scm-error:
inferior failed "/gnu/store/2gln2fjds54kb97yxyz1mfa3hrrcrwlv-profile"
builder for
`/gnu/store/gkhfa4z16x4336pbi1ha7njgdpm680yf-guix-package-cache.drv' failed
with exit code 1
cannot build derivation
`/gnu/store/caqr64cryz42nh687mg8p7dnpjk3dhqn-profile.drv': 1 dependencies
couldn't be built
guix environment: error: exception thrown: #<condition
&store-protocol-error [message: "build of
`/gnu/store/caqr64cryz42nh687mg8p7dnpjk3dhqn-profile.drv' failed" status:
100] 52e43f0>
```


On Wed, Mar 6, 2019 at 5:46 AM Ludovic Courtès <ludo <at> gnu.org> wrote:

> Hi Martin,
>
> Martin Flack <martin.flack <at> gmail.com> skribis:
>
> > I'm getting an error trying the example here:
> > https://www.gnu.org/software/guix/manual/en/html_node/Inferiors.html
>
> [...]
>
> > $ guix package -n -m example-inferior.scm
> > Updating channel 'guix' from Git repository at '
> > https://git.savannah.gnu.org/git/guix.git'...
> > Computing Guix derivation for 'x86_64-linux'... |
> > substitute: updating substitutes from 'https://bayfront.guixsd.org'...
> > 100.0%
> > The following derivation will be built:
> >    /gnu/store/zxrm9a410iywcdm71crjbg2j4ggpvdbv-profile.drv
> > The following profile hook will be built:
> >    /gnu/store/gkhfa4z16x4336pbi1ha7njgdpm680yf-guix-package-cache.drv
> > guix package: error: exception thrown: #<condition &store-protocol-error
> > [message: "build of
> > `/gnu/store/zxrm9a410iywcdm71crjbg2j4ggpvdbv-profile.drv' failed" status:
> > 100] 1f80de0>
>
> Could you paste the file reported by:
>
>   guix build --log-file
> /gnu/store/zxrm9a410iywcdm71crjbg2j4ggpvdbv-profile.drv
>
> ?
>
> TIA,
> Ludo’.
>


-- 

Martin
[Message part 2 (text/html, inline)]

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Fri, 08 Mar 2019 11:36:01 GMT) Full text and rfc822 format available.

Notification sent to Martin Flack <martin.flack <at> gmail.com>:
bug acknowledged by developer. (Fri, 08 Mar 2019 11:36:01 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Martin Flack <martin.flack <at> gmail.com>
Cc: 34637-done <at> debbugs.gnu.org
Subject: Re: bug#34637: inferiors example yields error from guix package
Date: Fri, 08 Mar 2019 12:35:21 +0100
Hi,

Martin Flack <martin.flack <at> gmail.com> skribis:

> $ guix --version
> guix (GNU Guix) 3546e97f38bb4dfa4c016cd7a20d4add277ca8f7

[...]

> There is maybe an extra clue in guix environment output, regarding repl:
>
> ```
> $ guix environment --ad-hoc -m example-inferior.scm
>
> Updating channel 'guix' from Git repository at '
> https://git.savannah.gnu.org/git/guix.git'...
> Computing Guix derivation for 'x86_64-linux'... |
> The following derivation will be built:
>    /gnu/store/caqr64cryz42nh687mg8p7dnpjk3dhqn-profile.drv
> The following profile hook will be built:
>    /gnu/store/gkhfa4z16x4336pbi1ha7njgdpm680yf-guix-package-cache.drv
> building path(s)
> `/gnu/store/yd83jmcpivf6aqzbhx5qwv59fcv40wd9-guix-package-cache'
> guix: repl: command not found
> Try `guix --help' for more information.
> Backtrace:
>            1 (primitive-load "/gnu/store/fgxq3d1zix70k2acrrcg1yn9qj0?")
>            0 (scm-error misc-error #f "~A ~S" ("inferior failed" #) #f)
>
> ERROR: In procedure scm-error:
> inferior failed "/gnu/store/2gln2fjds54kb97yxyz1mfa3hrrcrwlv-profile"
> builder for
> `/gnu/store/gkhfa4z16x4336pbi1ha7njgdpm680yf-guix-package-cache.drv' failed
> with exit code 1

Oh, got it.

Commit 4035fcba93aaf551f4b5698045f025aa61287e17 fixes it, thank you!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 06 Apr 2019 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 22 days ago.

Previous Next


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