* perl for arm-linux-gnueabihf @ 2019-01-18 14:45 Gérald Lelong 2019-01-19 9:45 ` Ricardo Wurmus 0 siblings, 1 reply; 4+ messages in thread From: Gérald Lelong @ 2019-01-18 14:45 UTC (permalink / raw) To: guix-devel [-- Attachment #1: Type: text/plain, Size: 202 bytes --] *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. [-- Attachment #2: Type: text/html, Size: 347 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: perl for arm-linux-gnueabihf 2019-01-18 14:45 perl for arm-linux-gnueabihf Gérald Lelong @ 2019-01-19 9:45 ` Ricardo Wurmus 2019-01-20 22:39 ` Ludovic Courtès 0 siblings, 1 reply; 4+ messages in thread From: Ricardo Wurmus @ 2019-01-19 9:45 UTC (permalink / raw) To: Gérald Lelong; +Cc: guix-devel Hi Gérald, > *guix build --target=arm-linux-gnueabihf* *perl* fails with the following > output: https://pastebin.com/QF0xKAmR Here’s the output copied from pastebin: --8<---------------cut here---------------start------------->8--- starting phase `remove-extra-references' Backtrace: 13 (primitive-load "/gnu/store/rdqwl7zaa2nrqpw954aq9pzlllp…") In ice-9/eval.scm: 191:35 12 (_ _) In srfi/srfi-1.scm: 863:16 11 (every1 #<procedure 570f20 at /gnu/store/gfprsx2m62cvq…> …) In /gnu/store/gfprsx2m62cvqbh7ysc9ay9slhijvmal-module-import/guix/build/gnu-build-system.scm: 799:28 10 (_ _) In ice-9/eval.scm: 619:8 9 (_ #(#(#(#(#(#(#<directory (guile-user)…>) …) …) …) …) …)) 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/utils.scm: 641:26 6 (_ _) 667:26 5 (_ #<input: /gnu/store/vf9dig6j3ncfbv6j8ibnn6yf5f5vdpj…> …) In srfi/srfi-1.scm: 466:18 4 (fold #<procedure 7ffff3d270c0 at /gnu/store/gfprsx2m6…> …) In ice-9/eval.scm: 202:51 3 (_ #(#(#(#(#(#(#<directory (guile-user)…> …)) …) …) …) …)) 163:9 2 (_ #(#(#(#(#(#(#<directory (guile-user)…> …)) …) …) …) …)) In unknown file: 1 (string-append "incpth='" #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 failed --8<---------------cut here---------------end--------------->8--- I have never tried to cross-compiled packages for “arm-linux-gnueabihf”. I don’t know if this is expected to work. -- Ricardo ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: perl for arm-linux-gnueabihf 2019-01-19 9:45 ` Ricardo Wurmus @ 2019-01-20 22:39 ` Ludovic Courtès 2020-08-11 9:01 ` bug#27149: " Jan Nieuwenhuizen 0 siblings, 1 reply; 4+ messages in thread From: Ludovic Courtès @ 2019-01-20 22:39 UTC (permalink / raw) To: Ricardo Wurmus; +Cc: guix-devel, 27149 [-- Attachment #1: Type: text/plain, Size: 1607 bytes --] Hello, Ricardo Wurmus <rekado@elephly.net> skribis: >> *guix build --target=arm-linux-gnueabihf* *perl* fails with the following >> output: https://pastebin.com/QF0xKAmR > > Here’s the output copied from pastebin: > > starting phase `remove-extra-references' [...] > 1 (string-append "incpth='" #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 failed > > I have never tried to cross-compiled packages for “arm-linux-gnueabihf”. > I don’t know if this is expected to work. The “arm-linux-gnueabihf” is a cross-compilation triplet that we generally support. However, note, Gérard, that not all packages in Guix 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’re 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’s peculiar build system. If you know how to instruct it to cross-build, let’s address this! :-) Thanks, Ludo’. PS: This issue was previously reported at <https://issues.guix.info/issue/27149> so I suggest we keep discussing it there. [-- Attachment #2: Type: text/x-patch, Size: 1654 bytes --] 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 © 2012, 2013, 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2019 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> ;;; Copyright © 2015, 2016, 2017, 2019 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2015, 2016, 2017 Eric Bavier <bavier@member.fsf.org> @@ -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/perl5") "^Config_heavy\\.pl$"))) (config2 (find-files (string-append out "/lib/perl5") ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: bug#27149: perl for arm-linux-gnueabihf 2019-01-20 22:39 ` Ludovic Courtès @ 2020-08-11 9:01 ` Jan Nieuwenhuizen 0 siblings, 0 replies; 4+ messages in thread From: Jan Nieuwenhuizen @ 2020-08-11 9:01 UTC (permalink / raw) To: Ludovic Courtès; +Cc: guix-devel, 27149-done Ludovic Courtès writes: >>> *guix build --target=arm-linux-gnueabihf* *perl* fails with the following >>> output: https://pastebin.com/QF0xKAmR This has been fixed by #40698. Thanks, Janneke -- Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-08-11 9:02 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-01-18 14:45 perl for arm-linux-gnueabihf Gérald Lelong 2019-01-19 9:45 ` Ricardo Wurmus 2019-01-20 22:39 ` Ludovic Courtès 2020-08-11 9:01 ` bug#27149: " Jan Nieuwenhuizen
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/guix.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).