nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

perlcc moose incompatible. #350

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
$>perlcc -O3 -r -e'package Foo::Moose; use Moose; has bar => (is => "rw", isa 
=> "Int"); package main; my $moose = Foo::Moose->new; $moose->bar(32);'
Can't locate object method "attribute_metaclass" via package 
"Moose::Meta::Class" at 
/usr/local/cpanel/3rdparty/perl/514/lib/perl5/cpanel_lib/i386-linux-64int/Moose/
Meta/Class.pm line 716.

Original issue reported on code.google.com by ad...@yapcna.org on 21 Jun 2014 at 5:36

GoogleCodeExporter commented 9 years ago
thanks, repro. 

Looks like @Moose::Meta::Class::ISA misses Class::MOP::Mixin::HasAttributes, it 
only has Class::MOP::Mixin.

Or maybe this one: -v5 =>
no dl_init for Moose, not marked

I'll check on a faster workstation. 375102 lines of C is too big for my laptop.

Original comment by reini.urban on 23 Jun 2014 at 5:18

GoogleCodeExporter commented 9 years ago
Looks very similar to issue 348, but nicolas.rochelemagne indicates to me in 
person this may possibly not be the case.  I will investigate further.

Original comment by erin.schoenhals on 23 Jun 2014 at 1:34

GoogleCodeExporter commented 9 years ago
"no dl_init for Moose, not marked" is definitely a bug. 

Moose uses a now special XS bootstrap, 
from Class::MOP calling XSLoader::load 'Moose', which does not save 
$xsub{Moose}.

For now I hacked a special Moose exception, but we really need to generalize 
the detection of XSLoader::load args to fill %xsub. (branch walkall)

Original comment by reini.urban on 25 Jun 2014 at 5:34

GoogleCodeExporter commented 9 years ago
Fixed in master, with 1.47_03, after merging walkall

Original comment by reini.urban on 3 Jul 2014 at 8:54

GoogleCodeExporter commented 9 years ago

Original comment by reini.urban on 3 Jul 2014 at 8:54