Hello, I have been trying to cross compile Perl for an ARM-Linux for few days without result: I have an ssh working connection between my Intel-Linux host and my Arm-Linux device. I'm calling Configure as the following: sh ./Configure -des -Dusecrosscompile \ -Dtargethost=192.168.2.4 \ -Dtargetdir=/cross/bin \ -Dtargetuser=root -Dtargetarch=arm-linux \ -Dcc=/opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-9tdmi-linux-gnu/bin/arm-9tdmi-linux-gnu-gcc \ -Dincpth=/opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-9tdmi-linux-gnu/include \ -Dusrinc=/opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-9tdmi-linux-gnu/include \ -Dlibpth=/opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-9tdmi-linux-gnu/lib Then I make: make (inside the perl-5.10.0 directory ). I'm not getting an executable miniperl after calling make inside the Perl directory, but the follow message: * makefile:646: target `lib/auto/Encode/Byte/Byte.a' given more than once in the same rule. * makefile:646: target `lib/auto/Encode/CN/CN.a' given more than once in the same rule. * makefile:646: target `lib/auto/Encode/EBCDIC/EBCDIC.a' given more than once in the same rule. * makefile:646: target `lib/auto/Encode/JP/JP.a' given more than once in the same rule. * makefile:646: target `lib/auto/Encode/KR/KR.a' given more than once in the same rule. * makefile:646: target `lib/auto/Encode/Symbol/Symbol.a' given more than once in the same rule. * makefile:646: target `lib/auto/Encode/TW/TW.a' given more than once in the same rule. * makefile:646: target `lib/auto/Encode/Unicode/Unicode.a' given more than once in the same rule. * `sh cflags "optimize='-O'" miniperlmain.o` miniperlmain.c * CCCMD = /opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-9tdmi-linux-gnu/bin/arm-9tdmi-linux-gnu-gcc -DPERL_CORE -c -fno-strict-aliasing -pipe -O -Wall * In file included from perl.h:38, * from miniperlmain.c:36: * config.h:4296:12: operator '==' has no left operand * In file included from miniperlmain.c:36: * . * . * . * . * proto.h:4256: warning: data definition has no type or storage class * proto.h:4258: error: parse error before "Perl_PerlIO_unread" * proto.h:4259: warning: type defaults to `int' in declaration of `Perl_PerlIO_unread' * proto.h:4259: warning: data definition has no type or storage class * proto.h:4298: error: parse error before "Perl_pad_add_name" * proto.h:4299: warning: type defaults to `int' in declaration of `Perl_pad_add_name' * proto.h:4299: warning: data definition has no type or storage class * proto.h:4301: error: parse error before "Perl_pad_add_anon" * proto.h:4302: warning: type defaults to `int' in declaration of `Perl_pad_add_anon' * proto.h:4302: warning: data definition has no type or storage class * proto.h:4327: warning: type defaults to `int' in declaration of `PADOFFSET' * proto.h:4327: error: parse error before "po" make: *** miniperlmain.o Error 1 I tried to put these commands inside the t directory but i have always : ./perl TEST the message is:-sh: ./perl: No such file or directory or: ./perl -MTestInit op/groups.t the message is:-sh: ./perl: No such file or: ./perl harness the message is:-sh: ./perl: No such file Can you please help me with that. I need to be able to cross compile Linux on the ARM-Linux device as soon as possible and I really need your help here. I'm sure I'm doing something wrong or I'm missing some steps. Help!! Thanks.

In reply to Problem in Gross-compiling Perl !! by moby

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.