Closed p5pRT closed 9 years ago
The cross-compilation of Perl 5.23.2 is broken\, the part "Making utilities" can not be completed.
The following patch solves the issue\, by setting the Makefile variable RUN with a value from %Config
Signed-off-by: Francois Perrad \francois\.perrad@​gadz\.org --- utils/Makefile.PL | 2 +- 1 file changed\, 1 insertion(+)\, 1 deletion(-)
2.1.4
On Sat Sep 05 07:19:57 2015\, fperrad wrote:
This is a bug report for perl from francois.perrad@gadz.org\, generated with the help of perlbug 1.40 running under perl 5.23.2.
----------------------------------------------------------------- [Please describe your issue here]
The cross-compilation of Perl 5.23.2 is broken\, the part "Making utilities" can not be completed.
Francois\, can you provide an example of the cross-compilation you were attempting when you encountered this problem?
The following patch solves the issue\, by setting the Makefile variable RUN with a value from %Config
Signed-off-by: Francois Perrad \francois\.perrad@​gadz\.org --- utils/Makefile.PL | 2 +- 1 file changed\, 1 insertion(+)\, 1 deletion(-)
diff --git a/utils/Makefile.PL b/utils/Makefile.PL index 27c371f..d3a740f 100644 --- a/utils/Makefile.PL +++ b/utils/Makefile.PL @@ -26\,7 +26\,7 @@ my $perl = defined $Config{usedl} ? '../miniperl' : '../perl'; print $fh \<\<"EOT"; PERL = $perl REALPERL = ../perl -RUN = # Used mainly cross-compilation setups. +RUN = $Config{run}
EOT
-- 2.1.4
The last time the line in question was modified was in 2012. At that time the revision was specifically to deal with a cross-compilation issue.
#####
$ git show d708ee4b | head -20 commit d708ee4b2cf817d9803f6f18f87d6ce91ca74ff4 Author: Jess Robinson \castaway@​desert\-island\.me\.uk Date: Sat Dec 29 21:29:50 2012 +0000
Stop using $run for anything other than testing compiled tests in Configure.
When cross-compiling we want to run miniperl etc on the compile host\, not the test target
Hence\, there is a risk that if we apply your patch\, we will simply be back to where we were in 2012.
-- James E Keenan (jkeenan@cpan.org)
The RT System itself - Status changed from 'new' to 'open'
You are right. Please\, close the ticket.
My problem doesn't come from a new version of Perl\, but it comes from a new toolchain.
With the "good" toolchain\, the generated utils/Makefile contains PERL = ../miniperl so no need of RUN.
François
2015-09-07 12:50 GMT+02:00 James E Keenan via RT \perlbug\-followup@​perl\.org:
On Sat Sep 05 07:19:57 2015\, fperrad wrote:
This is a bug report for perl from francois.perrad@gadz.org\, generated with the help of perlbug 1.40 running under perl 5.23.2.
----------------------------------------------------------------- [Please describe your issue here]
The cross-compilation of Perl 5.23.2 is broken\, the part "Making utilities" can not be completed.
Francois\, can you provide an example of the cross-compilation you were attempting when you encountered this problem?
The following patch solves the issue\, by setting the Makefile variable RUN with a value from %Config
Signed-off-by: Francois Perrad \francois\.perrad@​gadz\.org --- utils/Makefile.PL | 2 +- 1 file changed\, 1 insertion(+)\, 1 deletion(-)
diff --git a/utils/Makefile.PL b/utils/Makefile.PL index 27c371f..d3a740f 100644 --- a/utils/Makefile.PL +++ b/utils/Makefile.PL @@ -26\,7 +26\,7 @@ my $perl = defined $Config{usedl} ? '../miniperl' : '../perl'; print $fh \<\<"EOT"; PERL = $perl REALPERL = ../perl -RUN = # Used mainly cross-compilation setups. +RUN = $Config{run}
EOT
-- 2.1.4
The last time the line in question was modified was in 2012. At that time the revision was specifically to deal with a cross-compilation issue.
#####
$ git show d708ee4b | head -20 commit d708ee4b2cf817d9803f6f18f87d6ce91ca74ff4 Author: Jess Robinson \castaway@​desert\-island\.me\.uk Date: Sat Dec 29 21:29:50 2012 +0000
Stop using $run for anything other than testing compiled tests in Configure\. When cross\-compiling we want to run miniperl etc on the compile host\, not the test target
diff --git a/Makefile.SH b/Makefile.SH index 9e55e65..6bb91cc 100755 --- a/Makefile.SH +++ b/Makefile.SH @@ -302\,7 +302\,7 @@ STATIC_LDFLAGS = $static_ldflags LDLIBPTH = $ldlibpth
# Sometimes running an executable is an adventure. -RUN = $run +RUN =
# These variables may need to be manually set for non-Unix systems.
#####
Hence\, there is a risk that if we apply your patch\, we will simply be back to where we were in 2012.
-- James E Keenan (jkeenan@cpan.org)
Closed at the request of the OP -- Karl Williamson
@khwilliamson - Status changed from 'open' to 'rejected'
Migrated from rt.perl.org#125999 (status was 'rejected')
Searchable as RT125999$