Subject: Re: Update on bug#59196: `guix pull` fails on A20-OLinuXino-LIME2-eMMC

From: Tanguy LE CARROUR <[email-masked]>
Date: Thu, 28 Nov 2024 16:27:47 +0100

Hi Guix,

Quoting Tanguy LE CARROUR (2024-11-27 09:46:55)
> Than, I tried to build the installation image:
> 
> ```
> $ guix system image --system=armhf-linux -e '((@ (gnu system install) os-with-u-boot) (@ (gnu system install) installation-os) "A20-OLinuXino-Lime2")'
> # […]
> substitute: ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> substitute: In procedure write_wait_fd: unimplemented
> guix system: erreur : `/usr/bin/guix substitute' died unexpectedly
> ```

Following Julien’s advice about cross compilation, I gave the installer
another try on a different computer having `qemu-binfmt-service`:

```
$ guix system image --system=armhf-linux -e '((@ (gnu system install) os-with-u-boot) (@ (gnu system install) installation-os) "A20-OLinuXino-Lime2")'
# […]
building profile with 67 packages...
building /gnu/store/jx91y3vgadsr5fws7mqy5f3qqfxsrkng-shepherd.conf.drv...
building /gnu/store/zj9zg12lgr4ra8z01rf0kv29yaalck6m-boot.drv...
building /gnu/store/nnsvxis20dzyk8i3qd96y5pzpxcs3b4v-system.drv...
building /gnu/store/7jixbpwbzh0s0wyzll52gz7arp816923-extlinux.conf.drv...
building /gnu/store/24q8s96pwv4f92zdrnix4vc4yy9psi6p-partition.img.drv...
building /gnu/store/aipny3nzjvdqr3kclfihgwgps20cpgvc-partition.img.drv...
/builder for `/gnu/store/aipny3nzjvdqr3kclfihgwgps20cpgvc-partition.img.drv' failed with exit code 1
build of /gnu/store/aipny3nzjvdqr3kclfihgwgps20cpgvc-partition.img.drv failed
View build log at '/var/log/guix/drvs/ai/pny3nzjvdqr3kclfihgwgps20cpgvc-partition.img.drv.gz'.
cannot build derivation `/gnu/store/0z9dbgl5j42h8q75v4kcp06d81jbhvv8-genimage.cfg.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/374xpp5n2pgdlrryrgfgmv6ij1ypw6z5-disk-image.drv': 1 dependencies couldn't be built
guix system: error: build of `/gnu/store/374xpp5n2pgdlrryrgfgmv6ij1ypw6z5-disk-image.drv' failed
```

```
$ gunzip -c /var/log/guix/drvs/ai/pny3nzjvdqr3kclfihgwgps20cpgvc-partition.img.drv.gz
Backtrace:
           3 (primitive-load "/gnu/store/k1anny1qpdzqc9hzjlhhkvda8fx…")
In ice-9/eval.scm:
    619:8  2 (_ #(#<directory (guile-user) 40d55690> #<procedure …> …))
In gnu/build/bootloader.scm:
    110:4  1 (install-efi-loader "/gnu/store/kr9m50jjpklxi9ad0ykakd…" …)
    85:35  0 (install-efi "/gnu/store/kr9m50jjpklxi9ad0ykakdv0kzisx…" …)

gnu/build/bootloader.scm:85:35: In procedure install-efi:
In procedure car: Wrong type (expecting pair): #<unspecified>
environment variable `PATH' set to `/gnu/store/sc173ffgsdx6574scy64ci06hacbp0lm-dosfstools-4.2/sbin:/gnu/store/81q8rhh52k21zihq93yd12v0grlg06ql-fakeroot-1.35.1/bin:/gnu/store/hax2740g316y4qq2vy1qb14s4bmq0176-mtools-4.0.45/bin'
```

*ERF* 😞… so frustrating! 😱

Next attempt: install Guix System on top of the host distro’ and
offloading build to a remote server having `qemu-binfmt-service`!… 🤞

-- 
Tanguy