Closed glasswalk3r closed 6 years ago
I think is most likely a problem with MarpaX::Simple or cpan
@perlancar -- Any insight on this one? It seems to involve MarpaX::Simple.
Hi @jeffreykegler , I don't think so there is anything related to MarpaX::Simple: I couldn't install or even test Marpa::R2 inside the cpan client, although it works fine with perl Makefile.PL;make;make test;make install
. And it seems to be specific with cperl.
I'm giving it a 2nd look. I'm currently moving from California to Virginia, so I hope you'll forgive some delay.
I asked about this on my IRC channel https://irclog.perlgeek.de/marpa/2018-02-28#i_15866306
My comments there: It looks to me like a problem with cpan (or parallel makes?) There is a warning message from 2 useless lines of code in R2.xs, but I don't think they are causing any issues.
There are a few variables here:
make install
Whether MarpaX::Simple is involved seems to be irrelevant, as far as I can see from the log.
So far, only the installation method has been varied, and has shown that manual installation seems to work while installation via cpan
does not. This indicates (but does not prove!) that either cpan
is doing something iffy, or that the Marpa::R2 Makefile doesn't conform to cpan's expectations. For example, Marpa might be installing itself into a wrong directory.
Much more notable, the failing installation has only been demonstrated with the cperl fork (http://perl11.org/cperl/), NOT with a standard perl. Using cperl is the most unusual part of this whole setup, and should be investigated first.
I find it likely that cperl's cpan
client and not the Marpa installation process is the cause of these problems, because
(a) rurban finds it necessary to maintain a collection of cperl-compatibility patches for various modules, and
(b) Marpa::R2 is very well-tested software that has been shown to work under a large variety of setups.
If this issue is specific to cperl, that would by definition be a cperl bug. Or would the Marpa project even be interested in supporting the cperl fork? I'd argue this should be a non-goal, as large parts of the CPAN infrastructure incl. cpantesters do not support perl forks either.
Can this problem be reproduced under a real perl-5.24, but otherwise using the same setup?
Not really. There are a couple of tests from me available (just filter them by OpenBSD) and you will see that Marpa::R2 pass all tests on "standard" perls. See here to check them out.
Can other complex XS modules be installed without problems under this cperl–cpan–perlbrew– OpenBSD configuration?
I'm not sure how to categorize distributions, but I guess you could check some results for some of those distributions and how they fare in OpenBSD.
But taking a look at the filter on CPAN Testers website, I don't see any option as "cperl-*" to filter the reports. Not sure if cperl is just not being considered over there.
If the problem cannot be reproduced except in a cperl environment, I'm inclined to close it as "Cannot duplicate".
But also, does your environment use a parallel make? Some BSD's run parallel make by default. This is a disaster with Marpa::R2's makefiles, which cannot be run in parallel.
@jeffreykegler , no, all configuration regarding parallel making is disabled at the configuration of cpan client. I'll double check if a "regular" perl (probably 5.10) works fine with the current setup, and if everything goes as expected I guess we can drop this off.
Guys, I tried with perl 5.10.1 (see here) and all tests passed. I guess that is safe to assume that the issue goes with "cperl" itself, so probably you may want to mark the distribution to be incompatible to this alternative perl.
Two things to do before I close: 1.) Fix the two useless statement warnings. 2.) Modify the UPDATES page to state that cperl is not supported and not known to work.
Fixed useless statement warnings in commit c458bec395e5c86e22e5d799eea6472466f8d0e1. It remains to change the UPDATES page.
And if cperl gets a fix so that installing Marpa works -; @glasswalk3r, have you contacted cperl ?
Added caveat re Perl variants to UPDATES.md: commit 82a35426d65f212d03ccde18e17f90114ef1b94a
Hi there,
Got my smoker in a infinite loop trying to install MarpaX::Simple, which depends on Marpa::R2.
After some testing, I detected that the issue happens with the CPAN client (cpan) and cperl 5.24.3c, built on OpenBSD 6.2. Here is what I got:
From here I exited the cpan client and tried it manually: