Discussion:
Re: Trying to run i3wm tests
(too old to reply)
Michael Stapelberg
2016-04-21 07:24:10 UTC
Permalink
On Thu, Apr 21, 2016 at 5:13 AM, Laurence Gonsalves <
Hello.
I'm trying to run the i3wm tests. I'm following the instructions in
docs/testsuite. I ran "sudo apt-get install cpanminus" and "sudo cpanm
You’ll need to do what the error message says: install the
X11::XCB::Connection module (it’s part of the X11::XCB distribution). If
you’re using Debian testing, you can install the Debian package
libxcb-x11-perl. Otherwise, use “cpanm X11::XCB”.

Since we do in fact have this dependency specified in Makefile.PL (see
https://github.com/i3/i3/blob/2a4524a1e1de0f86751d4aa57814290826c6aed9/testcases/Makefile.PL#L12),
I’m thinking the installation of X11::XCB was attempted by cpanm but failed
for some reason. I suggest to try again and check the output carefully.
/home/laurence/src/third-party/i3/testcases/lib /etc/perl
/usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18
/usr/share/perl/5.18 /usr/local/lib/site_perl .) at
./complete-run.pl line 42.
BEGIN failed--compilation aborted at ./complete-run.pl line 42.
How can I fix this problem?
Thanks
--
Best regards,
Michael
Laurence Gonsalves
2016-04-21 17:00:41 UTC
Permalink
Post by Michael Stapelberg
Since we do in fact have this dependency specified in Makefile.PL (see
https://github.com/i3/i3/blob/2a4524a1e1de0f86751d4aa57814290826c6aed9/testcases/Makefile.PL#L12),
I’m thinking the installation of X11::XCB was attempted by cpanm but failed
for some reason. I suggest to try again and check the output carefully.
Ah. Yes, I looked over the output of cpanm and can see that it reported:

! Installing X11::XCB failed. See
/home/laurence/.cpanm/work/1461207541.7142/build.log for details. Retry
with --force to force install it.
! Installing the dependencies failed: Module 'X11::XCB' is not installed,
Module 'Inline::C' is not installed

So it looks like both Inline::C and X11::XCB failed. That build.log file says:

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.pm blib/lib/Inline/C/Parser.pm
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/Parser/RegExp.pm blib/lib/Inline/C/Parser/RegExp.pm
cp lib/Inline/C/Parser/RecDescent.pm blib/lib/Inline/C/Parser/RecDescent.pm
cp lib/Inline/C.pod blib/lib/Inline/C.pod
cp lib/Inline/C/Parser/Pegex/Grammar.pm
blib/lib/Inline/C/Parser/Pegex/Grammar.pm
cp lib/Inline/C/Cookbook.pod blib/lib/Inline/C/Cookbook.pod
cp lib/Inline/C/ParseRegExp.pod blib/lib/Inline/C/ParseRegExp.pod
cp lib/Inline/C.pm blib/lib/Inline/C.pm
cp lib/Inline/C/ParseRecDescent.pod blib/lib/Inline/C/ParseRecDescent.pod
Manifying 5 pod documents
Skip blib/lib/auto/share/dist/Inline-C/inline-c.pgx (unchanged)
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"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]: Entering directory
`/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.18725/src
dir'
# cp Simple.pm blib/lib/Math/Simple.pm
# "/usr/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/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.18725/src
dir/../../blib/arch
/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.18725/src
dir/../../blib/lib
/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/blib/lib
/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/blib/arch
/etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18
/usr/share/perl/5.18 /usr/local/lib/site_perl .).
# BEGIN failed--compilation aborted.
# make[1]: *** [Math-Simple.inl] Error 2
# make[1]: Leaving directory
`/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.18725/src
dir'

# Failed test 'make test'
# at t/27inline_maker.t line 60.
# make[1]: Entering directory
`/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.18725/src
dir'
# cp lib/Boo/Far/data.txt blib/lib/Boo/Far/data.txt
# cp lib/Boo.pm blib/lib/Boo.pm
# cp lib/Boo/Far/Faz.pm blib/lib/Boo/Far/Faz.pm
# cp lib/Boo/Far.pm blib/lib/Boo/Far.pm
# "/usr/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/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.18725/src
dir/../../blib/arch
/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.18725/src
dir/../../blib/lib
/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/blib/lib
/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/blib/arch
/etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18
/usr/share/perl/5.18 /usr/local/lib/site_perl .).
# BEGIN failed--compilation aborted.
# make[1]: *** [Boo.inl] Error 2
# make[1]: Leaving directory
`/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.18725/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, 38 wallclock secs ( 0.10 usr 0.01 sys +
32.73 cusr 5.56 csys = 38.40 CPU)
Result: FAIL
Failed 1/32 test programs. 2/154 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing Inline::C failed. See
/home/laurence/.cpanm/work/1461207541.7142/build.log for details.
Retry with --force to force install it.

...and later...

Building and testing X11-XCB-0.15
cp lib/X11/XCB/Sizehints.pm blib/lib/X11/XCB/Sizehints.pm
cp lib/X11/XCB/Event/Focus.pm blib/lib/X11/XCB/Event/Focus.pm
cp lib/X11/XCB/Color.pm blib/lib/X11/XCB/Color.pm
cp lib/X11/XCB/Event/Generic.pm blib/lib/X11/XCB/Event/Generic.pm
cp lib/X11/XCB/Connection.pm blib/lib/X11/XCB/Connection.pm
cp lib/X11/XCB/Sizehints/Aspect.pm blib/lib/X11/XCB/Sizehints/Aspect.pm
cp lib/X11/XCB/Screen.pm blib/lib/X11/XCB/Screen.pm
cp lib/X11/XCB/Event/MapNotify.pm blib/lib/X11/XCB/Event/MapNotify.pm
cp lib/X11/XCB/Event/PropertyNotify.pm
blib/lib/X11/XCB/Event/PropertyNotify.pm
cp lib/X11/XCB/Event/ClientMessage.pm
blib/lib/X11/XCB/Event/ClientMessage.pm
cp _GenerateMyXS.pm blib/lib/X11/_GenerateMyXS.pm
cp lib/X11/XCB/Atom.pm blib/lib/X11/XCB/Atom.pm
cp lib/X11/XCB/Rect.pm blib/lib/X11/XCB/Rect.pm
cp lib/X11/XCB.pm blib/lib/X11/XCB.pm
cp lib/X11/XCB/Window.pm blib/lib/X11/XCB/Window.pm
Running Mkbootstrap for XCB ()
chmod 644 "XCB.bs"
"/usr/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty'
-- XCB.bs blib/arch/auto/X11/XCB/XCB.bs 644
"/usr/bin/perl" "-Iinc" -M_GenerateMyXS -E '_GenerateMyXS::generate()'
Smartmatch is experimental at _GenerateMyXS.pm line 567.
Smartmatch is experimental at _GenerateMyXS.pm line 595.
Use of uninitialized value $path in -d at _GenerateMyXS.pm line 419.
Use of uninitialized value $path in concatenation (.) or string at
_GenerateMyXS.pm line 419.
: No such file or directory
make: *** [XCB_xs.inc] Error 2
-> FAIL Installing X11::XCB failed. See
/home/laurence/.cpanm/work/1461207541.7142/build.log for details.
Retry with --force to force install it.

I tried looking at _GenerateMyXS.pm line 419 and it's the last line in this
snippet:

sub generate {
my $path = ExtUtils::PkgConfig->variable('xcb-proto', 'xcbincludedir');
my @xcb_xmls = qw/xproto.xml xinerama.xml/;

-d $path or die "$path: $!\n";

I don't get how $path could be uninitialized seeing as how it's initialized two
lines earlier.

I tried to figure out the Inline error by looking at t/27inline_maker.t, and
the line in question is just:

ok($result[0], "make $target");

So I think that's just invoking "make test" somewhere.

I went into ~/.cpanm/work/1461207541.7142/Inline-C-0.76 and ran "make test" by
hand, and got pretty much the same errors as above including "Can't locate
Math/Simple.pm in @INC (you may need to install the Math::Simple module)". I
then tried manually installing Math::Simple with "sudo cpanm Math::Simple" and
re-ran "make test". Now it says:

# Failed test 'make test'
# at t/27inline_maker.t line 60.
# make[1]: Entering directory
`/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.13286/src
dir'
# cp Simple.pm blib/lib/Math/Simple.pm
# "/usr/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 "/usr/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]: Leaving directory
`/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.13286/src
dir'

# Failed test 'make test'
# at t/27inline_maker.t line 60.

I'm not sure how to proceed in debugging this. I forgot all the Perl I knew
almost 20 years ago, and have no experience with cpan or cpanm.
Michael Stapelberg
2016-04-23 11:33:20 UTC
Permalink
It sounds to me like this is an issue with the Inline::C module, so can you
report this at the Inline::C bugtracker please?

On Thu, Apr 21, 2016 at 7:00 PM, Laurence Gonsalves <
Post by Michael Stapelberg
Post by Michael Stapelberg
Since we do in fact have this dependency specified in Makefile.PL (see
https://github.com/i3/i3/blob/2a4524a1e1de0f86751d4aa57814290826c6aed9/testcases/Makefile.PL#L12
),
Post by Michael Stapelberg
I’m thinking the installation of X11::XCB was attempted by cpanm but
failed
Post by Michael Stapelberg
for some reason. I suggest to try again and check the output carefully.
! Installing X11::XCB failed. See
/home/laurence/.cpanm/work/1461207541.7142/build.log for details. Retry
with --force to force install it.
! Installing the dependencies failed: Module 'X11::XCB' is not installed,
Module 'Inline::C' is not installed
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.pm blib/lib/Inline/C/Parser.pm
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/Parser/RegExp.pm blib/lib/Inline/C/Parser/RegExp.pm
cp lib/Inline/C/Parser/RecDescent.pm
blib/lib/Inline/C/Parser/RecDescent.pm
cp lib/Inline/C.pod blib/lib/Inline/C.pod
cp lib/Inline/C/Parser/Pegex/Grammar.pm
blib/lib/Inline/C/Parser/Pegex/Grammar.pm
cp lib/Inline/C/Cookbook.pod blib/lib/Inline/C/Cookbook.pod
cp lib/Inline/C/ParseRegExp.pod blib/lib/Inline/C/ParseRegExp.pod
cp lib/Inline/C.pm blib/lib/Inline/C.pm
cp lib/Inline/C/ParseRecDescent.pod
blib/lib/Inline/C/ParseRecDescent.pod
Manifying 5 pod documents
Skip blib/lib/auto/share/dist/Inline-C/inline-c.pgx (unchanged)
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"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]: Entering directory
`/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.18725/src
dir'
# cp Simple.pm blib/lib/Math/Simple.pm
# "/usr/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
/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.18725/src
dir/../../blib/arch
/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.18725/src
dir/../../blib/lib
/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/blib/lib
/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/blib/arch
/etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18
/usr/share/perl/5.18 /usr/local/lib/site_perl .).
# BEGIN failed--compilation aborted.
# make[1]: *** [Math-Simple.inl] Error 2
# make[1]: Leaving directory
`/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.18725/src
dir'
# Failed test 'make test'
# at t/27inline_maker.t line 60.
# make[1]: Entering directory
`/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.18725/src
dir'
# cp lib/Boo/Far/data.txt blib/lib/Boo/Far/data.txt
# cp lib/Boo.pm blib/lib/Boo.pm
# cp lib/Boo/Far/Faz.pm blib/lib/Boo/Far/Faz.pm
# cp lib/Boo/Far.pm blib/lib/Boo/Far.pm
# "/usr/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
/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.18725/src
dir/../../blib/arch
/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.18725/src
dir/../../blib/lib
/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/blib/lib
/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/blib/arch
/etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18
/usr/share/perl/5.18 /usr/local/lib/site_perl .).
# BEGIN failed--compilation aborted.
# make[1]: *** [Boo.inl] Error 2
# make[1]: Leaving directory
`/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.18725/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, 38 wallclock secs ( 0.10 usr 0.01 sys +
32.73 cusr 5.56 csys = 38.40 CPU)
Result: FAIL
Failed 1/32 test programs. 2/154 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing Inline::C failed. See
/home/laurence/.cpanm/work/1461207541.7142/build.log for details.
Retry with --force to force install it.
...and later...
Building and testing X11-XCB-0.15
cp lib/X11/XCB/Sizehints.pm blib/lib/X11/XCB/Sizehints.pm
cp lib/X11/XCB/Event/Focus.pm blib/lib/X11/XCB/Event/Focus.pm
cp lib/X11/XCB/Color.pm blib/lib/X11/XCB/Color.pm
cp lib/X11/XCB/Event/Generic.pm blib/lib/X11/XCB/Event/Generic.pm
cp lib/X11/XCB/Connection.pm blib/lib/X11/XCB/Connection.pm
cp lib/X11/XCB/Sizehints/Aspect.pm blib/lib/X11/XCB/Sizehints/Aspect.pm
cp lib/X11/XCB/Screen.pm blib/lib/X11/XCB/Screen.pm
cp lib/X11/XCB/Event/MapNotify.pm blib/lib/X11/XCB/Event/MapNotify.pm
cp lib/X11/XCB/Event/PropertyNotify.pm
blib/lib/X11/XCB/Event/PropertyNotify.pm
cp lib/X11/XCB/Event/ClientMessage.pm
blib/lib/X11/XCB/Event/ClientMessage.pm
cp _GenerateMyXS.pm blib/lib/X11/_GenerateMyXS.pm
cp lib/X11/XCB/Atom.pm blib/lib/X11/XCB/Atom.pm
cp lib/X11/XCB/Rect.pm blib/lib/X11/XCB/Rect.pm
cp lib/X11/XCB.pm blib/lib/X11/XCB.pm
cp lib/X11/XCB/Window.pm blib/lib/X11/XCB/Window.pm
Running Mkbootstrap for XCB ()
chmod 644 "XCB.bs"
"/usr/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty'
-- XCB.bs blib/arch/auto/X11/XCB/XCB.bs 644
"/usr/bin/perl" "-Iinc" -M_GenerateMyXS -E '_GenerateMyXS::generate()'
Smartmatch is experimental at _GenerateMyXS.pm line 567.
Smartmatch is experimental at _GenerateMyXS.pm line 595.
Use of uninitialized value $path in -d at _GenerateMyXS.pm line 419.
Use of uninitialized value $path in concatenation (.) or string at
_GenerateMyXS.pm line 419.
: No such file or directory
make: *** [XCB_xs.inc] Error 2
-> FAIL Installing X11::XCB failed. See
/home/laurence/.cpanm/work/1461207541.7142/build.log for details.
Retry with --force to force install it.
I tried looking at _GenerateMyXS.pm line 419 and it's the last line in this
sub generate {
my $path = ExtUtils::PkgConfig->variable('xcb-proto',
'xcbincludedir');
-d $path or die "$path: $!\n";
I don't get how $path could be uninitialized seeing as how it's initialized two
lines earlier.
I tried to figure out the Inline error by looking at t/27inline_maker.t, and
ok($result[0], "make $target");
So I think that's just invoking "make test" somewhere.
I went into ~/.cpanm/work/1461207541.7142/Inline-C-0.76 and ran "make test" by
hand, and got pretty much the same errors as above including "Can't locate
then tried manually installing Math::Simple with "sudo cpanm Math::Simple" and
# Failed test 'make test'
# at t/27inline_maker.t line 60.
# make[1]: Entering directory
`/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.13286/src
dir'
# cp Simple.pm blib/lib/Math/Simple.pm
# "/usr/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 "/usr/bin/perl" "-Iblib/lib" "-Iblib/arch" test.pl
# 1..2
# '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]: Leaving directory
`/home/laurence/.cpanm/work/1461207541.7142/Inline-C-0.76/_Inline_27inline_maker.13286/src
dir'
# Failed test 'make test'
# at t/27inline_maker.t line 60.
I'm not sure how to proceed in debugging this. I forgot all the Perl I knew
almost 20 years ago, and have no experience with cpan or cpanm.
--
Best regards,
Michael
Loading...