From unknown Wed Jun 25 02:07:07 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27149 <27149@debbugs.gnu.org> To: bug#27149 <27149@debbugs.gnu.org> Subject: Status: =?UTF-8?Q?=E2=80=98perl-build-system=E2=80=99?= does not support cross-compilation Reply-To: bug#27149 <27149@debbugs.gnu.org> Date: Wed, 25 Jun 2025 09:07:07 +0000 retitle 27149 =E2=80=98perl-build-system=E2=80=99 does not support cross-co= mpilation reassign 27149 guix submitter 27149 Ricardo Wurmus severity 27149 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue May 30 11:01:45 2017 Received: (at submit) by debbugs.gnu.org; 30 May 2017 15:01:45 +0000 Received: from localhost ([127.0.0.1]:45414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFieW-0006lM-Sg for submit@debbugs.gnu.org; Tue, 30 May 2017 11:01:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFieU-0006lA-UW for submit@debbugs.gnu.org; Tue, 30 May 2017 11:01:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFieM-0002ud-Lm for submit@debbugs.gnu.org; Tue, 30 May 2017 11:01:37 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56164) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dFieM-0002uT-Il for submit@debbugs.gnu.org; Tue, 30 May 2017 11:01:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFieG-0002O3-QB for bug-guix@gnu.org; Tue, 30 May 2017 11:01:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFieD-0002tB-PZ for bug-guix@gnu.org; Tue, 30 May 2017 11:01:28 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21092) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dFieD-0002sz-9p for bug-guix@gnu.org; Tue, 30 May 2017 11:01:25 -0400 Received: from localhost (141.80.148.190 [141.80.148.190]) by mx.zohomail.com with SMTPS id 1496156476231855.2707715608595; Tue, 30 May 2017 08:01:16 -0700 (PDT) User-agent: mu4e 0.9.18; emacs 25.2.1 From: Ricardo Wurmus To: bug-guix@gnu.org Subject: =?utf-8?Q?=E2=80=98perl-build-system=E2=80=99?= does not support cross-compilation X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Tue, 30 May 2017 17:01:12 +0200 Message-ID: <878tle4cef.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) When trying to cross-build GCompris for armhf the build fails because Perl dependencies cannot be cross-built. The “perl-build-system” needs to be augmented to do the right thing when cross-compilation is requested. But what is the right thing to do? -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 23 03:52:44 2018 Received: (at control) by debbugs.gnu.org; 23 Apr 2018 07:52:44 +0000 Received: from localhost ([127.0.0.1]:36446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fAWHE-00061B-GE for submit@debbugs.gnu.org; Mon, 23 Apr 2018 03:52:44 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fAWHD-000613-87 for control@debbugs.gnu.org; Mon, 23 Apr 2018 03:52:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1524283459; s=zoho; d=elephly.net; i=rekado@elephly.net; h=Date:To:From:Subject; l=19; bh=aFx2ZnvRfA2XDU4bZDtEqIRYTWvhdUbWLgFMBufaHUw=; b=U3m2Bzz5Cnb4ByM4i058auYM5aXukD8r+40QiW5He36c48hp6kUnPZ6KHQpR+JXD lErJW+E9Y0mM/quWSh7lElT/1Vb0tnNBOv4OvoogEAEkqtHVOuNBmCrbI4ahLFqcgK+ ZK2c5K4Bg2gqNFnWSibgYZKu7ecvgStIkGhLOU8M= Received: from localhost (port-92-200-91-155.dynamic.qsc.de [92.200.91.155]) by mx.zohomail.com with SMTPS id 1524283458986180.07299345997114; Fri, 20 Apr 2018 21:04:18 -0700 (PDT) Date: Sat, 21 Apr 2018 06:04:16 +0200 To: control@debbugs.gnu.org From: Ricardo Wurmus Subject: control message for bug #31221 X-ZohoMailClient: External X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" Message-Id: X-Spam-Score: -1.0 (-) merge 31221 27149 From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 20 17:39:42 2019 Received: (at 27149) by debbugs.gnu.org; 20 Jan 2019 22:39:42 +0000 Received: from localhost ([127.0.0.1]:39258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glLkf-0006qt-EN for submit@debbugs.gnu.org; Sun, 20 Jan 2019 17:39:42 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:44914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glLkY-0006qg-Vv for 27149@debbugs.gnu.org; Sun, 20 Jan 2019 17:39:35 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 0197C3B87; Sun, 20 Jan 2019 23:39:30 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hAToDy8N6jMN; Sun, 20 Jan 2019 23:39:25 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 9D36A3B61; Sun, 20 Jan 2019 23:39:24 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Subject: Re: perl for arm-linux-gnueabihf References: <87a7jxf0b9.fsf@elephly.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 1 =?utf-8?Q?Pluvi=C3=B4se?= an 227 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 20 Jan 2019 23:39:23 +0100 In-Reply-To: <87a7jxf0b9.fsf@elephly.net> (Ricardo Wurmus's message of "Sat, 19 Jan 2019 10:45:14 +0100") Message-ID: <8736pnneck.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 27149 Cc: guix-devel@gnu.org, 27149@debbugs.gnu.org, =?utf-8?Q?G=C3=A9rald?= Lelong X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, Ricardo Wurmus skribis: >> *guix build --target=3Darm-linux-gnueabihf* *perl* fails with the follow= ing >> output: https://pastebin.com/QF0xKAmR > > Here=E2=80=99s the output copied from pastebin: > > starting phase `remove-extra-references' [...] > 1 (string-append "incpth=3D'" #f "/include'\n") > In ice-9/boot-9.scm: > 752:25 0 (dispatch-exception _ _ _) > > ice-9/boot-9.scm:752:25: In procedure dispatch-exception: > In procedure string-append: Wrong type (expecting string): #f > builder for `/gnu/store/zj5xld149ibdyc4nlm2dj41jnjm9bqyn-perl-5.28.0.drv'= failed with exit code 1 > build of /gnu/store/zj5xld149ibdyc4nlm2dj41jnjm9bqyn-perl-5.28.0.drv fail= ed > > I have never tried to cross-compiled packages for =E2=80=9Carm-linux-gnue= abihf=E2=80=9D. > I don=E2=80=99t know if this is expected to work. The =E2=80=9Carm-linux-gnueabihf=E2=80=9D is a cross-compilation triplet th= at we generally support. However, note, G=C3=A9rard, that not all packages in Gu= ix can be successfully cross-compiled, and Perl is one that fails to cross build. We are not committed to supporting cross-compilation of every package, but we=E2=80=99re of course happy to make the feature more useful. The patch below is the beginning of a fix, but as it is, it builds a native Perl. To address that, we need to fiddle with Perl=E2=80=99s peculi= ar build system. If you know how to instruct it to cross-build, let=E2=80=99s address this! :-) Thanks, Ludo=E2=80=99. PS: This issue was previously reported at so I suggest we keep discussing it there. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index c4d9d64de3..109a4c1154 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright =C2=A9 2012, 2013, 2014, 2015, 2016, 2017 Ludovic Court=C3= =A8s +;;; Copyright =C2=A9 2012, 2013, 2014, 2015, 2016, 2017, 2019 Ludovic Cour= t=C3=A8s ;;; Copyright =C2=A9 2013 Andreas Enge ;;; Copyright =C2=A9 2015, 2016, 2017, 2019 Ricardo Wurmus ;;; Copyright =C2=A9 2015, 2016, 2017 Eric Bavier @@ -78,7 +78,7 @@ "perl-reproducible-build-date.patch")))) (build-system gnu-build-system) (arguments - '(#:tests? #f + `(#:tests? #f #:configure-flags (let ((out (assoc-ref %outputs "out")) (libc (assoc-ref %build-inputs "libc"))) @@ -127,7 +127,10 @@ (add-after 'install 'remove-extra-references (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) - (libc (assoc-ref inputs "libc")) + (libc (assoc-ref inputs + ,(if (%current-target-system) + "cross-libc" + "libc"))) (config1 (car (find-files (string-append out "/lib/per= l5") "^Config_heavy\\.pl$"))) (config2 (find-files (string-append out "/lib/perl5") --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 11 05:01:24 2020 Received: (at 27149-done) by debbugs.gnu.org; 11 Aug 2020 09:01:24 +0000 Received: from localhost ([127.0.0.1]:38641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5Q9o-0002We-7D for submit@debbugs.gnu.org; Tue, 11 Aug 2020 05:01:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5Q9m-0002WS-Hq for 27149-done@debbugs.gnu.org; Tue, 11 Aug 2020 05:01:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39316) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5Q9f-0005oC-FV; Tue, 11 Aug 2020 05:01:11 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=41046 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k5Q9a-0007Ao-M7; Tue, 11 Aug 2020 05:01:09 -0400 From: Jan Nieuwenhuizen To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#27149: perl for arm-linux-gnueabihf References: <87a7jxf0b9.fsf@elephly.net> <8736pnneck.fsf@gnu.org> Date: Tue, 11 Aug 2020 11:01:04 +0200 In-Reply-To: <8736pnneck.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 20 Jan 2019 23:39:23 +0100") Message-ID: <87pn7x4kvj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27149-done Cc: Ricardo Wurmus , guix-devel@gnu.org, =?utf-8?Q?G=C3=A9rald?= Lelong , 27149-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ludovic Court=C3=A8s writes: >>> *guix build --target=3Darm-linux-gnueabihf* *perl* fails with the follo= wing >>> output: https://pastebin.com/QF0xKAmR This has been fixed by #40698. Thanks, Janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com From unknown Wed Jun 25 02:07:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 08 Sep 2020 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator