Subject: bug#32821: guix pull error - from 20f8d73face564deec2f21130fb465c8c3d9a8e9 to 53c64d7c9303d52cbacdaca5d182175d472c53db

From: Danny Milosavljevic <[email-masked]>
Date: Tue, 25 Sep 2018 09:59:24 +0200

Hi Leo,
Hi Ludo,

On Mon, 24 Sep 2018 10:26:19 -0400
Leo Famulari <[email-masked]> wrote:

> On Mon, Sep 24, 2018 at 04:08:26PM +0200, Danny Milosavljevic wrote:
> > Building from this channel:  
> 
> [...]
> 
> > no code for module (guix config)
> > guix pull: error: You found a bug: the program '/gnu/store/njdhsdv216hyk23nfrc7wh9hbq17ymxk-compute-guix-derivation'
> > failed to compute the derivation for Guix (version: "53c64d7c9303d52cbacdaca5d182175d472c53db"; system: "x86_64-linux";
> > host version: "20f8d73face564deec2f21130fb465c8c3d9a8e9"; pull-version: 1).  
> 
> Discussed on #guix [0]:
> 
> [14:40:28] <civodul> hmm /gnu/store/njdhsdv216hyk23nfrc7wh9hbq17ymxk-compute-guix-derivation has no references
> [15:49:47] <civodul> if i rebuild compute-guix-derivation.drv locally, it gets a proper list of referenecs
> [15:52:40] <lfam> civodul: How do you figure out which drv it is?
> [15:52:52] <civodul> "guix gc --derivers ...-compute-guix-derivation"

$ ls -l /gnu/store/njdhsdv216hyk23nfrc7wh9hbq17ymxk-compute-guix-derivation
-r-xr-xr-x 2 root root 1855 Jan  1  1970 /gnu/store/njdhsdv216hyk23nfrc7wh9hbq17ymxk-compute-guix-derivation

$ guix gc --references /gnu/store/njdhsdv216hyk23nfrc7wh9hbq17ymxk-compute-guix-derivation
$ guix gc --derivers /gnu/store/njdhsdv216hyk23nfrc7wh9hbq17ymxk-compute-guix-derivation

/gnu/store/lbv2w8929xdniz4aih1hmwf2dz78d456-compute-guix-derivation.drv

$ guix gc
$ ls /gnu/store/njdhsdv216hyk23nfrc7wh9hbq17ymxk-compute-guix-derivation 
ls: cannot access '/gnu/store/njdhsdv216hyk23nfrc7wh9hbq17ymxk-compute-guix-derivation': No such file or directory
$ guix pull
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Building from this channel:
  guix      https://git.savannah.gnu.org/git/guix.git   0001478
guix pull: warning: failed to load '(wip android)':
Unbound variable: android-platform-version
guix pull: warning: failed to load '(wip pascal)':
Unbound variable: custom-gcc
0.0 MB will be downloaded:
   /gnu/store/njdhsdv216hyk23nfrc7wh9hbq17ymxk-compute-guix-derivation
Downloading https://berlin.guixsd.org/nar/gzip/njdhsdv216hyk23nfrc7wh9hbq17ymxk-compute-guix-derivation...
 compute-guix-derivation  887B                                                                                                                      268KiB/s 00:00 [##################] 100.0%

Backtrace:
In ice-9/boot-9.scm:
   2862:4 19 (define-module* _ #:filename _ #:pure _ #:version _ # _ ?)
  2071:24 18 (call-with-deferred-observers #<procedure 10b4140 at ic?>)
  2875:24 17 (_)
   222:17 16 (map1 (((guix utils)) ((guix config)) ((guix #)) ((?)) ?))
  2788:17 15 (resolve-interface (guix utils) #:select _ #:hide _ # _ ?)
  2714:10 14 (_ (guix utils) _ _ #:ensure _)
  2982:16 13 (try-module-autoload _ _)
   2312:4 12 (save-module-excursion #<procedure 11097b0 at ice-9/boo?>)
  3002:22 11 (_)
In unknown file:
          10 (primitive-load-path "guix/utils" #<procedure 1047600 a?>)
In ice-9/eval.scm:
   721:20  9 (primitive-eval (define-module (guix utils) # (guix ?) ?))
In ice-9/psyntax.scm:
  1235:36  8 (expand-top-sequence ((define-module (guix utils) # ?)) ?)
  1182:24  7 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?)
   285:10  6 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) ?)
In ice-9/eval.scm:
   293:34  5 (_ #<module (#{ g17}#) fc1820>)
In ice-9/boot-9.scm:
   2862:4  4 (define-module* _ #:filename _ #:pure _ #:version _ # _ ?)
  2875:24  3 (_)
   222:17  2 (map1 (((guix config)) ((srfi srfi-1)) ((srfi #)) (#) ?))
   2791:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ ?)
In unknown file:
           0 (scm-error misc-error #f "~A ~S" ("no code for modu?" ?) ?)

ERROR: In procedure scm-error:
no code for module (guix config)
guix pull: error: You found a bug: the program '/gnu/store/njdhsdv216hyk23nfrc7wh9hbq17ymxk-compute-guix-derivation'
failed to compute the derivation for Guix (version: "000147811b15465cd0f67d2635ba7d807d865afd"; system: "x86_64-linux";
host version: "20f8d73face564deec2f21130fb465c8c3d9a8e9"; pull-version: 1).
Please report it by email to <[email-masked]>.

$ guix pull --no-substitutes
... builds openssl
... builds libX11
... builds libtiff
... builds ghostscript
... builds libcurl
... builds gettext
... builds subversion
... some others
... finally fails:
phase `compress-documentation' succeeded after 0.0 seconds
Backtrace:
In ice-9/boot-9.scm:
   2862:4 19 (define-module* _ #:filename _ #:pure _ #:version _ # _ …)
  2071:24 18 (call-with-deferred-observers #<procedure 22db140 at ic…>)
  2875:24 17 (_)
   222:17 16 (map1 (((guix utils)) ((guix config)) ((guix #)) ((…)) …))
  2788:17 15 (resolve-interface (guix utils) #:select _ #:hide _ # _ …)
  2714:10 14 (_ (guix utils) _ _ #:ensure _)
  2982:16 13 (try-module-autoload _ _)
   2312:4 12 (save-module-excursion #<procedure 2332960 at ice-9/boo…>)
  3002:22 11 (_)
In unknown file:
          10 (primitive-load-path "guix/utils" #<procedure 211eb00 a…>)
In ice-9/eval.scm:
   721:20  9 (primitive-eval (define-module (guix utils) # (guix …) …))
In ice-9/psyntax.scm:
  1235:36  8 (expand-top-sequence ((define-module (guix utils) # …)) …)
  1182:24  7 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
   285:10  6 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) …)
In ice-9/eval.scm:
   293:34  5 (_ #<module (#{ g17}#) 21ea820>)
In ice-9/boot-9.scm:
   2862:4  4 (define-module* _ #:filename _ #:pure _ #:version _ # _ …)
  2875:24  3 (_)
   222:17  2 (map1 (((guix config)) ((srfi srfi-1)) ((srfi #)) (#) …))
   2791:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ …)
In unknown file:
           0 (scm-error misc-error #f "~A ~S" ("no code for modu…" …) …)

ERROR: In procedure scm-error:
no code for module (guix config)
guix pull: error: You found a bug: the program '/gnu/store/njdhsdv216hyk23nfrc7wh9hbq17ymxk-compute-guix-derivation'
failed to compute the derivation for Guix (version: "000147811b15465cd0f67d2635ba7d807d865afd"; system: "x86_64-linux";
host version: "20f8d73face564deec2f21130fb465c8c3d9a8e9"; pull-version: 1).
Please report it by email to <[email-masked]>.