bug-guix
[Top][All Lists]
Advanced

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

Initial cross-compilation support


From: Ludovic Courtès
Subject: Initial cross-compilation support
Date: Wed, 27 Feb 2013 21:05:54 +0100
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux)

Hello!

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.

What remains to be done is to implement ‘package-cross-derivation’ in
(guix packages), and to adjust build-system/gnu to support cross builds.

If someone volunteers, that’s always appreciated ;-), otherwise I’ll
check what I can do later on.

Ludo’.



reply via email to

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