Hi Ludo’,
On Tue Jan 6, 2026 at 1:45 PM CET, Ludovic Courtès wrote: > "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. Yes I am! Cross-compiling and proud! 😎 > Cross-compilation in Guix is “best-effort”: core packages are cross-compiled > in continuous > integration, but not much beyond that. mmm… that wasn’t mentioned in the ad! 😱 But fair enough. > 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’. Are you being serious?! Me?! 😅 > 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’). Inspecting the generated image, I figured out that `git-minimal` was there indeed. And I’m perfectly happy with it! 😁 `pyproject-buil-system` might be an issue though… 🤔 Thanks, -- Tanguy
