develooper Front page | perl.perl5.porters | Postings from January 2013

Re: Cross-building and Makefile.SH

Thread Previous | Thread Next
From:
Neil Williams
Date:
January 12, 2013 17:09
Subject:
Re: Cross-building and Makefile.SH
Message ID:
20130112170848.866396836dca3b962747a22f@debian.org
On Sun, 06 Jan 2013 00:01:21 -0000
"Jess Robinson" <castaway@desert-island.me.uk> wrote:

> >> My branch now has a Configure which builds a miniperl (and
> >> generate_uudmap) when cross compiling, and stores the path to them as
> >> "hostperl" and "hostgenerate" in the config.sh. The Makefile.SH then  
> >> uses
> >> them if set, instead of building, by symlinking.

OK, I've now completed a targethost build on armel - it was a bit
complex because I had to set up sshd_config to push the ssh login into
a chroot to get the correct build dependencies. (I'll document that via
my blog later.)

The configure-for-cross branch fails:
Checking how long a character is (in bits)...
What is the length of a character (in bits)? [Ok]  
Your system has an unsigned character size of Ok bits, which
is rather unusual (normally it is 8 bits).  Perl likely will not work
correctly on your system, with subtle bugs in various places.
Do you really want to continue? [n]  

What turns out to be happening here is that the tests are not copying
the test executable each time and it appears to be down to the
targetrun operation:

if $test ! -f \$exe.xok; then
  $to \$exe
  $touch \$exe.xok
fi
$targetrun -l $targetuser $targethost "cd \$cwd && ./\$exe \$@"

That test works once but then fails - I can't find where \$exe.ok would
be removed. I'm not sure why it's necessary, the simpler:

$to \$exe
$targetrun -l $targetuser $targethost "cd \$cwd && ./\$exe \$@"

works for me.

http://linux.codehelp.co.uk/emdebian/perl-cross-debian/upstream-imx53.log

My additional arguments were:
LINE=" ${LINE} -Dtargetuser=root -Dtargethost=192.168.0.20"


-- 


Neil Williams
=============
http://www.linux.codehelp.co.uk/


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About