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

I'm currently attempting to build Perl 5.6.1 for the
powerpc and am running into a few issues. I'm using the
powerpc-linux-gcc cross compiler, but I get this whenever I
run make. The parse errors are so vague.

`sh cflags libperl.a miniperlmain.o` miniperlmain.c
CCCMD = powerpc-linux-gcc -DPERL_CORE -c -
I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BI4 -
O2 In file included from miniperlmain.c:12:
perl.h:1085: parse error
perl.h:1089: parse error
perl.h:1100: parse error
In file included from miniperlmain.c:12:
perl.h:1530: parse error
perl.h:1547: parse error
make: *** miniperlmain.o Error 1

ANy suggestions?

Replies are listed 'Best First'.
Re (tilly) 1: crosss compiling perl for the powerpc
by tilly (Archbishop) on Dec 15, 2001 at 11:08 UTC
    While I don't know what specifically is wrong, I am somewhat dubious about trying to compile Perl with a cross-compiler. One of the things it has to do is probe your system to find out what you have available. If you are cross-compiling it is unlikely to find the right things in the right places, and if you are compiling for a different architecture, it is unlikely to be able to link the libraries it does find (which are for your current architecture) with the code you are trying to compile (for your target architecture).

    Therefore I would try to compile on your target architecture.

    OTOH this is something I haven't tried to do. If you really need to do it, then I would suggest asking the main development list for ideas and pointers.