http://qs1969.pair.com?node_id=590383

ashuperl has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I am new to Perl and porting work. From whatever I read over web and Configure file script, there is a need of SSH connectivity between the target device and the host platform. Is there a way if there is no SSH I can try using the cross compiler. I am using "gcc version 4.1.0 (Sourcery G++ 4.1-6) arm-none-linux-gnueabi-gcc" cross compiler. Host platform is Linux on intel and target is Linux on ARM926EJS. If you have any document that could be a great help. Thanks & Regards, ashu

Replies are listed 'Best First'.
Re: Help Needed Cross Compile Perl ARM/Linux
by shmem (Chancellor) on Dec 18, 2006 at 09:16 UTC
    Configure checks header files, and writes, compiles and runs various C programs on the fly to configure perl, so cross-compiled code must run on the target platform. The only other way I know would be configuring on the target host, and cross-compiling on the build host. For Configure to run on the target host you need a compiler there.

    If you can't run Configure on the target host, run it on the build host and edit config.sh at the end of the configure process. You will have to find out all the configurable values yourself, though.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
Re: Help Needed Cross Compile Perl ARM/Linux
by Steve_p (Priest) on Dec 18, 2006 at 20:29 UTC

    Have you read the README in the Cross subdirectory in the Perl source distribution?


    Test your modules with bleadperl!

      rsync -avz rsync://public.activestate.com/perl-current/ .
      ./Configure -des -Dusedevel -Dprefix=/path/to/test/perl
      make test
      make install
    

    Now, please test you modules! If you have test failures that don't happen with Perl 5.8.8, send a simplified test case to

    perlbug at perl.org