in reply to help debugging why module install is failing

G'day Special_K,

I have Cygwin running on Win10, so thought I'd give this a go to see if I got any different results. My Perl is 5.32.0; I used the cpan utility: cpan[1]> install IO::Async::Listener.

I got the same Failed test 'exceptional socket invokes on_read_ready' for t/10loop-poll-io.t and t/10loop-select-io.t.

I got the same six warnings for t/42function.t: Warning: unable to close filehandle ... during global destruction.

This, however, was different from your report:

t/50resolver.t ............... ok t/51loop-connect.t ........... 1/? Nothing was ready after 10 second w +ait; called at t/51loop-connect.t line 322 # Tests were run but no plan was declared and done_testing() was not s +een. # Looks like your test exited with 119 just after 31. t/51loop-connect.t ........... Dubious, test returned 119 (wstat 30464 +, 0x7700)

Here's the full summary if you want to make a comparison:

Test Summary Report ------------------- t/10loop-poll-io.t (Wstat: 256 Tests: 22 Failed: 1) Failed test: 19 Non-zero exit status: 1 t/10loop-select-io.t (Wstat: 256 Tests: 22 Failed: 1) Failed test: 19 Non-zero exit status: 1 t/51loop-connect.t (Wstat: 30464 Tests: 31 Failed: 0) Non-zero exit status: 119 Parse errors: No plan found in TAP output Files=64, Tests=1664, 127 wallclock secs ( 0.05 usr 0.08 sys + 5.89 +cusr 6.86 csys = 12.87 CPU) Result: FAIL Failed 3/64 test programs. 2/1664 subtests failed. PEVANS/IO-Async-0.77.tar.gz ./Build test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports PEVANS/IO-Async-0.77.tar.gz Failed during this command: PEVANS/IO-Async-0.77.tar.gz : make_test NO

— Ken

Replies are listed 'Best First'.
Re^2: help debugging why module install is failing
by leonerd (Initiate) on Nov 18, 2020 at 19:02 UTC
    It may just be that Cygwin doesn't do exceptional-condition monitoring on those filehandles, at which point there really isn't anything this module can do about it. Could just skip those parts of the tests or something.
Re^2: help debugging why module install is failing
by Special_K (Pilgrim) on Nov 19, 2020 at 23:05 UTC
    How were you able to get Perl 5.32.0 on Cygwin? When I run the Cygwin setup utility, the most recent version listed for the perl Package is 5.30.3-1.
      How were you able to get Perl 5.32.0 on Cygwin?

      I don't know how leonerd kcott obtained it, but it built pretty easily for me from source. (Yes, that surprised me, too !)
      IIRC, I ran:
      ./Configure -des -Dprefix=/your/preferred/location make make test (might fail a test or two ... can't remember that part) make install
      Cheers,
      Rob
      "How were you able to get Perl 5.32.0 on Cygwin?"

      Short answer: I used Perlbrew.

      Detailed answer: "Re: Perl on Windows 10". That actually got me 5.30.0 (at that time, Cygwin had 5.26.3). I don't remember the exact details of how I upgraded that to 5.32.0, but it was probably just:

      perlbrew install perl-5.32.0

      So now I have:

      $ perl -v | head -2 | tail -1 This is perl 5, version 32, subversion 0 (v5.32.0) built for cygwin-th +read-multi

      You may also be interested in "App::perlbrew - Compiling Perl with thread support". It's possibly somewhat dated: I wrote it in 2012 and added an update in 2014. I didn't need to do anything special to get thread support this time around on Cygwin: I don't know if defaults have changed or this was platform-related (I was using Mac OS X back then).

      — Ken