On Fri Dec 26 14:41:49 2008, markusl wrote:
> I'm attempting to compile Parrot and Perl 6 for the first time using
> gcc 4.1.2
> on Linux.  I've checked out revision 34399 form svn.  Parrot compiles
> successfully, but languages/perl6 fails like this:
> 
> 
> m...@edward:~/parrot/languages/perl6$ make
> cd src/pmc && /usr/bin/perl /home/msl/parrot/tools/build/dynpmc.pl
> generate
> perl6str objectref perl6scalar mutablevar perl6multisub
> cd src/pmc && /usr/bin/perl /home/msl/parrot/tools/build/dynpmc.pl
> compile
> perl6str objectref perl6scalar mutablevar perl6multisub
> cd src/pmc && /usr/bin/perl /home/msl/parrot/tools/build/dynpmc.pl
> linklibs
> perl6str objectref perl6scalar mutablevar perl6multisub
> cd src/pmc && /usr/bin/perl /home/msl/parrot/tools/build/dynpmc.pl
> copy --destination=/home/msl/parrot/runtime/parrot/dynext perl6str
> objectref
> perl6scalar mutablevar perl6multisub
> ../../parrot  -o perl6.pbc perl6.pir
> error:imcc:syntax error, unexpected VAR, expecting '(' ('var')
>         in file 'src/builtins/op.pir' line 434
>         included from 'src/gen_builtins.pir' line 25
>         included from 'perl6.pir' line 1
> make: *** [perl6.pbc] Error 1
> m...@edward:~/parrot/languages/perl6$
> 
> 
> The line in question is the `rebless_subclass' instruction two
> paragraphs
> before the end of this function:
> 
rebless_subclass is a dynop, but in the make it doesn't look like they
got compiled. Which is rather odd... Please can you try with the latest
build?

> I'm not familiar enough with Parrot to correct the syntax.  However,
> if I
> comment out the line, I get a clean build.  Will I lose any more than
> the
> C<does> keyword?
> 
Well, it's not a syntax error so much, but rather that a C library
wasn't compiled properly (thus it reports a syntax error, but actually
it's because it thinks it's a function call rather than knowing its an
extra op).

Report from latest builds would be most welcome!

Thanks,

Jonathan

Reply via email to