Skip Menu |

This queue is for tickets about the PAR-Packer CPAN distribution.

Report information
The Basics
Id: 71445
Status: resolved
Priority: 0/
Queue: PAR-Packer

People
Owner: Nobody in particular
Requestors: logan [...] spinzendj.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in:
  • 1.006
  • 1.007
  • 1.008
  • 1.009
  • 1.010
Fixed in: (no value)



Subject: Compilation fails, StrippedParl and tempfile errors.
I am not able to get a script to compile to an .exe. My script fails to compile using 1.006 - 1.010. I am using Windows 7 x64 but my perl installation and associated programs are the x86 versions. I am using Strawberry Perl 5.12.3 and have tried fully re installing it as well. I have tried to compile from the .pl and have also tried compiling from a .par with the same error. The .par I compiled runs fine, the process just fails when trying to convert it to an .exe. I have tried having the source files in a desktop directory and inside the perl\lib directory with no change in the error. I have also tried with and without the -g and --icon flags. I am a Perl novice but it looks like it might be a problem with the way File::Temp is handling the paths, but I've found a similar bug here as well. I have also noticed that version 1.010 only includes the base.pm file in the StrippedParl dir. It initially failed with an error saying it was unable to find static.pm so I copied it and dynamic.pm from version 1.009 and that's when I started getting this error. The error I get on compilation is below: C:\strawberry\perl\lib>pp -g --icon="frn_logo.icon" -o exct.exe exct.par PAR::StrippedPARL::Static->get_raw() did not return the raw binary data for a PAR loader at C:/strawberry/perl/lib/PAR/StrippedPARL/Base.pm line 141, <DATA> line 1. Could not write temporary parl (class PAR::StrippedPARL::Static) to file 'C:\Users\debordl\AppData\Local\Temp\parlxUiA.exe' at C:/strawberry/perl/lib/PAR/StrippedPARL/Base.pm line 65, <DATA> line 1. C:\Perl\site\bin/pp: Failed to extract a parl from 'PAR::StrippedPARL::Static' to file 'parl5eKFX3L.exe' at C:/strawberry/perl/lib/PAR/Packer.pm line 1172, <DATA> line 1. Thanks, -Logan
On 2011-10-04 11:41:59, logandj wrote: Show quoted text
> I am not able to get a script to compile to an .exe. My script fails to > compile using 1.006 - 1.010. I am using Windows 7 x64 but my perl > installation and associated programs are the x86 versions.
That's the cause of the problem: you're trying to pack to a 32-bit executable (using a 32-bit installation of Perl) on a 64-bit box. In theory, this might be possible, but isn't a supported usecase. The missing Static.pm file shows that your build of PAR::Packer has gone awfully wrong. By the way, you didn't run the test suite, didn't you? Please post a complete log of the build process, i.e. unpack the release tarball, chdir into the top level directory and post the output of perl Makefile:PL dmake Cheers, Roderich
No follow up, closing this bug.