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

Installation Inline::C fails in Ubuntu 14.04.02 #50

Closed
JJ opened this issue Sep 6, 2015 · 8 comments
Closed

Installation Inline::C fails in Ubuntu 14.04.02 #50

JJ opened this issue Sep 6, 2015 · 8 comments

Comments

@JJ
Copy link

JJ commented Sep 6, 2015

cpanm (App::cpanminus) 1.7006 on perl 5.020000 built for x86_64-linux
Work directory is /home/jmerelo/.cpanm/work/1441557932.21398
You have make /usr/bin/make
You have LWP 6.08
You have /bin/tar: tar (GNU tar) 1.27.1
Copyright © 2013 Free Software Foundation, Inc.
Licencia GPLv3+: GNU GPL versión 3 o superior <http://gnu.org/licenses/gpl.html>.
Esto es software libre: es libre de cambiarlo y redistribuirlo.
NO HAY NINGUNA GARANTÍA, en la medida que lo permita la ley.

Escrito por John Gilmore y Jay Fenlason.
You have /usr/bin/unzip
Searching Inline::C on cpanmetadb ...
--> Working on Inline::C
Fetching http://www.cpan.org/authors/id/I/IN/INGY/Inline-C-0.76.tar.gz
-> OK
Unpacking Inline-C-0.76.tar.gz
Entering Inline-C-0.76
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.06)
Checking if you have File::ShareDir::Install 0.06 ... Yes (0.10)
Configuring Inline-C-0.76
Running Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Inline::C
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Pegex 0.58 ... Yes (0.60)
Checking if you have Inline 0.79 ... Yes (0.80)
Checking if you have Parse::RecDescent 1.967009 ... Yes (1.967009)
Checking if you have ExtUtils::MakeMaker 7.00 ... Yes (7.06)
Checking if you have File::Copy::Recursive 0 ... Yes (0.38)
Checking if you have File::Spec 0.8 ... Yes (3.47)
Checking if you have YAML::XS 0 ... Yes (0.59)
Checking if you have Test::More 0.88 ... Yes (1.001014)
Checking if you have version 0.77 ... Yes (0.9908)
Checking if you have IO::All 0 ... Yes (0.86)
Checking if you have Test::Warn 0.23 ... Yes (0.30)
Checking if you have autodie 0 ... Yes (2.23)
Building and testing Inline-C-0.76
cp share/inline-c.pgx blib/lib/auto/share/dist/Inline-C/inline-c.pgx
cp lib/Inline/C/Parser/Pegex/AST.pm blib/lib/Inline/C/Parser/Pegex/AST.pm
cp lib/Inline/C/Parser/RegExp.pm blib/lib/Inline/C/Parser/RegExp.pm
cp lib/Inline/C/Cookbook.pod blib/lib/Inline/C/Cookbook.pod
cp lib/Inline/C.pod blib/lib/Inline/C.pod
cp lib/Inline/C/Parser/Pegex.pm blib/lib/Inline/C/Parser/Pegex.pm
cp lib/Inline/C/ParsePegex.pod blib/lib/Inline/C/ParsePegex.pod
cp lib/Inline/C/ParseRegExp.pod blib/lib/Inline/C/ParseRegExp.pod
cp lib/Inline/C/Parser/Pegex/Grammar.pm blib/lib/Inline/C/Parser/Pegex/Grammar.pm
cp lib/Inline/C/Parser.pm blib/lib/Inline/C/Parser.pm
cp lib/Inline/C/ParseRecDescent.pod blib/lib/Inline/C/ParseRecDescent.pod
cp lib/Inline/C/Parser/RecDescent.pm blib/lib/Inline/C/Parser/RecDescent.pm
cp lib/Inline/C.pm blib/lib/Inline/C.pm
Manifying 5 pod documents
Skip blib/lib/auto/share/dist/Inline-C/inline-c.pgx (unchanged)
PERL_DL_NONLAZY=1 "/home/jmerelo/perl5/perlbrew/perls/perl-5.20.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/000-require-modules.t .. ok
t/01syntax.t ............. ok
t/02config.t ............. ok
t/03typemap.t ............ ok
t/04perlapi.t ............ ok
t/05xsmode.t ............. ok
t/06parseregexp.t ........ ok
t/07typemap_multi.t ...... ok
t/08taint.t .............. ok
This test could take a couple of minutes to run
t/09parser.t ............. ok
t/10callback.t ........... ok
t/11default_readonly.t ... ok
t/14void_arg.t ........... ok
t/14void_arg_PRD.t ....... ok
t/15ccflags.t ............ ok
t/16ccflagsex.t .......... ok
t/17prehead.t ............ ok
t/18quote_space.t ........ ok
t/19INC.t ................ ok
t/20eval.t ............... ok
t/21read_DATA.t .......... ok
t/22read_DATA_2.t ........ ok
t/23validate.t ........... ok
t/24prefix.t ............. ok
t/25proto.t .............. ok
t/26fork.t ............... ok

#   Failed test 'make test'
#   at t/27inline_maker.t line 60.
# make[1]: se ingresa al directorio «/home/jmerelo/.cpanm/work/1441557932.21398/Inline-C-0.76/_Inline_27inline_maker.26217/src dir»
# cp lib/Boo/Far/data.txt blib/lib/Boo/Far/data.txt
# cp lib/Boo/Far.pm blib/lib/Boo/Far.pm
# cp lib/Boo.pm blib/lib/Boo.pm
# cp lib/Boo/Far/Faz.pm blib/lib/Boo/Far/Faz.pm
# "/home/jmerelo/perl5/perlbrew/perls/perl-5.20.0/bin/perl" -Mblib -MInline=NOISY,_INSTALL_ -MBoo -e"my %A = (modinlname => 'Boo.inl', module => 'Boo'); my %S = (API => \%A); Inline::satisfy_makefile_dep(\%S);" 2.01 blib/arch
# Can't locate Boo.pm in @INC (you may need to install the Boo module) (@INC contains: /home/jmerelo/.cpanm/work/1441557932.21398/Inline-C-0.76/_Inline_27inline_maker.26217/src dir/../../blib/arch /home/jmerelo/.cpanm/work/1441557932.21398/Inline-C-0.76/_Inline_27inline_maker.26217/src dir/../../blib/lib /home/jmerelo/.cpanm/work/1441557932.21398/Inline-C-0.76/blib/lib /home/jmerelo/.cpanm/work/1441557932.21398/Inline-C-0.76/blib/arch /home/jmerelo/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0/x86_64-linux /home/jmerelo/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0 /home/jmerelo/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-linux /home/jmerelo/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0 .).
# BEGIN failed--compilation aborted.
# make[1]: *** [Boo.inl] Error 2
# make[1]: se sale del directorio «/home/jmerelo/.cpanm/work/1441557932.21398/Inline-C-0.76/_Inline_27inline_maker.26217/src dir»

#   Failed test 'make test'
#   at t/27inline_maker.t line 60.
# make[1]: se ingresa al directorio «/home/jmerelo/.cpanm/work/1441557932.21398/Inline-C-0.76/_Inline_27inline_maker.26217/src dir»
# cp Simple.pm blib/lib/Math/Simple.pm
# "/home/jmerelo/perl5/perlbrew/perls/perl-5.20.0/bin/perl" -Mblib -MInline=NOISY,_INSTALL_ -MMath::Simple -e"my %A = (modinlname => 'Math-Simple.inl', module => 'Math::Simple'); my %S = (API => \%A); Inline::satisfy_makefile_dep(\%S);" 1.23 blib/arch
# Can't locate Math/Simple.pm in @INC (you may need to install the Math::Simple module) (@INC contains: /home/jmerelo/.cpanm/work/1441557932.21398/Inline-C-0.76/_Inline_27inline_maker.26217/src dir/../../blib/arch /home/jmerelo/.cpanm/work/1441557932.21398/Inline-C-0.76/_Inline_27inline_maker.26217/src dir/../../blib/lib /home/jmerelo/.cpanm/work/1441557932.21398/Inline-C-0.76/blib/lib /home/jmerelo/.cpanm/work/1441557932.21398/Inline-C-0.76/blib/arch /home/jmerelo/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0/x86_64-linux /home/jmerelo/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0 /home/jmerelo/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-linux /home/jmerelo/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0 .).
# BEGIN failed--compilation aborted.
# make[1]: *** [Math-Simple.inl] Error 2
# make[1]: se sale del directorio «/home/jmerelo/.cpanm/work/1441557932.21398/Inline-C-0.76/_Inline_27inline_maker.26217/src dir»
# Looks like you failed 2 tests of 8.
t/27inline_maker.t ....... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/8 subtests 
t/28autowrap.t ........... ok
t/30cppflags.t ........... ok
t/parse-pegex.t .......... ok
t/pegex-parser.t ......... skipped: $ENV{PERL_INLINE_DEVELOPER_TEST} not set
t/release-pod-syntax.t ... skipped: these tests are for release candidate testing

Test Summary Report
-------------------
t/27inline_maker.t     (Wstat: 512 Tests: 8 Failed: 2)
  Failed tests:  2, 6
  Non-zero exit status: 2
t/parse-pegex.t        (Wstat: 0 Tests: 24 Failed: 0)
  TODO passed:   4, 7-9
Files=32, Tests=154, 28 wallclock secs ( 0.08 usr  0.01 sys + 22.85 cusr  3.81 csys = 26.75 CPU)
Result: FAIL
Failed 1/32 test programs. 2/154 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing Inline::C failed. See /home/jmerelo/.cpanm/work/1441557932.21398/build.log for details. Retry with --force to force install it.

After installing Math::Simple by hand, it fails with a different error

#   Failed test 'make test'
#   at t/27inline_maker.t line 60.
# make[1]: se ingresa al directorio «/home/jmerelo/.cpanm/work/1441558253.27493/Inline-C-0.76/_Inline_27inline_maker.32317/src dir»
# cp Simple.pm blib/lib/Math/Simple.pm
# "/home/jmerelo/perl5/perlbrew/perls/perl-5.20.0/bin/perl" -Mblib -MInline=NOISY,_INSTALL_ -MMath::Simple -e"my %A = (modinlname => 'Math-Simple.inl', module => 'Math::Simple'); my %S = (API => \%A); Inline::satisfy_makefile_dep(\%S);" 1.23 blib/arch
# PERL_DL_NONLAZY=1 "/home/jmerelo/perl5/perlbrew/perls/perl-5.20.0/bin/perl" "-Iblib/lib" "-Iblib/arch" test.pl
#1..2
# The extension 'Math::Simple' is not properly installed in path:
#   'blib/arch'
# 
# If this is a CPAN/distributed module, you may need to reinstall it on your
# system.
# 
# To allow Inline to compile the module in a temporary cache, simply remove the
# Inline config option 'VERSION=' from the Math::Simple module.
# 
#  at test.pl line 0.
# INIT failed--call queue aborted, <DATA> line 1.
# # Looks like your test exited with 2 before it could output anything.
# make[1]: *** [test_dynamic] Error 2
# make[1]: se sale del directorio «/home/jmerelo/.cpanm/work/1441558253.27493/Inline-C-0.76/_Inline_27inline_maker.32317/src dir»
# Looks like you failed 2 tests of 8.
@jomo666
Copy link

jomo666 commented Apr 21, 2016

Exactly the same problem, on OS X, with perl 5.24.0.-RC1. Any idea how to install Inline::C?

@sisyphus
Copy link
Collaborator

From: jomo666
Sent: Friday, April 22, 2016 2:52 AM
To: ingydotnet/inline-c-pm
Subject: Re: [ingydotnet/inline-c-pm] Installation Inline::C fails in Ubuntu
14.04.02 (#50)

Exactly the same problem, on OS X, with perl 5.24.0.-RC1. Any idea how to
install Inline::C?

I would just install it anyway (cpan -fi Inline::C).
IIRC, these failures relate to the way that Inline::C modules need to be
packaged and shouldn't affect you unless you're wanting to package such a
module.

Interesting that you're getting this with perl-5.24.0-RC1 as Inline::C
builds fine on my Ubuntu 14.04 with 5.24.0-RC1.
The critical thing is the version of ExtUtils::MakeMaker and 5.24.0-RC1
ships with version 7.10_01. Has a different version of that module been
installed on your 5.24.0-RC1 ?

I get the same errors as you if I install ExtUtils-MakeMaker-7.12, and I
think the problem goes back at least as far as 7.11_01.
See also #51.

Cheers,
Rob

@jomo666
Copy link

jomo666 commented Apr 22, 2016

You're right with the ExtUtils::MakeMaker version. Thank you for the analysis. Me using plenv. Easy repo.

plenv install 5.24.0-RC1
plenv local 5.24.0-RC1
plenv install-cpanm #this installs the ExtUtils::MakeMaker v7.12
#Successfully installed ExtUtils-MakeMaker-7.12 (upgraded from 7.10_01)
plenv rehash
cpanm Inline::C

The forced install looks like it works :), but to be honest i'm not very happy with the forced installed modules. Anyway, thanx for the suggestion and help.

@sisyphus
Copy link
Collaborator

From: jomo666
Sent: Friday, April 22, 2016 10:00 PM
To: ingydotnet/inline-c-pm
Cc: sisyphus ; Comment
Subject: Re: [ingydotnet/inline-c-pm] Installation Inline::C fails in Ubuntu
14.04.02 (#50)

The forced install looks like it works :), but to be honest i'm not very
happy with the forced installed modules. Anyway, thanx for the suggestion
and help.

Yes, installing with "force" often leaves one feeling uneasy.
I'm inclined to think that the problem here is ExtUtils-MakeMaker-7.12, but
it's not something I've properly analysed.
This failure has appeared (EU-MM-7.06) and disappeared (EU-MM-7.08) , as
pointed out in #49 ... and
now it's back again with EU-MM-7.12.
It needs to be sorted out properly.

Next time, consider installing Inline::C before updating EU::MM :-)

Cheers,
Rob

@sisyphus
Copy link
Collaborator

Tests passing again on Ubuntu for me with ExtUtils-MakeMaker-7.14.

@jomo666
Copy link

jomo666 commented Apr 24, 2016

YES! After upgrading the EU-MM to the newest 7.14, the Inline::C is installed cleanly with 5.24.0-RC1 in the OS X too. Thank you. ;)

@mohawk2
Copy link
Collaborator

mohawk2 commented May 12, 2017

Is this now fixed? Can it be closed?

@JJ
Copy link
Author

JJ commented May 12, 2017

You could as well close it. No problem.

@mohawk2 mohawk2 closed this as completed May 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants