all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Error in install-efi + build with graft freezes
@ 2021-10-06  5:49 phodina
  0 siblings, 0 replies; only message in thread
From: phodina @ 2021-10-06  5:49 UTC (permalink / raw)
  To: help-guix

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-06  5:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-06  5:49 Error in install-efi + build with graft freezes phodina

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.