Grinnz/Minion-Backend-SQLite

Build Failing on Windows

donsequitur opened this issue · 2 comments

Hi.
I've tried installing this on Windows but the build is failing.

I've tried on both Strawberry Perl 5.22.1.3 (portable) and ActiveState 5.16.3. I've copied the logs from Strawberry perl below but the results from both are similar. For the Strawberry perl attempt I used a completely fresh install with the only command run being 'cpan install Minion::Backend::SQLite'

At this line:
t/sqlite_lite_app.t .. 1/?
The Perl Interpreter is actually crashing.

Thanks in advance for any assistance.

All the best,
Donsequitur


Configuring D/DB/DBOOK/Minion-Backend-SQLite-0.004.tar.gz with Build.PL
Creating new 'Build' script for 'Minion-Backend-SQLite' version '0.004'
DBOOK/Minion-Backend-SQLite-0.004.tar.gz
C:\portberry\perl\bin\perl.exe Build.PL -- OK
Running Build for D/DB/DBOOK/Minion-Backend-SQLite-0.004.tar.gz
cp lib/Minion/Backend/SQLite.pm blib\lib\Minion\Backend\SQLite.pm
DBOOK/Minion-Backend-SQLite-0.004.tar.gz
C:\portberry\perl\bin\perl.exe ./Build -- OK
Running Build test
t/sqlite.t ........... Dubious, test returned 255 (wstat 65280, 0xff00)
All 23 subtests passed
t/sqlite_lite_app.t .. 1/? (in cleanup) DBD::SQLite::st FETCH failed: handle 3 is owned by thread fdb2b8 not current thread 535ec08 (handles can't be shared between threads and your driver may need a CLONE method added) at C:/portberry/perl/site/lib/Mojo/SQLite/Results.pm line 21, line 750.
(in cleanup) DBD::SQLite::db FETCH failed: handle 2 is owned by thread fdb2b8 not current thread 535ec08 (handles can't be shared between threads and your driver may need a CLONE method added) at C:/portberry/perl/site/lib/Mojo/SQLite.pm line 98, line 750.
(in cleanup) DBD::SQLite::st FETCH failed: handle 3 is owned by thread fdb2b8 not current thread 62a5a38 (handles can't be shared between threads and your driver may need a CLONE method added) at C:/portberry/perl/site/lib/Mojo/SQLite/Results.pm line 21, line 750.
(in cleanup) DBD::SQLite::db FETCH failed: handle 2 is owned by thread fdb2b8 not current thread 62a5a38 (handles can't be shared between threads and your driver may need a CLONE method added) at C:/portberry/perl/site/lib/Mojo/SQLite.pm line 98, line 750.
(in cleanup) DBD::SQLite::st FETCH failed: handle 3 is owned by thread fdb2b8 not current thread 6158028 (handles can't be shared between threads and your driver may need a CLONE method added) at C:/portberry/perl/site/lib/Mojo/SQLite/Results.pm line 21, line 750.
(in cleanup) DBD::SQLite::db FETCH failed: handle 2 is owned by thread fdb2b8 not current thread 6158028 (handles can't be shared between threads and your driver may need a CLONE method added) at C:/portberry/perl/site/lib/Mojo/SQLite.pm line 98, line 750.
t/sqlite_lite_app.t .. ok

Test Summary Report

t/sqlite.t (Wstat: 65280 Tests: 23 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
Files=2, Tests=38, 10 wallclock secs ( 0.05 usr + 0.03 sys = 0.08 CPU)
Result: FAIL
DBOOK/Minion-Backend-SQLite-0.004.tar.gz
C:\portberry\perl\bin\perl.exe ./Build test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports DBOOK/Minion-Backend-SQLite-0.004.tar.gz
Stopping: 'install' failed for 'Minion::Backend::SQLite'.

Hello,

Here is an updated log

C:>perl -v

This is perl 5, version 20, subversion 1 (v5.20.1) built for MSWin32-x64-multi-thread

C:>cpanm Minion::Backend::SQLite

...........skipping some prereq installs which install ok

t/00-report-prereqs.t .. ok
Minion workers do not support fork emulation at t/sqlite.t line 15.
t/sqlite.t .............
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
Minion workers do not support fork emulation at t/sqlite_lite_app.t line 44.

Tests were run but no plan was declared and done_testing() was not seen.

Looks like your test exited with 255 just after 2.

t/sqlite_lite_app.t ....
Dubious, test returned 255 (wstat 65280, 0xff00)
All 2 subtests passed

Test Summary Report

t/sqlite.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
t/sqlite_lite_app.t (Wstat: 65280 Tests: 2 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
Files=3, Tests=3, 3 wallclock secs ( 0.02 usr + 0.01 sys = 0.03 CPU)
Result: FAIL
-> FAIL Installing Minion::Backend::SQLite failed. See C:\Users\DONSEQ~1.cpanm\work\1504484357.1352\build.log for details. Retry with --force to force install it.

I'm closing this because it isn't particular to this backend, all seems to fail on windows for the same lack of fork.

mojolicious/minion#45