unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: phodina <phodina@protonmail.com>
To: help-guix <help-guix@gnu.org>
Subject: Error in install-efi + build with graft freezes
Date: Wed, 06 Oct 2021 05:49:03 +0000	[thread overview]
Message-ID: <U2vtGhStlMiRlkA4HHfMDAGnpTMaPnJFQ1RH4PbRSLzW1TW8sMrVxQeaL360QfnjTQFBNvGS9ckeNtHzwH9Z74aLYDCcCftqHhItr-enFb0=@protonmail.com> (raw)

Hi Guix,

I've attempted to build image for beaglebone black based on the example found in gnu/system/examples/beaglebone-black.tmpl. To build the image I run the following command:

time guix system image --no-grafts --system=armhf-linux examples/beaglebone-black.tmpl -v3
The following derivations will be built:
   /gnu/store/1ivscl4dkmw65lgl3s7ml8qgx8dgj6zv-disk-image.drv
   /gnu/store/dydpw2nvm8yq330bs7gcqicl2fb6qd21-genimage.cfg.drv
   /gnu/store/i271lgxhafnb7kgp8kr1pc81bng0ys6q-partition.img.drv
   /gnu/store/riiw4lrrh73slwa4dihkfnpssshn5wf0-partition.img.drv
building /gnu/store/i271lgxhafnb7kgp8kr1pc81bng0ys6q-partition.img.drv...
Backtrace:
           3 (primitive-load "/gnu/store/ha96i5s8bvx7zcdnp3sqnr03gvf…")
In ice-9/eval.scm:
    619:8  2 (_ #(#<directory (guile-user) 37fad7d0> #<procedure …> …))
In ./gnu/build/bootloader.scm:
     99:4  1 (install-efi-loader "/gnu/store/y5c7xy8gn5maimw3nvksvm…" …)
    78:35  0 (install-efi _ "grub.cfg" _)

./gnu/build/bootloader.scm:78:35: In procedure install-efi:
In procedure car: Wrong type argument in position 1 (expecting pair): #<unspecified>
environment variable `PATH' set to `/gnu/store/62c83bc4a6vnx94cmgn0h37j3mj8nif8-e2fsprogs-1.45.6/bin:/gnu/store/62c83bc4a6vnx94cmgn0h37j3mj8nif8-e2fsprogs-1.45.6/sbin:/gnu/store/fk1gaqga9rkq2g4pxnjlxxmy6xv0994m-fakeroot-1.25.3/bin:/gnu/store/6mz29a52531f6529455gscxsrcm9q0wb-dosfstools-4.2/sbin:/gnu/store/ryx6nf7cqsqvi2cwrv6mkj7nbb5gpc0f-mtools-4.0.35/bin'
builder for `/gnu/store/i271lgxhafnb7kgp8kr1pc81bng0ys6q-partition.img.drv' failed with exit code 1
build of /gnu/store/i271lgxhafnb7kgp8kr1pc81bng0ys6q-partition.img.drv failed
View build log at '/var/log/guix/drvs/i2/71lgxhafnb7kgp8kr1pc81bng0ys6q-partition.img.drv.bz2'.
cannot build derivation `/gnu/store/dydpw2nvm8yq330bs7gcqicl2fb6qd21-genimage.cfg.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/1ivscl4dkmw65lgl3s7ml8qgx8dgj6zv-disk-image.drv': 1 dependencies couldn't be built
guix system: error: build of `/gnu/store/1ivscl4dkmw65lgl3s7ml8qgx8dgj6zv-disk-image.drv' failed

real 0m3.055s
user 0m2.297s
sys 0m0.113s

Based on the backtrace the issue is in install-efi-loader calling install-efi with incorrect parameter. I checked also the gnu/build/bootloader.scm where these function are defined.

Unfortunately, I'm not that skilled in Guile to debug the code, set breakpoint and view/modify the arguments.

Could you recommend me some guide how to debug the Guile code in order to learn how to fix this issue?

Also one more question related to the Guix. I had to use the argument --no-graft. When I measure the time it takes to build the system with grafts the process freezes for like a half day so I kill it. Without the grafts I at least get to the partition error above.

Could someone please explain the reason or point me in the right direction why grafts freeze or is it normal it takes that long?
(for cross-compilation, when building native system for my laptop I don't see this issue)

Petr


                 reply	other threads:[~2021-10-06  5:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='U2vtGhStlMiRlkA4HHfMDAGnpTMaPnJFQ1RH4PbRSLzW1TW8sMrVxQeaL360QfnjTQFBNvGS9ckeNtHzwH9Z74aLYDCcCftqHhItr-enFb0=@protonmail.com' \
    --to=phodina@protonmail.com \
    --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).