This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id:
113682
Status:
open
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
ribasushi [...] leporine.io
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
(no value)
Fixed in:
(no value)



Subject: Fails tests if cc in $PATH is a random 0-returning program ( all fine if the program returns > 0)
See topic and attached session log.
Subject: mb_argh.txt
rabbit@Ahasver:~$ cpanm --look Module::Build --> Working on Module::Build Fetching http://www.cpan.org/authors/id/L/LE/LEONT/Module-Build-0.4216.tar.gz ... OK Entering /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216 with /bin/bash rabbit@Ahasver:~/.cpanm/work/1460383505.29116/Module-Build-0.4216$ ls -l $(which cc) lrwxrwxrwx 1 rabbit rabbit 9 Apr 11 15:30 /home/rabbit/bin/cc -> /bin/true rabbit@Ahasver:~/.cpanm/work/1460383505.29116/Module-Build-0.4216$ perl Makefile.PL # running Build.PL Checking optional features... inc_bundling_support....disabled requires: ! inc::latest is not installed ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions of the modules indicated above before proceeding with this installation Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Module-Build' version '0.4216' rabbit@Ahasver:~/.cpanm/work/1460383505.29116/Module-Build-0.4216$ make /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/bin/perl Build --makefile_env_macros 1 Building Module-Build rabbit@Ahasver:~/.cpanm/work/1460383505.29116/Module-Build-0.4216$ make test /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/bin/perl Build --makefile_env_macros 1 test t/00-compile.t ................. ok t/PL_files.t ................... ok t/actions/installdeps.t ........ ok t/actions/manifest_skip.t ...... ok t/add_property.t ............... ok t/add_property_array.t ......... ok t/add_property_hash.t .......... ok t/basic.t ...................... ok t/bundle_inc.t ................. skipped: $ENV{MB_TEST_EXPERIMENTAL} is not set t/compat.t ..................... ok t/compat/exit.t ................ ok t/debug.t ...................... ok t/destinations.t ............... ok t/ext.t ........................ ok t/extend.t ..................... ok t/files.t ...................... ok t/help.t ....................... ok t/install.t .................... ok t/install_extra_target.t ....... ok t/manifypods.t ................. ok t/manifypods_with_utf8.t ....... ok t/metadata.t ................... ok t/metadata2.t .................. ok t/mymeta.t ..................... ok t/new_from_context.t ........... ok t/notes.t ...................... ok t/par.t ........................ skipped: PAR::Dist 0.17 or up not installed to check .par's. t/parents.t .................... ok t/perl_mb_opt.t ................ ok t/pod_parser.t ................. ok t/ppm.t ........................ 1/? # Failed test 'blib/arch/auto/Simple/Simple.so' # at t/ppm.t line 127. # Looks like you failed 1 test of 12. t/ppm.t ........................ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/12 subtests t/properties/dist_suffix.t ..... ok t/properties/license.t ......... ok t/properties/module_name.t ..... ok t/properties/needs_compiler.t .. ok t/properties/release_status.t .. ok t/properties/requires.t ........ ok t/properties/share_dir.t ....... ok t/resume.t ..................... ok t/runthrough.t ................. ok t/sample.t ..................... ok t/script_dist.t ................ ok t/signature.t .................. ok t/test_file_exts.t ............. ok t/test_reqs.t .................. ok t/test_type.t .................. ok t/test_types.t ................. ok t/tilde.t ...................... ok t/unit_run_test_harness.t ...... ok t/use_tap_harness.t ............ ok t/versions.t ................... ok t/write_default_maniskip.t ..... ok t/xs.t ......................... 1/? Can't locate loadable object for module Simple in @INC (@INC contains: /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/MB-6LPfw7wE/Simple/blib/arch /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/MB-6LPfw7wE/Simple/blib/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/t/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/blib/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/blib/arch /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/t/bundled /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216 t/lib t/bundled lib /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/site_perl/5.22.2/x86_64-linux /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/site_perl/5.22.2 /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/5.22.2/x86_64-linux /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/5.22.2 .) at -e line 0. Compilation failed in require. BEGIN failed--compilation aborted. # Failed test at t/xs.t line 49. Can't locate loadable object for module Simple in @INC (@INC contains: /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/MB-6LPfw7wE/Simple/blib/arch /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/MB-6LPfw7wE/Simple/blib/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/t/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/blib/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/blib/arch /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/t/bundled /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216 t/lib t/bundled lib /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/site_perl/5.22.2/x86_64-linux /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/site_perl/5.22.2 /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/5.22.2/x86_64-linux /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/5.22.2 .) at -e line 0. Compilation failed in require. BEGIN failed--compilation aborted. # Failed test at t/xs.t line 53. # '' # doesn't match '(?^:ok$)' Can't locate loadable object for module Simple in @INC (@INC contains: /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/MB-6LPfw7wE/Simple/blib/arch /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/MB-6LPfw7wE/Simple/blib/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/t/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/blib/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/blib/arch /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/t/bundled /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216 t/lib t/bundled lib /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/site_perl/5.22.2/x86_64-linux /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/site_perl/5.22.2 /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/5.22.2/x86_64-linux /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/5.22.2 .) at -e line 0. Compilation failed in require. BEGIN failed--compilation aborted. # Failed test at t/xs.t line 57. # '' # doesn't match '(?^:0.01$)' Can't locate loadable object for module Simple in @INC (@INC contains: /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/MB-6LPfw7wE/Simple/blib/arch /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/MB-6LPfw7wE/Simple/blib/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/t/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/blib/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/blib/arch /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/t/bundled /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216 t/lib t/bundled lib /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/site_perl/5.22.2/x86_64-linux /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/site_perl/5.22.2 /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/5.22.2/x86_64-linux /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/5.22.2 .) at -e line 0. Compilation failed in require. BEGIN failed--compilation aborted. # Failed test at t/xs.t line 61. # '' # doesn't match '(?^:0.01$)' t/xs.t ......................... 15/? Can't locate loadable object for module Simple in @INC (@INC contains: /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/MB-6LPfw7wE/Dist-Name/blib/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/MB-6LPfw7wE/Dist-Name/blib/arch /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/t/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/blib/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/blib/arch /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/t/bundled /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216 t/lib t/bundled lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/blib/lib /home/rabbit/.cpanm/work/1460383505.29116/Module-Build-0.4216/blib/arch t/lib t/bundled lib /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/site_perl/5.22.2/x86_64-linux /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/site_perl/5.22.2 /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/5.22.2/x86_64-linux /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/lib/5.22.2 .) at t/basic.t line 4. Compilation failed in require at t/basic.t line 4. BEGIN failed--compilation aborted at t/basic.t line 4. # Looks like your test exited with 255 before it could output anything. # Looks like you failed 4 tests of 22. t/xs.t ......................... Dubious, test returned 4 (wstat 1024, 0x400) Failed 4/22 subtests Test Summary Report ------------------- t/ppm.t (Wstat: 256 Tests: 12 Failed: 1) Failed test: 3 Non-zero exit status: 1 t/xs.t (Wstat: 1024 Tests: 22 Failed: 4) Failed tests: 3-6 Non-zero exit status: 4 Files=53, Tests=1127, 55 wallclock secs ( 0.48 usr 0.10 sys + 42.21 cusr 7.01 csys = 49.80 CPU) Result: FAIL Failed 2/53 test programs. 5/1127 subtests failed. Makefile:74: recipe for target 'test' failed make: *** [test] Error 4 rabbit@Ahasver:~/.cpanm/work/1460383505.29116/Module-Build-0.4216$ ln -fs /bin/false ~/bin/cc rabbit@Ahasver:~/.cpanm/work/1460383505.29116/Module-Build-0.4216$ ls -l $(which cc) lrwxrwxrwx 1 rabbit rabbit 10 Apr 11 16:08 /home/rabbit/bin/cc -> /bin/false rabbit@Ahasver:~/.cpanm/work/1460383505.29116/Module-Build-0.4216$ make test /home/rabbit/perl5/perlbrew/perls/5.22.2_rc1/bin/perl Build --makefile_env_macros 1 test t/00-compile.t ................. ok t/PL_files.t ................... ok t/actions/installdeps.t ........ ok t/actions/manifest_skip.t ...... ok t/add_property.t ............... ok t/add_property_array.t ......... ok t/add_property_hash.t .......... ok t/basic.t ...................... ok t/bundle_inc.t ................. skipped: $ENV{MB_TEST_EXPERIMENTAL} is not set t/compat.t ..................... ok t/compat/exit.t ................ ok t/debug.t ...................... ok t/destinations.t ............... ok t/ext.t ........................ ok t/extend.t ..................... ok t/files.t ...................... ok t/help.t ....................... ok t/install.t .................... ok t/install_extra_target.t ....... ok t/manifypods.t ................. ok t/manifypods_with_utf8.t ....... ok t/metadata.t ................... ok t/metadata2.t .................. ok t/mymeta.t ..................... ok t/new_from_context.t ........... ok t/notes.t ...................... ok t/par.t ........................ skipped: No compiler found t/parents.t .................... ok t/perl_mb_opt.t ................ ok t/pod_parser.t ................. ok t/ppm.t ........................ skipped: No compiler found t/properties/dist_suffix.t ..... ok t/properties/license.t ......... ok t/properties/module_name.t ..... ok t/properties/needs_compiler.t .. ok t/properties/release_status.t .. ok t/properties/requires.t ........ ok t/properties/share_dir.t ....... ok t/resume.t ..................... ok t/runthrough.t ................. ok t/sample.t ..................... ok t/script_dist.t ................ ok t/signature.t .................. ok t/test_file_exts.t ............. ok t/test_reqs.t .................. ok t/test_type.t .................. ok t/test_types.t ................. ok t/tilde.t ...................... ok t/unit_run_test_harness.t ...... ok t/use_tap_harness.t ............ ok t/versions.t ................... ok t/write_default_maniskip.t ..... ok t/xs.t ......................... skipped: No compiler found All tests successful. Files=53, Tests=1093, 50 wallclock secs ( 0.46 usr 0.23 sys + 38.65 cusr 5.52 csys = 44.86 CPU) Result: PASS
Not sure I understand the problem. If you replace CC with something that claims to be succeeding but doesn't do what CC does, and Module::Build tries to use it, isn't failure expected? A compiler isn't required for M::B, but if it's there, apparently "working", and non-functional, failure seems the right way to go.
Subject: Re: [rt.cpan.org #113682] Fails tests if cc in $PATH is a random 0-returning program ( all fine if the program returns > 0)
Date: Wed, 13 Apr 2016 18:06:13 +0200
To: bug-Module-Build@rt.cpan.org
From: Leon Timmermans <fawaka@gmail.com>
On Mon, Apr 11, 2016 at 4:12 PM, Peter Rabbitson via RT <bug-Module-Build@rt.cpan.org> wrote:
Show quoted text
See topic and attached session log.

That test almost does the right thing but ignores to check the result of the executable that has been build, fixing that was surprisingly easy (see attachment). A different test, based on checking if it can compile a loadable object is probably more reliable though.

Leon

Message body is not shown because sender requested not to inline it.

On Wed Apr 13 18:06:43 2016, fawaka@gmail.com wrote:
Show quoted text
> > That test almost does the right thing but ignores to check the result of > the executable that has been build, fixing that was surprisingly easy (see > attachment).
There are couple more spots like this, see https://github.com/Perl-Toolchain-Gang/Module-Build/commit/45fb63cccad7bb089ec6ba6a87683eb530a1d96c#commitcomment-17543692


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.