Sat May 08 15:00:13 2010: Request 57272 was acted upon.
Transaction: Correspondence added by CSJEWELL
       Queue: PAR-Packer
     Subject: Error building on Strawberry 5.12.0.1 32-bit (can't find 
script/parl.exe)
   Broken in: (no value)
    Severity: Important
       Owner: RSCHUPP
  Requestors: [email protected]
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=57272 >


The earlier problem must have been a blip (sorry for the aggressive
reporting), but it was a blip hiding a test issue:

----- Output shown below, then explanation of problem:

C:\Documents and Settings\Administrator>cpanp install PAR::Packer
Installing PAR::Packer (1.004)
==> MISSING Signature file! <==
Running [C:\sbtest\perl\bin\perl.exe C:\sbtest\perl\bin\cpanp-run-perl
C:\cpanpl
us\5.12.0\build\PAR-Packer-1.004\Makefile.PL]...
Writing Makefile for the par.exe program
Writing Makefile for PAR::Packer
Running [C:\sbtest\c\bin\dmake.EXE test UNINST=1]...
dmake:  Warning: -- Found file corresponding to virtual target [mktmpdir.h].
dmake:  Warning: -- Found file corresponding to virtual target [mktmpdir.c].
dmake:  Warning: -- Found file corresponding to virtual target [main.c].
C:\sbtest\perl\bin\perl.exe -e "chmod(oct('0600'),
'..\blib\lib\PAR\StrippedPARL
\Static.pm');"
C:\sbtest\perl\bin\perl.exe encode_append.pl static.exe
..\blib\lib\PAR\Stripped
PARL\Static.pm
C:\sbtest\perl\bin\perl.exe -e "chmod(oct('0444'),
'..\blib\lib\PAR\StrippedPARL
\Static.pm');"
C:\sbtest\perl\bin\perl.exe -e "chmod(oct('0600'),
'..\blib\lib\PAR\StrippedPARL
\Dynamic.pm');"
C:\sbtest\perl\bin\perl.exe encode_append.pl par.exe
..\blib\lib\PAR\StrippedPAR
L\Dynamic.pm
C:\sbtest\perl\bin\perl.exe -e "chmod(oct('0444'),
'..\blib\lib\PAR\StrippedPARL
\Dynamic.pm');"
C:\sbtest\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'inc
', 'blib\lib', 'blib\arch')" t/00-pod.t t/10-parl-generation.t 
t/20-pp.t t/30-c
urrent_exec.t t/40-packer_cd_option.t
t/00-pod.t ............... skipped: Set environment variable
PERL_TEST_POD=1 to
test POD
t/10-parl-generation.t ... ok
t/20-pp.t ................ ok
t/30-current_exec.t ...... # Please wait
t/30-current_exec.t ...... 2/4
#   Failed test 'Found the same file via PATH and full path'
t/30-current_exec.t ...... 3/4 #   at t/30-current_exec.t line 52.
#          got: ''
#     expected: '0 =
C:\cpanplus\5.12.0\build\PAR-Packer-1.004\t\test-10.exec
# PAR_PROGNAME = C:\cpanplus\5.12.0\build\PAR-Packer-1.004\t\test-10.exec
# PAR_TEMP =
C:/cpanplus/5.12.0/build/PAR-Packer-1.004/t-tmp\par-Administrator\c
ache-a7d5ca1281ce1a7972442548ae990f998f8eb7e6
# exec =
# '
# Looks like you failed 1 test of 4.
t/30-current_exec.t ...... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests
        (less 1 skipped subtest: 2 okay)
t/40-packer_cd_option.t .. ok

Test Summary Report
-------------------
t/30-current_exec.t    (Wstat: 256 Tests: 4 Failed: 1)
  Failed test:  3
  Non-zero exit status: 1
Files=5, Tests=71, 2608 wallclock secs ( 0.13 usr +  0.06 sys =  0.19 CPU)
Result: FAIL
Failed 1/5 test programs. 1/71 subtests failed.
dmake.EXE:  Error code 255, while making 'test_dynamic'
[ERROR] MAKE TEST failed: No such file or directory


The tests for 'PAR::Packer' failed. Would you like me to proceed anyway
or shoul
d we abort?


Proceed anyway? [y/N]: n
[ERROR] Unable to create a new distribution object for 'PAR::Packer' --
cannot c
ontinue

[ERROR] IPC::Run version '0.55' is required on MSWin32 in order to
capture buffe
rs. The logfile generated may not contain any useful data, until it is
installed


*** Install log written to:
  C:\cpanplus\install-logs\PAR-Packer-1.004-1273342072.log

Error installing 'PAR::Packer'
Problem installing one or more modules

------

The problem is that gcc 4.x-compiled versions of Perl on Win32,
including 5.12+ and greater versions of Strawberry Perl, have to use a
gcc exception-handling DLL. Even the otherwise-static
lib\core\libperl512.a has code that uses this dll, if I'm not mistaken.

Since this DLL is not copied into your packed executable's directory by
default (It's in Strawberry's path, but I assume the path is cleared for
testing purposes, or something of the like) a dialog box comes up saying
that the exception-handling DLL could not be found during the testing.
(See perl-5.12.0/win32/makefile.mk as for possible names of the .dll -
in Strawberry's case, we use libgcc_s_sjlj-1.dll.)

This isn't neccessarily a problem, other than:

1) The fact that "-l C:\strawberry\perl\bin\libgcc_s_sjlj-1.dll" needs
to be part of the command line on Strawberry Perl for packing
executables needs to be documented, both in Strawberry's release notes
(which I'm doing right now) and PAR::Packer's documentation, and 

2) The test in question needs to verify that the file exists, and then
add that option - or be TODO'd or SKIPped.

The pp script *may* want to implicitly add this file under the correct
conditions, as well, or *may* want to error-out saying that the user
needs to explicitly add this option.

Reply via email to