unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Saku Laesvuori <saku@laesvuori.fi>
To: help-guix@gnu.org
Subject: Error building with guix system image
Date: Wed, 19 Apr 2023 13:51:29 +0300	[thread overview]
Message-ID: <20230419105129.p4pm2qkb6ldcmde4@X-kone> (raw)

[-- Attachment #1: Type: text/plain, Size: 3970 bytes --]

Running `guix system image image-minimal.scm` fails with the following
build log:

```build log for partition.img.drv
copying 340 store items | [progress bar animation]
registering 337 items | [progress bar animation, fails before end]
Backtrace:
In ice-9/eval.scm:
    619:8 19 (_ #(#<directory (guile-user) 7fffeffcfc80> #<proced…> …))
In ./gnu/build/image.scm:
    236:4 18 (initialize-root-partition "tmp-root" #:bootcfg _ # _ # …)
In ice-9/boot-9.scm:
   260:13 17 (for-each #<procedure 7fffed357b80 at ./gnu/build/imag…> …)
In ./gnu/build/image.scm:
    167:6 16 (register-closure "tmp-root" "system" #:schema _ # _)
In ./guix/store/database.scm:
   111:20 15 (call-with-database "tmp-root/var/guix/db/db.sqlite" # # …)
In ./guix/progress.scm:
    71:36 14 (call-with-progress-reporter #<<progress-reporter> sta…> …)
In srfi/srfi-1.scm:
    634:9 13 (for-each #<procedure 7fffec850d40 at ./guix/store/dat…> …)
In ./guix/store/database.scm:
   420:36 12 (_ #<<store-info> item: "/gnu/store/8z1q7vjxylm6l4ibsyw…>)
In ./guix/store/deduplication.scm:
     42:4 11 (nar-sha256 "tmp-root/gnu/store/8z1q7vjxylm6l4ibsywd4h6…")
In ./guix/serialization.scm:
    381:9 10 (dump "tmp-root/gnu/store/8z1q7vjxylm6l4ibsywd4h6m6jv6z…")
In srfi/srfi-1.scm:
    634:9  9 (for-each #<procedure 7fffed493990 at ./guix/serializa…> …)
In ./guix/serialization.scm:
   386:23  8 (_ "share")
    381:9  7 (dump "tmp-root/gnu/store/8z1q7vjxylm6l4ibsywd4h6m6jv6z…")
In srfi/srfi-1.scm:
    634:9  6 (for-each #<procedure 7fffed4936f0 at ./guix/serializa…> …)
In ./guix/serialization.scm:
   386:23  5 (_ "locale")
    381:9  4 (dump "tmp-root/gnu/store/8z1q7vjxylm6l4ibsywd4h6m6jv6z…")
In srfi/srfi-1.scm:
    634:9  3 (for-each #<procedure 7fffed4933f0 at ./guix/serializa…> …)
In ./guix/serialization.scm:
   386:23  2 (_ "ja")
   380:43  1 (dump "tmp-root/gnu/store/8z1q7vjxylm6l4ibsywd4h6m6jv6z…")
In srfi/srfi-1.scm:
   691:29  0 (filter-map #<procedure 7fffeea6d9e0 at ./guix/seriali…> …)

srfi/srfi-1.scm:691:29: In procedure filter-map:
In procedure car: Wrong type argument in position 1 (expecting pair): #f
environment variable `PATH' set to `/gnu/store/zfiwdkwfs039q346nkynvhllxbra2rg8-e2fsprogs-1.46.4/bin:/gnu/store/zfiwdkwfs039q346nkynvhllxbra2rg8-e2fsprogs-1.46.4/sbin:/gnu/store/nj43wfbldxrwfmrk9vgvliz28iyl89dp-fakeroot-1.30.1/bin:/gnu/store/lpkpldxni8vab82kwq9qs032hni580ak-dosfstools-4.2/sbin:/gnu/store/131xfb6iz9vh7c8s7kv6nhvycrqcfad8-mtools-4.0.42/bin'
```

Does anyone have any pointers on how to debug or fix this? The operating
system builds nicely with `guix system vm`. Building
`gnu/system/examples/bare-bones.tmpl` with `guix system image` also
fails with a similar error and works correctly with `guix system vm`.


```image-minimal.scm
(use-modules
  (gnu)
  (gnu system image))

(define %operating-system
  (operating-system
   (host-name "image-test")
   (bootloader (bootloader-configuration
                (bootloader grub-bootloader)
                (targets '("/dev/sdX"))))
   (file-systems (cons*
                  (file-system
                   (mount-point "/")
                   (device "/dev/sdX1")
                   (type "ext4"))
                  %base-file-systems))))

(image-with-os (raw-with-offset-disk-image)
               %operating-system)
```

Output of `guix describe` just in case, though the error also occured
with the latest guix version when I tested.

```channels.scm
(list (channel
        (name 'guix)
        (url "https://git.savannah.gnu.org/git/guix.git")
        (branch "master")
        (commit
          "5c893787be78a79433fe1343f5b70cd647e8f667")
        (introduction
          (make-channel-introduction
            "9edb3f66fd807b096b48283debdcddccfea34bad"
            (openpgp-fingerprint
              "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))
```

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2023-04-19 10:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-19 10:51 Saku Laesvuori [this message]
2023-04-20 12:49 ` Error building with guix system image Maxim Cournoyer
2023-04-25 17:16   ` Saku Laesvuori
2023-05-01  1:45     ` Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230419105129.p4pm2qkb6ldcmde4@X-kone \
    --to=saku@laesvuori.fi \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).