[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initial cross-compilation support

From: Ludovic Courtès
Subject: Re: Initial cross-compilation support
Date: Sat, 25 May 2013 00:04:35 +0200
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)


address@hidden (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

Comments and bug reports welcome!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]