Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.

Compiler Toolkit

Skip to first unread message


Nov 24, 2009, 9:52:34 AM11/24/09
Figured I'd brush up on the compiler toolkit described at

It appears to be out of date.. For example, you cannot run 'make test'. Reading the README which is generated with 'perl tools/dev/ SomeLang' doesn't help because it refers me to non-existent files. Anyone know about about this area and can fix up a few things so people can dive back into writing compilers?

Buy the book -
Tech blog -
Twitter -
Official Perl 6 Wiki -


Nov 24, 2009, 10:42:45 AM11/24/09
----- Original Message ----

> From: François Perrad <>

> the mantra is :
> $ parrot setup.pir
> $ parrot setup..pir test

After successfully building and installing Parrot on my Mac, the "parrot setup.pir" still fails badly.

parrot $ parrot --version
This is Parrot version 1.8.0-devel built for i386-darwin.
Copyright (C) 2001-2009, Parrot Foundation.

This code is distributed under the terms of the Artistic License 2.0.
For more details, see the full text of the license in the LICENSE file
included in the Parrot source tree.

parrot $ perl tools/dev/ checkit
creating checkit/
creating checkit/README
creating checkit/Configure.pir
creating checkit/setup.pir
creating checkit/PARROT_REVISION
no ops: skipping checkit/src/ops/
no pmc: skipping checkit/src/pmc/
creating checkit/
no doc: skipping checkit/doc/checkit.pod
no doc: skipping checkit/doc/running.pod
no dynext: skipping checkit/dynext/.ignore
creating checkit/checkit/
creating checkit/checkit/.ignore
creating checkit/checkit.pir
creating checkit/src/
creating checkit/src/checkit.pir
creating checkit/src/parser/
creating checkit/src/parser/
creating checkit/src/parser/
creating checkit/src/parser/
no pmc: skipping checkit/src/pmc/checkit.pmc
no ops: skipping checkit/src/ops/checkit.ops
creating checkit/src/builtins.pir
creating checkit/src/builtins/
creating checkit/src/builtins/say.pir
creating checkit/t/
creating checkit/t/00-sanity.t
parrot $ cd checkit/
checkit $ ls
Configure.pir PARROT_REVISION checkit setup.pir t README checkit.pir src
checkit $ parrot setup.pir
--output=src/gen_grammar.pir src/parser/
/usr/local/lib/parrot/1.8.0-devel/languages/nqp/nqp.pbc --target=pir
--output=src/gen_actions.pir src/parser/
/usr/local/bin/parrot -o xyz/xyz..pbc src/xyz.pir
Error reading source file src/xyz.pir.
/usr/local/bin/parrot -o xyz.pbc xyz.pir
Error reading source file xyz.pir.
/usr/local/bin/pbc_to_exe xyz.pbc --install
Unable to open filehandle from path 'xyz.pbc'
current instr.: 'generate_code_gcc' pc 496 (tools/dev/pbc_to_exe.pir:298)
called from Sub 'main' pc -1 ((unknown file):-1)
strip installable_xyz
strip: can't open file: installable_xyz (No such file or directory)


Nov 24, 2009, 1:56:53 PM11/24/09
to Ovid,
I authored the thing, but dont' have time and tuits to update it,
unfortunately, sorry.

I think pmichaud was planning to write a new tutorial. we should
consider whether it's worth the effort to update the old one. If so,
the best way would be to go through each episode, and see what
changed, and change that accordingly.

sorry again, but I'm up the walls for the next few months due to deadlines.


0 new messages