Skip Menu |

This queue is for tickets about the v6-pugs CPAN distribution.

Report information
The Basics
Id: 20152
Status: resolved
Worked: 2 hours (120 min)
Priority: 0/
Queue: v6-pugs

People
Owner: FGLOCK [...] cpan.org
Requestors: mark [...] summersault.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: can't find own compile method
There seems to be some kind of bootstrapping issue. This module can't find its own compile() method, although it exists: perl -MPugs::Compiler::Perl6 -e 42 Can't locate object method "compile" via package "Pugs::Compiler::Perl6" at /usr/lib/perl5/site_perl/5.8.7/v6.pm line 36. Compilation failed in require at /usr/lib/perl5/site_perl/5.8.7/Pugs/Grammar/Rule.pm line 18. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/Pugs/Grammar/Rule.pm line 18. Compilation failed in require at /usr/lib/perl5/site_perl/5.8.7/Pugs/Compiler/Regex.pm line 10. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/Pugs/Compiler/Regex.pm line 10. Compilation failed in require at (eval 1) line 3. ...propagated at /usr/lib/perl5/5.8.7/base.pm line 85. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/Pugs/Compiler/Perl6.pm line 9.
From: Audrey Tang
On Wed Jun 28 00:04:25 2006, guest wrote: Show quoted text
> There seems to be some kind of bootstrapping issue. This module can't > find its own compile() method, although it exists:
Yes, Mandriva is the only distro that turned off .pmc support, which we need, for some period of time. I'm asking rgs (both the Perl5 pumpking and the Mandriva releng for Perl) about a solution on #perl6 right now...
From: Audrey Tang
On Wed Jun 28 07:17:59 2006, guest wrote: Show quoted text
> Yes, Mandriva is the only distro that turned off .pmc support, which we > need, for some period of time. I'm asking rgs (both the Perl5 pumpking > and the Mandriva releng for Perl) about a solution on #perl6 right now...
Clarification: Mandriva has turned on support for .pmc for its latest dev version (explicitly to support v6.pm), but the "main" stable version still has the older ccflags. rgs++ will likely post a follow-up here on how to turn off that flag yourself and regain .pmc support... Thanks for your patience. :-)
The most straightforward way to replace your system's perl is to get the source rpm from a Mandriva mirror (file perl-5.8.7-3.2.20060mdk.src.rpm in path updates/2006.0/SRPMS), install it, and rebuild perl from it after having removed the line: -Accflags=-DPERL_DISABLE_PMC \ from the spec file. (in a nutshell: rpm -i perl-5.8.7-3.2.20060mdk.src.rpm; cd $(rpm --eval %_topdir); vi SPECS/perl.spec; rpm -ba --clean SPECS/perl.spec) Changing the "Release:" tag in the spec file to a higher number (e.g. 4) could help tracking down it's not an official rpm. Then install the resulting binary rpms.
This bug is now documented in v6.pod REQUIREMENTS section: ---- - The perl5 executable must have PMC support. PMC support is required for loading precompiled Perl 6 files. If you see the error below, it may happen that your perl was compiled without PMC support. Can't locate object method "compile" via package "Pugs::Compiler::Perl6" ----