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
Windows Strawberry Failure, t/classes/07conflict_avoid.t #30
Comments
Additional questions: Is this a 32b or 64b Perl build? What version of Windows? Also, would it be possible for someone who has such a failure state to grab this repo, and run "perl Makefile.PL", "make", "make test" .... and then paste the entire make test output? There may be more information that 'cpanm' could be squelching. I haven't been able to replicate the issue using a clean strawberry install on a 32b Win7 installation. Obviously that doesn't suggest others are not having issues. But it would help me if I knew how to make this happen. |
Try building Inline::CPP in a directory with a space in it. |
@wbraswell thank you for opening a ticket for this problem of mine. This issue happened on my Windows XP SP3 with Strawberry Perl 5.20.2 32-bit (of course), using I'm currently testing it with |
OK, I have tried
Here's the error messages:
|
Are you using the latest released version of ExtUtils::MakeMaker? |
Yes @mohawk2, if the question is for my issue, then yes, I use the latest available. |
@ToApolytoXaos Which C++ compiler are you using? @daoswald The tests should probably use "skip" when can_ok $class, 'new' fails, I'll add that to my giant todo list :-) |
The problem is simply due to directory separators. Whenever you see messages like Unrecognized escape ..., assume you are inadvertently eval'ing or interpolating into a regex Windows style paths (e.g. I am working on a pull request and post on this. In the mean time, for more examples, see Tests failing due to directory separators are unforced errors. |
@mohawk2
The compiler I use is the one that comes with Strawberry Perl:
|
I believe this ticket is fixed by perl11/Inline-Filters#3 so whenever a new I::F is released on CPAN this ticket will fixed. This failure is seen on CPANTesters BTW http://www.cpantesters.org/cpan/report/cc996ccd-6bf4-1014-9925-17d97ff97578 http://www.cpantesters.org/cpan/report/746e8f65-6c1e-1014-a87b-cf166a5d2e7b |
I'm just on holidays with no wifi. Will upload it on monday |
@bulk88 @rurban Great job on the release of Inline::Filters v0.18! |
@wbraswell greetings mate. When I first attempted to compile it, I ran The instructions inside Let me see what I can do though. As soon as I make it, I will come back with feedback. Cheers. |
@wbraswell short reply: it hangs on Long reply: I have figured out how to compile it, but it could have been simpler in my humble opinion. Basically you have to run On the first attempt it will report which modules are missing and you will have to manually install them yourself. After you do so, you have to repeat the initial command to re-generate a new After a couple of seconds that finishes, you run
|
@stefanos82 RPERL_VERBOSE=1 |
@wbraswell There's an interesting message that flags you have suggested have revealed a problem that has to do with I don't know how it could be related to
|
@stefanos82 Please make sure you have both of these environmental variables set: Then run `perl t/04_type_scalar.t' and see if it gives us any more output than it is giving now... |
This is what I get:
|
You need to set your env var: |
|
@wbraswell As far as you know, is this now fixed? I::F was updated ages ago, and @nanis made a PR for fixing this? |
If the new version (0.76) still has problems, please either reopen this or open a new issue. |
@mohawk2 |
Yes, I accidentally did an authorised release. You can still install 0.76 off backPAN with |
@stefanos82 |
Unfortunately I don't use Windows as I don't have my original VM anymore...sorry. |
Okay we will leave this issue closed for now, unless we find more evidence of it existing under the new versions. |
cpanm (App::cpanminus) 1.7027 on perl 5.020002 built for MSWin32-x86-multi-thread-64int
Work directory is C:\DOCUME~1\stefanos/.cpanm/work/1436135735.2208
You have make C:\Strawberry\c\bin\dmake.exe
You have LWP 6.13
Falling back to Archive::Tar 2.04
Searching RPerl on cpanmetadb ...
--> Working on RPerl
Fetching http://www.cpan.org/authors/id/W/WB/WBRASWELL/RPerl-1.000001.tar.gz
-> OK
Unpacking RPerl-1.000001.tar.gz
Entering RPerl-1.000001
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.04)
Configuring RPerl-1.000001
Running Makefile.PL
Warning: prerequisite Inline::CPP 0.63 not found.
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for RPerl
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Inline::CPP 0.63 ... No
Checking if you have ExtUtils::MakeMaker 7.04 ... Yes (7.04)
Checking if you have Inline 0.76 ... Yes (0.80)
Checking if you have Test::Exception 0.32 ... Yes (0.36)
Checking if you have Module::Refresh 0.17 ... Yes (0.17)
Checking if you have Inline::C 0.76 ... Yes (0.76)
Checking if you have PadWalker 2.1 ... Yes (2.1)
Checking if you have Parse::Eyapp 1.182 ... Yes (1.182)
Checking if you have Perl::Tidy 20140711 ... Yes (20140711)
Checking if you have Inline::Filters 0.17 ... Yes (0.17)
Checking if you have Perl::Critic 1.121 ... Yes (1.125)
==> Found dependencies: Inline::CPP
Searching Inline::CPP on cpanmetadb ...
--> Working on Inline::CPP
Fetching http://www.cpan.org/authors/id/D/DA/DAVIDO/Inline-CPP-0.71.tar.gz
-> OK
Unpacking Inline-CPP-0.71.tar.gz
Entering Inline-CPP-0.71
Checking configure dependencies from META.json
Checking if you have FindBin 0 ... Yes (1.51)
Checking if you have ExtUtils::CppGuess 0.07 ... Yes (0.09)
Checking if you have ExtUtils::MakeMaker 7.04 ... Yes (7.04)
Checking if you have Config 0 ... Yes (5.020002)
Configuring Inline-CPP-0.71
Running Makefile.PL
What C++ compiler would you like to use? [g++ -xc++] g++ -xc++
What default libraries would you like to include? [-lstdc++] -lstdc++
Detected style headers. ('.h' not needed.)
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Inline::CPP
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 1.001009 ... Yes (1.001014)
Checking if you have Carp 0 ... Yes (1.3301)
Checking if you have Parse::RecDescent 0 ... Yes (1.967009)
Checking if you have File::Temp 0 ... Yes (0.2304)
Checking if you have Config 0 ... Yes (5.020002)
Checking if you have English 0 ... Yes (1.09)
Checking if you have Inline 0.78 ... Yes (0.80)
Checking if you have Inline::C 0.67 ... Yes (0.76)
Building and testing Inline-CPP-0.71
cp lib/Inline/CPP.pm blib\lib\Inline\CPP.pm
cp lib/Inline/CPP.pod blib\lib\Inline\CPP.pod
cp lib/Inline/CPP/Parser/RecDescent.pm blib\lib\Inline\CPP\Parser\RecDescent.pm
cp lib/Inline/CPP/Config.pm blib\lib\Inline\CPP\Config.pm
"C:\Strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/.t t//.t
$Config{osname}: MSWin32
$Config{cc}: gcc
$Config{gccversion}: 4.8.3
t/00load_prereqs.t .................... ok
t/01fn_cans.t ......................... ok
t/02basic.t ........................... ok
t/03prefix.t .......................... ok
t/04charptr.t ......................... ok
t/05pod.t ............................. skipped: Author Test: Set $ENV{RELEASE_TESTING} to a true value to run.
t/06fn_regress.t ...................... ok
t/07perlcritic.t ...................... skipped: Author Test: Set $ENV{RELEASE_TESTING} to a true value to run.
Compiler guesses:
EU::CppGuess: [g++ -xc++],
Old Makefile.PL: [g++].
Linker guesses:
EU::CppGuess: [-lstdc++],
Old Makefile.PL: [-lstdc++].
t/08cppguess.t ........................ ok
t/09pod_coverage.t .................... skipped: Author Test: Set $ENV{RELEASE_TESTING} to a true value to run.
t/10kwalitee.t ........................ skipped: Author Test: Set $ENV{RELEASE_TESTING} to a true value to run.
t/11rewrite_config.t .................. skipped: Author Test: Set $ENV{RELEASE_TESTING} to a true value to run.
t/12custom_libs.t ..................... ok
t/13version_numbers.t ................. skipped: Author Test: Set $ENV{RELEASE_TESTING} to a true value to run.
t/14changes.t ......................... skipped: Author tests skipped. Set $ENV{RELEASE_TESTING} to run
t/15config_case.t ..................... ok
t/classes/01empty_ns_is_main.t ........ ok
t/classes/02main_ns_is_main.t ......... ok
t/classes/03baz_ns_is_baz.t ........... ok
t/classes/04invoke_from_non_main.t .... ok
t/classes/05invalid_classes.t ......... ok
t/classes/06inherit.t ................. ok
Unrecognized escape \D passed through at (eval 12) line 3.
Unrecognized escape \s passed through at (eval 12) line 3.
Unrecognized escape \T passed through at (eval 12) line 3.
Failed test 'Foo::Bar::MyClass->can('new')'
at t/classes/07conflict_avoid.t line 71.
Foo::Bar::MyClass->can('new') failed
Failed test 'Foo::Bar::MyClass->new() died'
at t/classes/07conflict_avoid.t line 73.
Error was: Can't locate object method "new" via package "Foo::Bar::MyClass" (perhaps you forgot to load "Foo::Bar::MyClass"?) at C:/Strawberry/perl/lib/Test/More.pm line 690.
Failed test 'Our "MyClass" is a "Foo::Bar::MyClass"'
at t/classes/07conflict_avoid.t line 75.
got: ''
expected: 'Foo::Bar::MyClass'
Failed test 'Foo::Qux::MyClass->can('new')'
at t/classes/07conflict_avoid.t line 77.
Foo::Qux::MyClass->can('new') failed
Failed test 'Foo::Qux::MyClass->new() died'
at t/classes/07conflict_avoid.t line 79.
Error was: Can't locate object method "new" via package "Foo::Qux::MyClass" (perhaps you forgot to load "Foo::Qux::MyClass"?) at C:/Strawberry/perl/lib/Test/More.pm line 690.
Failed test 'Our "MyClass" is a "Foo::Qux::MyClass"'
at t/classes/07conflict_avoid.t line 81.
got: ''
expected: 'Foo::Qux::MyClass'
Can't call method "fetch" on an undefined value at t/classes/07conflict_avoid.t line 83.
Tests were run but no plan was declared and done_testing() was not seen.
Looks like your test exited with 255 just after 6.
t/classes/07conflict_avoid.t ..........
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 6/6 subtests
t/classes/08auto.t .................... ok
t/classes/09auto_mixed.t .............. ok
t/classes/10auto_inherit.t ............ ok
t/grammar/00pod_coverage.t ............ skipped: Test::Pod::Coverage 1.00 required for testing POD coverage
t/grammar/01nherit.t .................. ok
t/grammar/02scope.t ................... ok
t/grammar/03inline.t .................. ok
t/grammar/04const.t ................... ok
t/grammar/05virt.t .................... ok
t/grammar/06deflt.t ................... ok
t/grammar/07static.t .................. ok
t/grammar/08anon.t .................... ok
t/grammar/09purevt.t .................. ok
t/grammar/10struct.t .................. ok
t/grammar/11minhrt.t .................. ok
t/grammar/12retlst.t .................. ok
t/grammar/13vararg.t .................. ok
t/grammar/14const.t ................... ok
t/grammar/15stvar.t ................... ok
t/grammar/16varlst.t .................. ok
t/grammar/17memberarray.t ............. ok
t/grammar/18namespace.t ............... ok
t/grammar/19multidimarray.t ........... ok
t/namespace/01empty_ns_is_main.t ...... ok
t/namespace/02main_ns_is_main.t ....... ok
t/namespace/03baz_ns_is_baz.t ......... ok
t/namespace/04invoke_from_non_main.t .. ok
t/namespace/05invalid_ns.t ............ ok
t/namespace/06inherit.t ............... ok
Test Summary Report
t/08cppguess.t (Wstat: 0 Tests: 2 Failed: 0)
TODO passed: 2
t/classes/07conflict_avoid.t (Wstat: 65280 Tests: 6 Failed: 6)
Failed tests: 1-6
Non-zero exit status: 255
Parse errors: No plan found in TAP output
t/grammar/11minhrt.t (Wstat: 0 Tests: 38 Failed: 0)
TODO passed: 23-24, 27-28, 30, 32
Files=52, Tests=269, 249 wallclock secs ( 0.09 usr + 0.23 sys = 0.32 CPU)
Result: FAIL
Failed 1/52 test programs. 6/269 subtests failed.
dmake.exe: Error code 255, while making 'test_dynamic'
-> FAIL Installing Inline::CPP failed. See C:\DOCUME~1\stefanos.cpanm\work\1436135735.2208\build.log for details. Retry with --force to force install it.
-> FAIL Installing the dependencies failed: Module 'Inline::CPP' is not installed
-> FAIL Bailing out the installation for RPerl-1.000001.
The text was updated successfully, but these errors were encountered: