From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwwiV-0001YP-LW for guix-patches@gnu.org; Mon, 03 Sep 2018 17:49:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwwiU-00085y-OV for guix-patches@gnu.org; Mon, 03 Sep 2018 17:49:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:39686) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fwwiU-00085k-J8 for guix-patches@gnu.org; Mon, 03 Sep 2018 17:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fwwiU-00006O-Fu for guix-patches@gnu.org; Mon, 03 Sep 2018 17:49:02 -0400 Subject: [bug#32624] [PATCH] gnu: perl: Add support for cross-compilation Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87bm9er7rv.fsf@posteo.net> Date: Mon, 03 Sep 2018 23:48:24 +0200 In-Reply-To: <87bm9er7rv.fsf@posteo.net> ("=?UTF-8?Q?Rapha=C3=ABl_?= =?UTF-8?Q?M=C3=A9lotte?="'s message of "Mon, 03 Sep 2018 16:10:44 +0200") Message-ID: <878t4iuuaf.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: =?UTF-8?Q?Rapha=C3=ABl_?= =?UTF-8?Q?M=C3=A9lotte?= Cc: 32624@debbugs.gnu.org Hi, "Rapha=C3=ABl M=C3=A9lotte" skribis: > This patch adds support for cross-compilation for perl. > I only applied the suggestion made by Chris here: > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D31221 > > I tested it by running the following command, which builds perl successfu= lly: > > sudo -E ./pre-inst-env guix build --target=3Di686-pc-linux-gnu perl > > > From 1aa61436c6c85ebfdea9aceeb3949ac97fdbe289 Mon Sep 17 00:00:00 2001 > From: =3D?UTF-8?q?Rapha=3DC3=3DABl=3D20M=3DC3=3DA9lotte?=3D > Date: Mon, 3 Sep 2018 10:20:06 +0200 > Subject: [PATCH] gnu: perl: Add support for cross-compilation > > * gnu/packages/perl.scm (perl): use cross-libc when cross-compiling I tested a variant of this patch with --target=3Darm-linux-gnueabihf. During the =E2=80=98configure=E2=80=99 phase, I see: --8<---------------cut here---------------start------------->8--- Checking for cross-compile No targethost for running compiler tests against defined, running locally --8<---------------cut here---------------end--------------->8--- Then the build completes but the result is a set of x86_64 (native) binaries. So I suppose some more work in needed to really cross-compile. Maybe we need to pass specific configure flags? (BTW, I think I already wrote this but you don=E2=80=99t need to cross-comp= ile if all you want is 32-bit binaries. Simply use =E2=80=9C-s i686-linux=E2= =80=9D for that.) Thanks, Ludo=E2=80=99.