From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A9rald_Lelong?= Subject: perl for arm-linux-gnueabihf Date: Fri, 18 Jan 2019 15:45:55 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002672bb057fbc928d" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:39607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkVPO-0006w7-54 for guix-devel@gnu.org; Fri, 18 Jan 2019 09:46:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkVPN-0001t5-Fi for guix-devel@gnu.org; Fri, 18 Jan 2019 09:46:10 -0500 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]:45422) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkVPN-0001sQ-8S for guix-devel@gnu.org; Fri, 18 Jan 2019 09:46:09 -0500 Received: by mail-lj1-x22c.google.com with SMTP id s5-v6so11791855ljd.12 for ; Fri, 18 Jan 2019 06:46:08 -0800 (PST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --0000000000002672bb057fbc928d Content-Type: text/plain; charset="UTF-8" *guix build --target=arm-linux-gnueabihf* *perl* fails with the following output: https://pastebin.com/QF0xKAmR It looks like *libc *input evaluates to *false* for the *remove-extra-references *phase. --0000000000002672bb057fbc928d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
guix build --target=3Darm-linux-gnueabihf p= erl fails with the following output: https://pastebin.com/QF0xKAmR

It l= ooks like libc input evaluates to false for the remove-ext= ra-references phase.

--0000000000002672bb057fbc928d-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: perl for arm-linux-gnueabihf Date: Sat, 19 Jan 2019 10:45:14 +0100 Message-ID: <87a7jxf0b9.fsf@elephly.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:51434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gknC8-00061H-Jd for guix-devel@gnu.org; Sat, 19 Jan 2019 04:45:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gknC5-0001rm-2f for guix-devel@gnu.org; Sat, 19 Jan 2019 04:45:39 -0500 Received: from sender-of-o53.zoho.com ([135.84.80.218]:21703) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gknC3-0001jm-3l for guix-devel@gnu.org; Sat, 19 Jan 2019 04:45:36 -0500 In-reply-to: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?utf-8?Q?G=C3=A9rald?= Lelong Cc: guix-devel@gnu.org Hi G=C3=A9rald, > *guix build --target=3Darm-linux-gnueabihf* *perl* fails with the followi= ng > output: https://pastebin.com/QF0xKAmR Here=E2=80=99s the output copied from pastebin: --8<---------------cut here---------------start------------->8--- starting phase `remove-extra-references' Backtrace: 13 (primitive-load "/gnu/store/rdqwl7zaa2nrqpw954aq9pzlllp=E2=80= =A6") In ice-9/eval.scm: 191:35 12 (_ _) In srfi/srfi-1.scm: 863:16 11 (every1 # =E2=80=A6) In /gnu/store/gfprsx2m62cvqbh7ysc9ay9slhijvmal-module-import/guix/build/gnu= -build-system.scm: 799:28 10 (_ _) In ice-9/eval.scm: 619:8 9 (_ #(#(#(#(#(#(#) =E2=80=A6) = =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)) In ice-9/boot-9.scm: 841:4 8 (with-throw-handler _ _ _) In ice-9/ports.scm: 444:17 7 (call-with-input-file _ _ #:binary _ #:encoding _ # _) In /gnu/store/gfprsx2m62cvqbh7ysc9ay9slhijvmal-module-import/guix/build/uti= ls.scm: 641:26 6 (_ _) 667:26 5 (_ # =E2=80=A6) In srfi/srfi-1.scm: 466:18 4 (fold # =E2=80=A6) In ice-9/eval.scm: 202:51 3 (_ #(#(#(#(#(#(# =E2=80=A6)) = =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)) 163:9 2 (_ #(#(#(#(#(#(# =E2=80=A6)) = =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)) In unknown file: 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' f= ailed with exit code 1 build of /gnu/store/zj5xld149ibdyc4nlm2dj41jnjm9bqyn-perl-5.28.0.drv failed --8<---------------cut here---------------end--------------->8--- I have never tried to cross-compiled packages for =E2=80=9Carm-linux-gnueab= ihf=E2=80=9D. I don=E2=80=99t know if this is expected to work. -- Ricardo From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: perl for arm-linux-gnueabihf Date: Sun, 20 Jan 2019 23:39:23 +0100 Message-ID: <8736pnneck.fsf@gnu.org> References: <87a7jxf0b9.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:56644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glLkl-0006tf-Fw for guix-devel@gnu.org; Sun, 20 Jan 2019 17:39:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glLkg-0002YV-CO for guix-devel@gnu.org; Sun, 20 Jan 2019 17:39:43 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:51268) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1glLkd-0002WB-C1 for guix-devel@gnu.org; Sun, 20 Jan 2019 17:39:36 -0500 In-Reply-To: <87a7jxf0b9.fsf@elephly.net> (Ricardo Wurmus's message of "Sat, 19 Jan 2019 10:45:14 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: guix-devel@gnu.org, 27149@debbugs.gnu.org --=-=-= 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 mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4Dh/MK5eMl8hYQAA0tVLHw (envelope-from ) for ; Tue, 11 Aug 2020 09:02:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id AJK2Kq5eMl8UBAAAB5/wlQ (envelope-from ) for ; Tue, 11 Aug 2020 09:02:38 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4FD13940367 for ; Tue, 11 Aug 2020 09:02:38 +0000 (UTC) Received: from localhost ([::1]:55240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5QB3-00081t-5B for larch@yhetil.org; Tue, 11 Aug 2020 05:02:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5Q9h-0006R7-G7 for guix-devel@gnu.org; Tue, 11 Aug 2020 05:01:13 -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-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, 27149-done@debbugs.gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: 6GMSC50MaB4x 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