Hello Tanguy! "Tanguy Le Carrour" <[email protected]> skribis:
> Following my recent success running Guix System on my Lime2 [1], > I’ve started adding services and packages to my OS configuration. > > [1]: https://codeberg.org/guix/guix/pulls/4960 > > For some of them, everything went smoothly: `dhcpcd-service`, > `openssh-service`, `python`… > But for others, I run into errors related to cross-compilation > and I have no clue what to do of them!? > > The most frequent one is: `build system 'XYZ' does not support cross builds`. You are cross-compiling from x86_64 to ARMv7. Cross-compilation in Guix is “best-effort”: core packages are cross-compiled in continuous integration, but not much beyond that. In particular, as you found out, some build systems do not even support cross-compilation; ‘gnu-build-system’ and ‘cmake-build-system’ support it for example (meaning that any package with this build system can in theory be cross-compiled), but others don’t. The solution here would be to implement that support in the cases you found: ‘scons-build-system’ and ‘pyproject-build-system’. Or, perhaps, adjust package definitions to sidestep the problem entirely: for instance, you could use ‘git-minimal’ or define a variant of ‘git’ that doesn’t depend on ‘serf’ (see ‘guix graph --path git serf’). HTH! Ludo’.
