perl -MO=CC and perlcc are broken. They error out with "Can't locate object method "_save_common_middle" via package "B::FAKEOP" at /usr/lib/perl5/5.8.6/i686-linux/B/C.pm line 389." every time. Reproducible: Always Steps to Reproduce: 1. echo "print 'moo';" > test.pl 2. perl -MO=CC,-otest.c test.pl OR perlcc -o test.c -O test.pl Actual Results: Can't locate object method "_save_common_middle" via package "B::FAKEOP" at /usr/lib/perl5/5.8.6/i686-linux/B/C.pm line 389. CHECK failed--call queue aborted. test.c is empty Expected Results: test.c should contain C code converted from the Perl code.
perlcc -o test test.pl works perlcc -S -o test2 test.pl works where are you getting -MO? (not in documentation(any more?))
http://guest@rt.perl.org/rt3/Ticket/Display.html?id=2900 upstream issue located here. Same thing on my side :/...