dnessett has asked for the wisdom of the Perl Monks concerning the following question:

I am new to PerlMonks. I used super search in an attempt to find an answer to this question, but it returned no hits. If there is some other way to search for these kinds of questions, please let me know.

After successfully installing Dist::Zilla cpan install of File::HomeDir fails, I attempted to upgrade my installed modules. However, the upgrade of B::C is failing. I am insufficiently familiar with cpan to figure out the problem/solution. If someone can help, that would be great.

Here is the cpan command and its output.

cpan[2]> upgrade B::C CPAN: Storable loaded ok (v2.21) Going to read '/root/.cpan/Metadata' Database was generated on Wed, 04 Aug 2010 12:27:02 GMT Package namespace installed latest in CPAN file B::C 1.04_01 1.27 RURBAN/B-C-1.27.tar.gz Running install for module 'B::C' Running make for R/RU/RURBAN/B-C-1.27.tar.gz CPAN: Digest::SHA loaded ok (v5.48) CPAN: Compress::Zlib loaded ok (v2.03) Checksum for /root/.cpan/sources/authors/id/R/RU/RURBAN/B-C-1.27.tar.g +z ok Scanning cache /root/.cpan/build for sizes ...................................----------------------------------- +------DONE DEL(1/22): /root/.cpan/build/XML-Twig-3.35-bBcJo6 CPAN: YAML loaded ok (v0.71) DEL(2/22): /root/.cpan/build/XML-Twig-3.35-bBcJo6.yml DEL(3/22): /root/.cpan/build/XSLoader-0.10-kj7N_z DEL(4/22): /root/.cpan/build/XSLoader-0.10-kj7N_z.yml DEL(5/22): /root/.cpan/build/base-2.14-iqEiNv DEL(6/22): /root/.cpan/build/base-2.14-iqEiNv.yml DEL(7/22): /root/.cpan/build/bignum-0.23-0DHGUg DEL(8/22): /root/.cpan/build/bignum-0.23-0DHGUg.yml DEL(9/22): /root/.cpan/build/constant-1.19-35L5FX DEL(10/22): /root/.cpan/build/constant-1.19-35L5FX.yml DEL(11/22): /root/.cpan/build/FCGI-0.71-2eY9RY.yml DEL(12/22): /root/.cpan/build/FCGI-0.71-2eY9RY DEL(13/22): /root/.cpan/build/CGI.pm-3.49-bQFJC9 DEL(14/22): /root/.cpan/build/CGI.pm-3.49-bQFJC9.yml DEL(15/22): /root/.cpan/build/IO-Compress-2.030-ilf4Fk DEL(16/22): /root/.cpan/build/IO-Compress-2.030-ilf4Fk.yml DEL(17/22): /root/.cpan/build/TimeDate-1.20-zTnvBb DEL(18/22): /root/.cpan/build/TimeDate-1.20-zTnvBb.yml DEL(19/22): /root/.cpan/build/Filter-1.37-8YFMDz.yml DEL(20/22): /root/.cpan/build/Filter-1.37-8YFMDz DEL(21/22): /root/.cpan/build/Locale-Codes-3.13-di2Xmv DEL(22/22): /root/.cpan/build/Locale-Codes-3.13-di2Xmv.yml CPAN: Archive::Tar loaded ok (v1.66) B-C-1.27/ B-C-1.27/Artistic B-C-1.27/bytecode.pl B-C-1.27/ByteLoader/ B-C-1.27/ByteLoader/BcVersions/ B-C-1.27/ByteLoader/BcVersions/Asm5.005002.pm B-C-1.27/ByteLoader/BcVersions/Asm5.005003.pm B-C-1.27/ByteLoader/BcVersions/Asm5.005004.pm B-C-1.27/ByteLoader/BcVersions/Asm5.005005.pm B-C-1.27/ByteLoader/BcVersions/Asm5.005008.pm B-C-1.27/ByteLoader/BcVersions/Asm5.006000.pm B-C-1.27/ByteLoader/BcVersions/Asm5.006001.pm B-C-1.27/ByteLoader/BcVersions/Asm5.006001RC1.pm B-C-1.27/ByteLoader/BcVersions/Asm5.006002.pm B-C-1.27/ByteLoader/BcVersions/Asm5.008000.pm B-C-1.27/ByteLoader/BcVersions/Asm5.008001.pm B-C-1.27/ByteLoader/BcVersions/Asm5.008002.pm B-C-1.27/ByteLoader/BcVersions/Asm5.008003.pm B-C-1.27/ByteLoader/BcVersions/Asm5.008004.pm B-C-1.27/ByteLoader/BcVersions/Asm5.008005.pm B-C-1.27/ByteLoader/BcVersions/Asm5.008006.pm B-C-1.27/ByteLoader/BcVersions/Asm5.008007.pm B-C-1.27/ByteLoader/BcVersions/Asm5.008008.pm B-C-1.27/ByteLoader/BcVersions/Asm5.008009.pm B-C-1.27/ByteLoader/BcVersions.pod B-C-1.27/ByteLoader/bytecode.h B-C-1.27/ByteLoader/ByteLoader.pm B-C-1.27/ByteLoader/ByteLoader.xs B-C-1.27/ByteLoader/hints/ B-C-1.27/ByteLoader/hints/sunos.pl B-C-1.27/ByteLoader/Makefile.PL B-C-1.27/ByteLoader/ppport.h B-C-1.27/C.xs B-C-1.27/Changes B-C-1.27/Copying B-C-1.27/hints/ B-C-1.27/hints/darwin.pl B-C-1.27/hints/openbsd.pl B-C-1.27/lib/ B-C-1.27/lib/B/ B-C-1.27/lib/B/Assembler.pm B-C-1.27/lib/B/Bblock.pm B-C-1.27/lib/B/Bytecode.pm B-C-1.27/lib/B/C.pm B-C-1.27/lib/B/CC.pm B-C-1.27/lib/B/Disassembler.pm B-C-1.27/lib/B/Stackobj.pm B-C-1.27/lib/B/Stash.pm B-C-1.27/Makefile.PL B-C-1.27/MANIFEST B-C-1.27/META.yml B-C-1.27/NOTES B-C-1.27/perlcompile.pod B-C-1.27/perloptree.pod B-C-1.27/ramblings/ B-C-1.27/ramblings/cc.notes B-C-1.27/ramblings/curcop.runtime B-C-1.27/ramblings/flip-flop B-C-1.27/ramblings/frozenperl_2010.pod B-C-1.27/ramblings/magic B-C-1.27/ramblings/reg.alloc B-C-1.27/ramblings/runtime.porting B-C-1.27/ramblings/yapc_bratislava08.pod B-C-1.27/README B-C-1.27/README.alpha B-C-1.27/regen_lib.pl B-C-1.27/script/ B-C-1.27/script/assemble B-C-1.27/script/cc_harness B-C-1.27/script/disassemble B-C-1.27/script/perlcc.PL B-C-1.27/script/pl2exe.pl B-C-1.27/SIGNATURE B-C-1.27/STATUS B-C-1.27/status_upd B-C-1.27/t/ B-C-1.27/t/asmdata.t B-C-1.27/t/assembler.t B-C-1.27/t/b.t B-C-1.27/t/bblock.t B-C-1.27/t/bytecode.t B-C-1.27/t/c.t B-C-1.27/t/cc.t B-C-1.27/t/cc_o1.t B-C-1.27/t/cc_o2.t B-C-1.27/t/c_allow_opts.t B-C-1.27/t/c_argv.t B-C-1.27/t/c_o1.t B-C-1.27/t/c_o2.t B-C-1.27/t/c_o3.t B-C-1.27/t/c_o4.t B-C-1.27/t/modules.pm B-C-1.27/t/modules.t B-C-1.27/t/mymodules B-C-1.27/t/o.t B-C-1.27/t/qr_loaded_module.pm B-C-1.27/t/stash.t B-C-1.27/t/test.pl B-C-1.27/t/testc.sh B-C-1.27/t/testcc.sh B-C-1.27/t/testcore.t B-C-1.27/t/testm.sh B-C-1.27/t/testplc.sh B-C-1.27/t/TESTS B-C-1.27/t/top100 B-C-1.27/TESTS B-C-1.27/Todo B-C-1.27/typemap CPAN: File::Temp loaded ok (v0.22) CPAN.pm: Going to build R/RU/RURBAN/B-C-1.27.tar.gz Checking if your kit is complete... Looks good Writing Makefile for ByteLoader Writing Makefile for B::C /usr/bin/perl bytecode.pl cp lib/B/C.pm blib/lib/B/C.pm cp perloptree.pod blib/lib/B/perloptree.pod cp perlcompile.pod blib/lib/B/perlcompile.pod cp lib/B/Bblock.pm blib/lib/B/Bblock.pm cp lib/B/Disassembler.pm blib/lib/B/Disassembler.pm cp lib/B/Stash.pm blib/lib/B/Stash.pm cp lib/B/CC.pm blib/lib/B/CC.pm cp lib/B/Assembler.pm blib/lib/B/Assembler.pm cp lib/B/Bytecode.pm blib/lib/B/Bytecode.pm cp lib/B/Asmdata.pm blib/lib/B/Asmdata.pm cp lib/B/C/Flags.pm blib/lib/B/C/Flags.pm cp lib/B/Stackobj.pm blib/lib/B/Stackobj.pm make[1]: Entering directory `/root/.cpan/build/B-C-1.27-_HLJ9g/ByteLoa +der' cp BcVersions.pod ../blib/lib/BcVersions.pod cp ByteLoader.pm ../blib/lib/ByteLoader.pm cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-s +trict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE +_OFFSET_BITS=64 -O2 -DVERSION=\"0.07\" -DXS_VERSION=\"0.07\" -fPIC +"-I/usr/lib/perl/5.8/CORE" byterun.c byterun.c: In function ‘byterun’: byterun.c:1274: warning: comparison is always false due to limited ran +ge of data type /usr/bin/perl /usr/local/share/perl/5.8.8/ExtUtils/xsubpp -noprototype +s -typemap /usr/share/perl/5.8/ExtUtils/typemap ByteLoader.xs > Byte +Loader.xsc && mv ByteLoader.xsc ByteLoader.c cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-s +trict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE +_OFFSET_BITS=64 -O2 -DVERSION=\"0.07\" -DXS_VERSION=\"0.07\" -fPIC +"-I/usr/lib/perl/5.8/CORE" ByteLoader.c Running Mkbootstrap for ByteLoader () chmod 644 ByteLoader.bs rm -f ../blib/arch/auto/ByteLoader/ByteLoader.so cc -shared -L/usr/local/lib byterun.o ByteLoader.o -o ../blib/arch/a +uto/ByteLoader/ByteLoader.so \ \ chmod 755 ../blib/arch/auto/ByteLoader/ByteLoader.so cp ByteLoader.bs ../blib/arch/auto/ByteLoader/ByteLoader.bs chmod 644 ../blib/arch/auto/ByteLoader/ByteLoader.bs Manifying ../blib/man3/BcVersions.3pm Manifying ../blib/man3/ByteLoader.3pm make[1]: Leaving directory `/root/.cpan/build/B-C-1.27-_HLJ9g/ByteLoad +er' /usr/bin/perl /usr/local/share/perl/5.8.8/ExtUtils/xsubpp -typemap /u +sr/share/perl/5.8/ExtUtils/typemap -typemap typemap C.xs > C.xsc && +mv C.xsc C.c cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-s +trict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE +_OFFSET_BITS=64 -O2 -DVERSION=\"1.27\" -DXS_VERSION=\"1.27\" -fPIC +"-I/usr/lib/perl/5.8/CORE" C.c Running Mkbootstrap for B::C () chmod 644 C.bs rm -f blib/arch/auto/B/C/C.so cc -shared -L/usr/local/lib C.o -o blib/arch/auto/B/C/C.so \ \ chmod 755 blib/arch/auto/B/C/C.so cp C.bs blib/arch/auto/B/C/C.bs chmod 644 blib/arch/auto/B/C/C.bs cp script/cc_harness blib/script/cc_harness /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/cc_h +arness cp script/disassemble blib/script/disassemble /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/disa +ssemble /usr/bin/perl "-Iblib/arch" "-Iblib/lib" script/perlcc.PL script/perlc +c Extracting perlcc (with variable substitutions) cp script/perlcc blib/script/perlcc /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/perl +cc cp script/assemble blib/script/assemble /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/asse +mble Manifying blib/man1/disassemble.1p Manifying blib/man1/perlcc.1p Manifying blib/man1/assemble.1p Manifying blib/man3/B::C.3pm Manifying blib/man3/B::perlcompile.3pm Manifying blib/man3/B::perloptree.3pm Manifying blib/man3/B::Disassembler.3pm Manifying blib/man3/B::Bblock.3pm Manifying blib/man3/B::Stash.3pm Manifying blib/man3/B::Assembler.3pm Manifying blib/man3/B::CC.3pm Manifying blib/man3/B::Bytecode.3pm Manifying blib/man3/B::Asmdata.3pm Manifying blib/man3/B::Stackobj.3pm RURBAN/B-C-1.27.tar.gz /usr/bin/make -- OK Running make test make[1]: Entering directory `/root/.cpan/build/B-C-1.27-_HLJ9g/ByteLoa +der' make[1]: Leaving directory `/root/.cpan/build/B-C-1.27-_HLJ9g/ByteLoad +er' PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/asmdata.t ....... ok t/assembler.t ..... ok t/b.t ............. ok t/bblock.t ........ ok t/bytecode.t ...... ok t/c.t ............. Failed 1/45 subtests (1 TODO test unexpectedly succeeded) t/c_allow_opts.t .. ok t/c_argv.t ........ 1/3 pccjQqmx.c: In function ‘perl_init_aaaa’: pccjQqmx.c:214: warning: assignment from incompatible pointer type pccjQqmx.c:294: warning: assignment from incompatible pointer type t/c_argv.t ........ ok t/c_o1.t .......... Failed 1/45 subtests (1 TODO test unexpectedly succeeded) t/c_o2.t .......... Failed 1/45 subtests (2 TODO tests unexpectedly succeeded) t/c_o3.t .......... skipped: Only if -d .svn t/c_o4.t .......... skipped: Only if -d .svn t/cc.t ............ Failed 2/103 subtests (less 61 skipped subtests: 40 okay) (2 TODO tests unexpectedly succeeded) t/cc_o1.t ......... skipped: Only if -d .svn t/cc_o2.t ......... skipped: Only if -d .svn t/modules.t ....... Subroutine B::IO::SUBPROCESS redefined at /root/.c +pan/build/B-C-1.27-_HLJ9g/blib/lib/B/C.pm line 2675. # scanning installed modules # B::C::VERSION = 1.27 # perlversion = 5.008008 # path = /usr/bin/perl # platform = linux 32bit # threaded perl t/modules.t ....... 257/400 # Failed test '65: use Moose generates non-zero binary' # at t/modules.t line 152. # Failed test '65: use Moose gives expected 'ok' output' # at t/modules.t line 158. # '' # doesn't match '(?ms-xi:ok$)' # Failed: /usr/bin/perl -Mblib blib/script/perlcc -r -e 'use Moose; p +rint "ok"' t/modules.t ....... 385/400 # 93 / 100 modules tested with B-C-1.27 - +perl-5.008008 # pass 89 / 93 (95.7%) # fail 4 / 93 (4.3%) # todo 14 / 4 (350.0%) # skip 7 / 100 (7.0% not installed) # Looks like you failed 2 tests of 400. t/modules.t ....... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/400 subtests (less 28 skipped subtests: 370 okay) (49 TODO tests unexpectedly succeeded) t/o.t ............. ok t/stash.t ......... ok t/testcore.t ...... skipped: t/CORE missing. Read t/testcore.t how to +setup. Test Summary Report ------------------- t/bytecode.t (Wstat: 0 Tests: 45 Failed: 0) TODO passed: 27, 44 t/c.t (Wstat: 0 Tests: 45 Failed: 1) Failed test: 41 TODO passed: 15 t/c_o1.t (Wstat: 0 Tests: 45 Failed: 1) Failed test: 41 TODO passed: 15 t/c_o2.t (Wstat: 0 Tests: 45 Failed: 1) Failed test: 41 TODO passed: 11, 15 t/cc.t (Wstat: 0 Tests: 103 Failed: 2) Failed tests: 41, 43 TODO passed: 11, 103 t/modules.t (Wstat: 512 Tests: 400 Failed: 2) Failed tests: 257, 259 TODO passed: 41-44, 73-74, 77-80, 153-156, 181-182, 189-192 261-264, 301-304, 329-332, 337-344, 366 377-384 Non-zero exit status: 2 Files=19, Tests=951, 2921 wallclock secs ( 0.26 usr 0.02 sys + 301.45 + cusr 21.19 csys = 322.92 CPU) Result: FAIL Failed 5/19 test programs. 7/951 subtests failed. make: *** [test_dynamic] Error 255 RURBAN/B-C-1.27.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports RURBAN/B-C-1.27.tar.gz Running make install make test had returned bad status, won't install without force Stopping: 'install' failed for 'B::C'. Failed during this command: RURBAN/B-C-1.27.tar.gz : make_test NO + cpan[3]>

Replies are listed 'Best First'.
Re: upgrade of B::C failure
by almut (Canon) on Aug 05, 2010 at 15:29 UTC

    From looking at the file STATUS, I get the impression that - depending on Perl version - not all test are expected to work...

      I should have mentioned that I am running perl 5.8.8. According to the STATUS file you link to (if I am reading it correctly), there should be 3 tests skipped, but no failures.
      It won't install if the tests fail (unless I force it). Also, as part of a global upgrade, that terminates it since I have halt_on_failure set. I would feel uncomfortable forcing an installation while there are test errors.
        I would feel uncomfortable forcing an installation while there are test errors.

        Why? What is a few test failures when THIS CODE IS HIGHLY EXPERIMENTAL. USE AT YOUR OWN RISK.?