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

I am attempting to cross-compile a little script I wrote for some perl-less windows-user friends of mine. I am running Apple's OS X 10.3. But when I try to run something as simple as "perlcc file.pl". I get errors:

/usr/bin/perlcc: bin/eddice.pl did not compile, which can't happen:

Starting compile

Walking tree

Prescan

Modification of a read-only value attempted at /System/Library/Perl/5.8.1/darwin-thread-multi-2level/B/C.pm line 1870.

CHECK failed--call queue aborted

Any ideas what's wrong wise monks?

I understand that perlcc is beta software, and my be broken, but if it's something else I would like to get it working.

- Lebo77

Replies are listed 'Best First'.
Re: perlcc under OS X
by Thilosophy (Curate) on Jan 21, 2005 at 04:52 UTC
    I am attempting to cross-compile a little script I wrote for some perl-less windows-user friends of mine. I am running Apple's OS X 10.3

    Would not you have to compile it on a Windows machine for your friends? The Mac perlcc will create a binary that will only work on Macs.

    PS: I get the same error as you do, so Apple's perlcc is most likely broken.

      I was under the impression that there was a way to make perlcc generate C code that i could then cross-compile with gcc. I can also use my windows box to do a simple compile of the c-code.

      I guess I will just get my friends to get off their lazy butts and install activePerl. This was more of an experiment then a requirement anyway.

      Thanks for the help.

      P.S. I did test out pp, and it worked fine. A bit slower then the regular perl execution.

Re: perlcc under OS X
by Joost (Canon) on Jan 21, 2005 at 10:14 UTC