[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error in install-efi + build with graft freezes

From: phodina
Subject: Error in install-efi + build with graft freezes
Date: Wed, 06 Oct 2021 05:49:03 +0000

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:
building /gnu/store/i271lgxhafnb7kgp8kr1pc81bng0ys6q-partition.img.drv...
           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): 
environment variable `PATH' set to 
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 
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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]