This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] Updated: parrot-0.6.4-1 with parrot-perl6 and parrot-languages


On 20-Jul-2008 17:36, Michael Schaap wrote:
On 19-Jul-2008 21:42, Reini Urban wrote:
Michael Schaap schrieb:
Is perl6 supposed to (somewhat) work, yet?
I get:
% perl6 -e 'say "Hello, World!"'
"load_bytecode" couldn't find file 'P6object.pbc'
current instr.: 'onload' pc 0 (src/gen_builtins.pir:28)
called from Sub 'parrot;Perl6::Compiler;main' pc -1 ((unknown file):-1)

P6object does exist, in /usr/lib/parrot/library.
If I cd to this directory first, I get:
% cd /usr/lib/parrot/library; perl6 -e 'say "Hello, World!"'
Null PMC access in get_string()
current instr.: 'parrot;P6metaclass;add_parent' pc 119 (runtime/parrot/library/P6object.pir:137)
called from Sub 'parrot;P6metaclass;add_parent' pc 241 (runtime/parrot/library/P6object.pir:215)
called from Sub 'parrot;P6metaclass;register' pc 411 (runtime/parrot/library/P6object.pir:295)
called from Sub 'parrot;Str;onload' pc 965 (src/gen_builtins.pir:619)
called from Sub 'parrot;Perl6::Compiler;main' pc -1 ((unknown file):-1)

Interesting. Cannot reproduce this on both of my machines, with fresh installations.

I'd like to blame Windows Longhorn/Vista (not yet supported!) Ver 6.0 Build 6001 Service Pack 1
The cpu 'x86 Family 6 Model 23 Stepping 6, GenuineIntel'
looks fine to me.
It's not Vista.
I just installed Cygwin (base packages plus the three Parrot packages) on a Virtual PC image¹, and it behaves identically.


Do you perhaps have any environment variables set that I don't? I don't have any Perl or Parrot variables.

Hmm... I see in /usr/share/doc/parrot-0.6.4/languages/perl6/README:

------------------------------8<------------------------------
If you want to create a binary executable of the compiler
that can be invoked as "perl6" from the command line, then
try "make perl6".  This will create a "perl6" (or "perl6.exe")
binary that can be directly used from the command line:

$ ./perl6 hello.pl

This binary executable feature is still somewhat experimental,
and may not work on all platforms.  Also, the binary has hardcoded
paths to the Parrot build tree (especially the dynamic libraries
and modules), so removing the build tree will cause the binary
to stop working.
------------------------------>8------------------------------

... which sounds like a likely explanation.

– Michael


-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]