rschupp / PAR-Packer

(perl) Generate stand-alone executables, perl scripts and PAR files https://metacpan.org/pod/PAR::Packer
Other
48 stars 13 forks source link

build fails on windows #31

Closed CSBaum closed 3 years ago

CSBaum commented 3 years ago

Hello,

I am trying to upgrade my ParPacker on a windows server but when i run cpanm I get the following:

If I look at the log, it seems like the build process can't find the source files, which is strange since other packages are installing without an issue.

Searching PAR::Packer () on cpanmetadb ...
--> Working on PAR::Packer
Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/PAR-Packer-1.051.tar.gz
-> OK
Unpacking PAR-Packer-1.051.tar.gz
Entering PAR-Packer-1.051
Checking configure dependencies from META.json
Checking if you have File::Spec::Functions 0 ... Yes (3.78)
Checking if you have DynaLoader 0 ... Yes (1.47)
Checking if you have ExtUtils::Embed 0 ... Yes (1.35)
Checking if you have File::Glob 0 ... Yes (1.33)
Checking if you have File::Basename 0 ... Yes (2.85)
Checking if you have ExtUtils::CBuilder 0 ... Yes (0.280235)
Configuring PAR-Packer-1.051
Running Makefile.PL
Checking if your kit is complete...
Looks good
Subroutine MY::postamble redefined at ./Makefile.PL line 230.
Generating a gmake-style Makefile
Writing Makefile for PAR::Packer
Writing MYMETA.yml and MYMETA.json
# using "objdump" recursively to find DLLs needed by par.exe
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Text::ParseWords 0 ... Yes (3.30)
Checking if you have IPC::Run3 0.048 ... Yes (0.048)
Checking if you have PAR 1.016 ... Yes (1.016)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.52)
Checking if you have Digest::SHA 5.40 ... Yes (6.02)
Checking if you have Compress::Zlib 1.16 ... Yes (2.096)
Checking if you have Test::More 0 ... Yes (1.302183)
Checking if you have IO::Compress::Gzip 0 ... Yes (2.096)
Checking if you have Module::ScanDeps 1.21 ... Yes (1.29)
Checking if you have File::Temp 0.05 ... Yes (0.2311)
Checking if you have Win32::Exe 0.17 ... Yes (0.17)
Checking if you have Getopt::ArgvFile 1.07 ... Yes (1.11)
Checking if you have PAR::Dist 0.22 ... Yes (0.51)
Checking if you have Archive::Zip 1.02 ... Yes (1.68)
Building and testing PAR-Packer-1.051
cp lib/pp.pm blib\lib\pp.pm
cp lib/PAR/Packer.pm blib\lib\PAR\Packer.pm
cp lib/PAR/Filter/Bytecode.pm blib\lib\PAR\Filter\Bytecode.pm
cp lib/App/Packer/PAR.pm blib\lib\App\Packer\PAR.pm
cp lib/PAR/Filter.pm blib\lib\PAR\Filter.pm
cp lib/PAR/Filter/PodStrip.pm blib\lib\PAR\Filter\PodStrip.pm
cp lib/PAR/Filter/Obfuscate.pm blib\lib\PAR\Filter\Obfuscate.pm
cp lib/PAR/StrippedPARL/Base.pm blib\lib\PAR\StrippedPARL\Base.pm
cp lib/PAR/Filter/PatchContent.pm blib\lib\PAR\Filter\PatchContent.pm
cp lib/PAR/Filter/Bleach.pm blib\lib\PAR\Filter\Bleach.pm
gmake[1]: Entering directory 'C:/Users/SRVC_T~1/.cpanm/work/1607303316.576/PAR-Packer-1.051/myldr'
Makefile:868: warning: overriding recipe for target '.c.o'
Makefile:340: warning: ignoring old recipe for target '.c.o'
"C:\Perl\perl\bin\perl.exe" par_pl2c.pl my_par_pl < ..\script\par.pl > my_par_pl.c 
gcc -c -DWIN32 -DWIN64 -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields  -I"C:\Perl\perl\lib\CORE"  -DLDLIBPTHNAME=\"\" -DPARL_EXE=\"parl.exe\" -DPAR_PACKER_VERSION=\"1.051\" -s -O2 main.c
gcc: fatal error: no input files
compilation terminated.
gmake[1]: *** [Makefile:868: main.o] Error 1
gmake[1]: Leaving directory 'C:/Users/SRVC_T~1/.cpanm/work/1607303316.576/PAR-Packer-1.051/myldr'
gmake: *** [Makefile:543: subdirs] Error 2

This doesn't seem like the other issues people have run into with tests failing so I am running out of ideas and am hoping that someone else has sorted this out.