Hello! l...@gnu.org (Ludovic Courtès) skribis:
> Commit 827d289 of the ‘core-updates’ branch adds cross-base.scm, which > builds a cross tool chain. > > So if you type ‘guix build gcc-cross-mips64el-linux-gnu’, you get a > cross-compiler (+ libc, binutils) for that platform. The compiler is > slightly modified by this patch: > > > http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/patches/gcc-cross-environment-variables.patch?h=core-updates&id=827d28914a16ef2d10ebdad4695efdb02ace07fb > > The end goal is to be able to run: > > guix build --target=mips64el-linux-gnu coreutils > > and get a cross-built Coreutils. Here we are! :-) So far I’ve only tested with “simple” cases, namely GMP/MPFR/MPC, and it all cross-builds correctly for mips64el-linux-gnu (N32). I’ve changed hydra.scm so that Hydra cross-builds a few packages for us. Probably package definitions and perhaps build systems will need to be adjusted to allow cross-compilation of more packages, but the foundations are in place. Comments and bug reports welcome! Ludo’.