Ticket #1675 (closed bug: fixed)

Opened 12 years ago

Last modified 12 years ago

Cannot load perl6.pbc from PIR

Reported by: dukeleto Owned by:
Priority: normal Milestone:
Component: language Version: 2.4.0
Severity: medium Keywords:
Cc: Language: perl6
Patch status: Platform:

Description

This code:

.sub main
   load_bytecode
'/Users/leto/svn/parrot/installed_parrot/lib/2.4.0-devel/languages/perl6/perl6.pbc'
.end

which uses an installed perl6.pbc from Rakudo, gives this error:

Class '[ 'ClassToBe' ]' not found
current instr.: 'perl6;ClassHOW;new' pc 4091 (src/gen/Attribute.pir:35)
called from Sub 'perl6;ClassHOW;new_class' pc 5531
(src/metamodel/ClassHOW.pir:749)
called from Sub 'perl6;RoleHOW;onload' pc 5837 (src/metamodel/ClassHOW.pir:874)
called from Sub 'perl6;Perl6;Compiler;main' pc 284185
(src/gen/perl6-actions.pir:15235)
... call repeated 1 times

If I run parrot on the same perl6.pbc, it works. What am I missing? Any hints would be greatly appreciated.

I am currently using Parrot trunk ( revision 47312 ) and Rakudo master ( a0b6d74d ).

Change History

Changed 12 years ago by dukeleto

It seems that adding ":load" to the ClassToBe class fixes this issue. I will talk to the Rakudo peeps.

Changed 12 years ago by dukeleto

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.