Hello Monks -- would appreciate some assistance, if anyone has any experience with building microperl for an embedded target. I am building it using the current perl distribution 5.20.0. I found a few snippets here and there, and the concept seems simple, however I've run into trouble. I've been able to build microperl, and run it, in my host environment (Debian/Jesse). Then I have tried building it for my embedded PPC target:

$ make -f Makefile.micro CC=powerpc-603e-linux-gcc

What I find is that the build process runs on my host, but it builds the "helper" (I think) ugenerate_uudmap and then tries to use it. But since it was built for the target, the binary will not run on the host, for the build. The error message says "./ugenerate_uudmap: ./ugenerate_uudmap: cannot execute binary file".

Prior to that, the make is running these two lines:

powerpc-603e-linux-gcc -o ugenerate_uudmap ugenerate_uudmap.o -lm

./ugenerate_uudmap uuudmap.h ubitcount.h umg_data.h

I would really appreciate any assistance. Thanks.

Guy

In reply to microperl for embedded target by gklose

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.