Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: microperl for embedded target

by RMGir (Prior)
on Jul 16, 2014 at 13:03 UTC ( [id://1093867]=note: print w/replies, xml ) Need Help??


in reply to microperl for embedded target

My original answer doesn't work, based on what I'm reading in perl5200delta.pod:

We now build binaries for miniperl and generate_uudmap to be used on the host,
rather than running every miniperl call on the target; this means that, short
of 'make test', we no longer need access to the target system once Configure is
done.  You can provide already-built binaries through the C<hostperl> and
C<hostgenerate> options to Configure.
So it sounds like if you're doing the cross-compilation correctly, perl shouldn't be trying to run generate_uudmap locally... Strange! You may want to post a perlbug about this if you can't resolve it, sounds like something strange is going on.

Make sure you reread the Cross-compilation section of "INSTALL" first, though.

I've never tried this, but this may work.

In a separate tree, build ugenerate_uudmap *natively* for your platform.

Then copy the binary into your cross-compile tree, and make shouldn't try to rebuild it but would just run it (unless the makefile builds and runs it in the same rule).

Good luck!

PS: You may have to rinse/repeat for other helper programs, I'm not sure


Mike

Replies are listed 'Best First'.
Re^2: microperl for embedded target
by gklose (Novice) on Jul 16, 2014 at 13:22 UTC
    > Thank you -- I'll give that a try. Thanks, that did appear to work, but I have yet to try the resulting binary image on my target. However, I'm somewhat alarmed :-)...the image is 2.52M unstripped. After I stripped it, it was down to a measly 2.42M. I suspect I'm not doing something right, but at the moment I don't see it. After all the native perl on the host (in /usr/bin) is only 11.96k. Guy
      Okay -- saw your addendum above. Thanks for checking into this. I appreciate your assistance. Thanks, Guy

        I just noticed in perl5180delta.pod this note about future deprecations:

        microperl, long broken and of unclear present purpose, will be removed.

        So thanks for your help -- I didn't catch the INSTALL txt file before, and there are some pointers in there for building a minimal build, which maybe I can couple with the cross-compilation notes.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1093867]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-25 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found