On Thu, Aug 26, 2010 at 4:46 PM, a b <[email protected]> wrote:
> Hi,
>
> I have a little problem with compiling perl6 programs with
> rakudo-star-2010.07:
FYI, Rakudo * 2010.08 was just released.
> # cat test.p6
> say "Greetings, earthlings, err Perl 6 neophytes.";
>
> # perl6 test.p6
> Greetings, earthlings, err Perl 6 neophytes.
>
> # perl6 --target=pir test.p6 >> test.pir
> # parrot prog.pir
You say "test.pir" in some places but "prog.pir" in some, too.
> error:imcc:syntax error, unexpected PREG, expecting '(' ('$P67')
> in file 'prog.pir' line 36
> error:imcc:syntax error, unexpected PREG, expecting '(' ('$P69')
> in file 'prog.pir' line 40
> error:imcc:syntax error, unexpected PREG, expecting '(' ('$P71')
> in file 'prog.pir' line 44
> error:imcc:syntax error, unexpected PREG, expecting '(' ('$P1')
> in file 'prog.pir' line 64
> error:imcc:syntax error ... somewhere
> in file 'prog.pir' line 103
>
> # echo ".loadlib 'perl6_group'" > test.pir
> # echo ".loadlib 'perl6_ops'" >> test.pir
> # perl6 --target=pir test.p6 >> test.pir
> # parrot prog.pir
> Could not find sub !UNIT_OUTER
> current instr.: '' pc 158 (prog.pir:81) (prog.p6:1)
>
> Is it a known bug? ;) Why compiling a simple perl6 program is so dificult?
>
Building *-2010.08, using your "test.p6", I get the following:
# download r*, using pre-installed parrot.
$ perl Configure.pl
$ make -j3
$ make install # pretty sure this is required.
$ perl6 test.p6
Greetings, earthlings, err Perl 6 neophytes.
$ perl6 --target=pir test.p6 > test.pir
$ parrot test.pir
Greetings, earthlings, err Perl 6 neophytes.
Hope this helps!
--
Will "Coke" Coleda