From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fx8LV-0000s3-Jk for guix-patches@gnu.org; Tue, 04 Sep 2018 06:14:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fx8LS-0004Ad-BH for guix-patches@gnu.org; Tue, 04 Sep 2018 06:14:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:40024) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fx8LS-0004AX-6z for guix-patches@gnu.org; Tue, 04 Sep 2018 06:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fx8LR-0002KR-Vo for guix-patches@gnu.org; Tue, 04 Sep 2018 06:14:02 -0400 Subject: [bug#32624] [PATCH] gnu: perl: Add support for cross-compilation Resent-Message-ID: References: <87bm9er7rv.fsf@posteo.net> <878t4iuuaf.fsf@gnu.org> From: =?UTF-8?Q?Rapha=C3=ABl_?= =?UTF-8?Q?M=C3=A9lotte?= In-reply-to: <878t4iuuaf.fsf@gnu.org> Date: Tue, 04 Sep 2018 12:13:10 +0200 Message-ID: <87bm9d8tah.fsf@gmail.com> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 32624@debbugs.gnu.org Ludovic Court=C3=A8s writes: > 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? Ok, thanks for checking. After some web searching and according to the following page, cross-compili= ng perl isn't an easy task: https://arsv.github.io/perl-cross/index.html Do you think it would be a good idea to package perl-cross and use it when cross-compiling ? The other option (giving -Dtargethost to the configure script) seems to req= uire a target host to be available with an ssh server running. > (BTW, I think I already wrote this but you don=E2=80=99t need to cross-co= mpile > if all you want is 32-bit binaries. Simply use =E2=80=9C-s i686-linux=E2= =80=9D for > that.) Yes you mentioned it a few month ago, and that helped me a lot back then :-) I wanted to come back to trying to cross-compile some packages because I find it interesting (the idea of remotely building packages for other arc= hitectures is so cool). Thanks, Rapha=C3=ABl.