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

Re: Cross-building and Makefile.SH

Thread Previous | Thread Next
Neil Williams
January 12, 2013 17:09
Re: Cross-building and Makefile.SH
Message ID:
On Sun, 06 Jan 2013 00:01:21 -0000
"Jess Robinson" <> 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 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
$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.

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


Neil Williams

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About