Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promises-1.02 install fails on Ubuntu 18.04 plenv #88

Closed
douglasdd opened this issue Dec 26, 2019 · 6 comments
Closed

Promises-1.02 install fails on Ubuntu 18.04 plenv #88

douglasdd opened this issue Dec 26, 2019 · 6 comments

Comments

@douglasdd
Copy link

@douglasdd douglasdd commented Dec 26, 2019

Perhaps similar to #87

I've tried and failed to instal AnyEvent-HTTP-2.24 then Promises-1.02 into two different fresh perl installations (using the plenv binary manager: https://github.com/tokuhirom/plenv).

Attached:

  • the full console log bug-report-full.txt

  • the build logs from perl 5.30.1 promises-build-5-30-1.log
    and the SAME result from perl 5.14.4!) promises-build-5-14-4.log

    Linux Ubuntu 18.04 / x86_64
    $ uname -a
    Linux rowan 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

    $ env | egrep '^(PATH|PERL|PLENV)'
    PATH=/home/ddd/.plenv/shims:/home/ddd/.plenv/bin:/home/ddd/bin/linux-x86_64:/home/ddd/bin:/home/ddd/ds/bin:/home/ddd/work/home/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/games:/snap/bin:/bin
    PLENV_SHELL=bash
    PLENV_VERSION=5.30.1

    $ type -a perl
    perl is /home/ddd/.plenv/shims/perl
    perl is /usr/bin/perl

    $ perl --version
    This is perl 5, version 30, subversion 1 (v5.30.1) built for x86_64-linux
    ...
    <<attached full output from perl -V>>

    $ env | egrep '^(PATH|PERL|PLENV)'
    PATH=/home/ddd/.plenv/shims:/home/ddd/.plenv/bin:/home/ddd/bin/linux-x86_64:/home/ddd/bin:/home/ddd/ds/bin:/home/ddd/work/home/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/games:/snap/bin:/bin
    PLENV_SHELL=bash
    PLENV_VERSION=5.30.1

    $ type -a perl
    perl is /home/ddd/.plenv/shims/perl
    perl is /usr/bin/perl

    $ plenv install 5.30.1
    $ plenv local 5.30.1
    $ plenv shell 5.30.1
    $ plenv versions
    system
    5.14.4

    • 5.30.1 (set by PLENV_VERSION environment variable)

    $ type -a perl
    perl is /home/ddd/.plenv/shims/perl
    perl is /usr/bin/perl

    $ plenv install-cpanm
    $ type -a cpanm
    cpanm is /home/ddd/.plenv/shims/cpanm
    $ plenv which cpanm
    /home/ddd/.plenv/versions/5.30.1/bin/cpanm

    $ cpanm AnyEvent::HTTP
    --> Working on AnyEvent::HTTP
    ...
    4 distributions installed

    $ cpanm Promises
    --> Working on Promises
    ...
    Test Summary Report

    t/031-deferred-AE.t (Wstat: 256 Tests: 2 Failed: 1)
    Failed test: 2
    Non-zero exit status: 1
    t/032-deferred-AnyEvent.t (Wstat: 256 Tests: 2 Failed: 1)
    Failed test: 2
    Non-zero exit status: 1
    Files=36, Tests=155, 10 wallclock secs ( 0.14 usr 0.08 sys + 4.07 cusr 0.54 csys = 4.83 CPU)
    Result: FAIL
    Failed 2/36 test programs. 2/155 subtests failed.
    Makefile:947: recipe for target 'test_dynamic' failed
    make: *** [test_dynamic] Error 255
    -> FAIL Installing Promises failed. See /home/ddd/.cpanm/work/1577367375.6160/build.log for details. Retry with --force to force install it.

@yanick

This comment has been minimized.

Copy link
Collaborator

@yanick yanick commented Dec 29, 2019

What is the output of t/031-deferred-AE.t ?

@yanick

This comment has been minimized.

Copy link
Collaborator

@yanick yanick commented Dec 29, 2019

Looks like the line my $w = AnyEvent->timer( after => 0, cb => sub{ $cv->send } ); is not playing ball, whereas setting the after to be 1 works. Hmmm...

@brianwisti

This comment has been minimized.

Copy link

@brianwisti brianwisti commented Jan 6, 2020

I got bit by this too. Same error output.

Build error

$ cpanm -V Promises
...
t/031-deferred-AE.t .............. 1/? 
#   Failed test '... run asynchronously'
#   at t/031-deferred-AE.t line 26.
#          got: '0'
#     expected: '1'
# Looks like you failed 1 test of 2.
t/031-deferred-AE.t .............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests 
t/031-deferred-io-async.t ........ ok   
t/032-deferred-AnyEvent.t ........ 1/? 
#   Failed test '... run asynchronously'
#   at t/032-deferred-AnyEvent.t line 26.
#          got: '0'
#     expected: '1'
# Looks like you failed 1 test of 2.
t/032-deferred-AnyEvent.t ........ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests 
...
Test Summary Report
-------------------
t/031-deferred-AE.t            (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/032-deferred-AnyEvent.t      (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
Files=36, Tests=170, 12 wallclock secs ( 0.16 usr  0.03 sys +  2.65 cusr  0.33 csys =  3.17 CPU)
Result: FAIL
Failed 2/36 test programs. 2/170 subtests failed.
make: *** [Makefile:949: test_dynamic] Error 255
FAIL
! Installing Promises failed. See /home/randomgeek/.cpanm/work/1578272281.32148/build.log for details. Retry with --force to force install it.

System

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Pop!_OS 19.10
Release:        19.10
Codename:       eoan
$ perl --version

This is perl 5, version 30, subversion 0 (v5.30.0) built for x86_64-linux
(with 1 registered patch, see perl -V for more detail)
$ perl -V | grep -i patch
  Locally applied patches:
    Devel::PatchPerl 1.52
@yanick

This comment has been minimized.

Copy link
Collaborator

@yanick yanick commented Jan 7, 2020

Patch on tests written. Release should happen sometime tonight

@brianwisti

This comment has been minimized.

Copy link

@brianwisti brianwisti commented Jan 7, 2020

Yay, thanks!

@yanick

This comment has been minimized.

Copy link
Collaborator

@yanick yanick commented Jan 7, 2020

aaaand it's on its way to CPAN! \o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.