Hi Roman,

On Tue Jan 6, 2026 at 8:04 PM CET, Roman Riabenko wrote:
> Congratulations on your success to bring Guix System to Lime2!

That's one small step for me, one giant leap for Guix!
… or probably the other way around! 😅



> У вт, 2026-01-06 у 10:33 +0100, Tanguy Le Carrour пише:
>> But for others, I run into errors related to cross-compilation
>> and I have no clue what to do of them!?
>
> If your computer supports virtualization, you could try architecture
> emulation instead of cross-compilation. […] via -s flag (--system= instead of 
> --
> target= guix build option) to avoid cross-compiling, which is the
> default behavior.

Shame on me! 😱
I had configured my machine with:

```scheme
(service qemu-binfmt-service-type                                               
                                         
  (qemu-binfmt-configuration                                                    
                                         
    (platforms (lookup-qemu-platforms "arm"))))
```

But was using `--target` instead of `--system`! 😅

Apparently, it works much better! But it fails with a totally different
error `os-release points to inexistent file or dangling symlink`.

```
$ guix system --system=armhf-linux image asura.image.scm
guix system: warning: Your Guix installation is 19 days old.
guix system: warning: Consider running 'guix pull' followed by
'guix system reconfigure' to get up-to-date packages and security updates.

substitute: looking for substitutes on 'https://bordeaux.guix.gnu.org'... 100.0%
substitute: looking for substitutes on 'https://ci.guix.gnu.org'... 100.0%
The following derivations will be built:
  /gnu/store/hznvnhrlmxjp4yc7k8a4jhk4h6p3kvjf-profile.drv
  /gnu/store/vyfpqiwf89w8x2v3wajng9g5lrk033vb-shepherd-guix-ownership.go.drv
  /gnu/store/fzz3nqsacsw54ffl60lin6aph9vpm933-nginx.conf.drv
  /gnu/store/6gccr5gxr3mmiwk7q1hyhdm1c32qw2hz-shepherd-nginx.scm.drv
  /gnu/store/xhymyxg82bxd22kd2m7sk3l1nk1y0dcf-shepherd-nginx.go.drv
  /gnu/store/bqlfb25j2bv1myys9bi60gjbmyzp09z6-shepherd.conf.drv
  /gnu/store/q833ka8i4gznw96i198yp15r2sp32a6f-etc.drv
  /gnu/store/b26b3gfgzwicmxxh8wi1d5kvys55aaix-activate-service.scm.drv
  /gnu/store/vy5xfrwrz3icsq5012ggs8xnmzrqcqgg-activate-service.scm.drv
  /gnu/store/zfwrqpbv2s74ka2f96x8vjprj8yr5b1f-activate.scm.drv
  /gnu/store/jyir7q6vklyn14cpkgjlncl60g8chdyy-boot.drv
  /gnu/store/0hc2p73mrp62952sxca3id3mp9alvz31-system.drv
  /gnu/store/zn5jqxhsg8v8vmccmz549i8j93h2svhs-extlinux.conf.drv
  /gnu/store/3791idf61pw34a3dl1dz3ghddinxfmvv-partition.img.drv
  /gnu/store/27zwljcwk1qw6vm15p2rs5lmxwpivbyh-genimage.cfg.drv
  /gnu/store/qi77m3agq8w1814ngdvdz47dnnih8kh4-asura-raw-image.drv

building CA certificate bundle...
listing Emacs sub-directories...
building /gnu/store/q833ka8i4gznw96i198yp15r2sp32a6f-etc.drv...
|builder for `/gnu/store/q833ka8i4gznw96i198yp15r2sp32a6f-etc.drv' failed with 
exit code 1
build of /gnu/store/q833ka8i4gznw96i198yp15r2sp32a6f-etc.drv failed
View build log at 
'/var/log/guix/drvs/q8/33ka8i4gznw96i198yp15r2sp32a6f-etc.drv.gz'.
cannot build derivation 
`/gnu/store/0hc2p73mrp62952sxca3id3mp9alvz31-system.drv': 1 dependencies 
couldn't be built
cannot build derivation 
`/gnu/store/3791idf61pw34a3dl1dz3ghddinxfmvv-partition.img.drv': 1 dependencies 
couldn't be built
cannot build derivation 
`/gnu/store/27zwljcwk1qw6vm15p2rs5lmxwpivbyh-genimage.cfg.drv': 1 dependencies 
couldn't be built
cannot build derivation 
`/gnu/store/qi77m3agq8w1814ngdvdz47dnnih8kh4-asura-raw-image.drv': 1 
dependencies couldn't be built
guix system: error: build of 
`/gnu/store/qi77m3agq8w1814ngdvdz47dnnih8kh4-asura-raw-image.drv' failed


$ gunzip -c /var/log/guix/drvs/q8/33ka8i4gznw96i198yp15r2sp32a6f-etc.drv.gz
Backtrace:
           3 (primitive-load "/gnu/store/pm5a2y732pb5sgsbsc97n9a17za…")
In ice-9/eval.scm:
    619:8  2 (_ #f)
    619:8  1 (_ #(#<directory (guile-user) 40def690> "/gnu/store/…" …))
In ice-9/boot-9.scm:
   2007:7  0 (error _ . _)

ice-9/boot-9.scm:2007:7: In procedure error:
os-release points to inexistent file or dangling symlink 
/gnu/store/h4hfxc18n229wy1xx0s2l7d07k9ya369-os-release


$ ls /gnu/store/h4hfxc18n229wy1xx0s2l7d07k9ya369-os-release -lh
Permissions Size User Date Modified Name
.r--r--r--   259 root  1 Jan  1970  
/gnu/store/h4hfxc18n229wy1xx0s2l7d07k9ya369-os-release


$ cat /gnu/store/h4hfxc18n229wy1xx0s2l7d07k9ya369-os-release
NAME="Guix System"
ID=guix
PRETTY_NAME="Guix System"
LOGO=guix-icon
HOME_URL="https://guix.gnu.org";
DOCUMENTATION_URL="https://guix.gnu.org/en/manual";
SUPPORT_URL="https://guix.gnu.org/en/help";
BUG_REPORT_URL="https://lists.gnu.org/mailman/listinfo/bug-guix";
```

Doesn’t look "inexistent or dangling" to me!? 🤔

--
Tanguy

Reply via email to