From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Initial cross-compilation support Date: Wed, 27 Feb 2013 21:05:54 +0100 Message-ID: <87txoxv7x9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAnGr-0007uJ-Mt for bug-guix@gnu.org; Wed, 27 Feb 2013 15:06:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAnGU-00085b-0l for bug-guix@gnu.org; Wed, 27 Feb 2013 15:06:28 -0500 Received: from [2a01:e0b:1:123:ca0a:a9ff:fe03:271e] (port=51285 helo=xanadu.aquilenet.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAnGT-0007wt-QX for bug-guix@gnu.org; Wed, 27 Feb 2013 15:06:09 -0500 Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id B08A36D40 for ; Wed, 27 Feb 2013 21:05:55 +0100 (CET) Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d0k+GF99jzha for ; Wed, 27 Feb 2013 21:05:55 +0100 (CET) Received: from pluto (32.129.10.93.rev.sfr.net [93.10.129.32]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id 30D65BB for ; Wed, 27 Feb 2013 21:05:55 +0100 (CET) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: bug-guix@gnu.org Hello! Commit 827d289 of the =E2=80=98core-updates=E2=80=99 branch adds cross-base= .scm, which builds a cross tool chain. So if you type =E2=80=98guix build gcc-cross-mips64el-linux-gnu=E2=80=99, y= ou 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-c= ross-environment-variables.patch?h=3Dcore-updates&id=3D827d28914a16ef2d10eb= dad4695efdb02ace07fb The end goal is to be able to run: guix build --target=3Dmips64el-linux-gnu coreutils and get a cross-built Coreutils. What remains to be done is to implement =E2=80=98package-cross-derivation= =E2=80=99 in (guix packages), and to adjust build-system/gnu to support cross builds. If someone volunteers, that=E2=80=99s always appreciated ;-), otherwise I= =E2=80=99ll check what I can do later on. Ludo=E2=80=99.