rich_d_thomas has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I am trying to build PAR-Packer-1.002 (http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/PAR-Packer-1.002.tar.gz), using ActivePerl v5.10.1 build 1007 and MinGW 5.1.4.1.

I get some errors at the dmake stage, below is a copy-and-paste of what I have done and the results I get.

Can anyone help me with this please.

Thanks in advance.

C:\Perl\PAR-Packer-1.002>perl Makefile.PL Set up gcc environment - 3.4.5 (mingw-vista special r3) Checking if your kit is complete... Looks good Writing Makefile for the par.exe program Writing Makefile for PAR::Packer C:\Perl\PAR-Packer-1.002>dmake test cp lib/App/Packer/PAR.pm blib\lib\App\Packer\PAR.pm cp lib/PAR/Packer.pm blib\lib\PAR\Packer.pm cp lib/PAR/Filter/Obfuscate.pm blib\lib\PAR\Filter\Obfuscate.pm cp lib/PAR/Filter/PodStrip.pm blib\lib\PAR\Filter\PodStrip.pm cp lib/PAR/StrippedPARL/Base.pm blib\lib\PAR\StrippedPARL\Base.pm cp lib/PAR/Filter.pm blib\lib\PAR\Filter.pm cp lib/PAR/Filter/PatchContent.pm blib\lib\PAR\Filter\PatchContent.pm cp lib/PAR/StrippedPARL/Dynamic.pm blib\lib\PAR\StrippedPARL\Dynamic.p +m cp lib/PAR/Filter/Bytecode.pm blib\lib\PAR\Filter\Bytecode.pm cp lib/pp.pm blib\lib\pp.pm cp lib/PAR/Filter/Bleach.pm blib\lib\PAR\Filter\Bleach.pm cp lib/PAR/StrippedPARL/Static.pm blib\lib\PAR\StrippedPARL\Static.pm C:\Perl\bin\perl.exe sha1.c.PL sha1.c C:/Perl/site/bin/gcc.exe -c -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -D +HAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPL +ICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX - +DHASATTRIBUTE -fno-strict-aliasing -mms-bitfields -I"C:\Perl\lib\COR +E" -DPARL_EXE=\"parl.exe\" -O2 sha1.c C:\Perl\bin\perl.exe file2c.pl C:\Perl\bin\perl510.dll my_perl.c load_ +me_0 0 30000 dmake.exe: Warning: -- Found file corresponding to virtual target [mk +tmpdir.h]. dmake.exe: Warning: -- Found file corresponding to virtual target [mk +tmpdir.c]. dmake.exe: Warning: -- Found file corresponding to virtual target [ma +in.c]. C:/Perl/site/bin/gcc.exe -c -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -D +HAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPL +ICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX - +DHASATTRIBUTE -fno-strict-aliasing -mms-bitfields -I"C:\Perl\lib\COR +E" -DPARL_EXE=\"parl.exe\" -O2 main.c C:\Perl\bin\perl.exe file2c.pl ..\script\par.pl my_par_pl.c load_me_2 +0 C:/Perl/site/bin/gcc.exe -c -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -D +HAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPL +ICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX - +DHASATTRIBUTE -fno-strict-aliasing -mms-bitfields -I"C:\Perl\lib\COR +E" -DPARL_EXE=\"parl.exe\" -O2 my_par_pl.c C:\Perl\site\bin\g++.exe main.o my_par_pl.o -L"C:\Perl\lib\CORE" C:\P +erl\lib\CORE\perl510.lib C:\Perl\site\lib\auto\MinGW\lib\libkernel32. +a C:\Perl\site\lib\auto\MinGW\lib\libuser32.a C:\Perl\site\lib\auto\M +inGW\lib\libgdi32.a C:\Perl\site\lib\auto\MinGW\lib\libwinspool.a C:\ +Perl\site\lib\auto\MinGW\lib\libcomdlg32.a C:\Perl\site\lib\auto\MinGW\lib\libadvapi32.a C:\Perl\site\lib\auto\Mi +nGW\lib\libshell32.a C:\Perl\site\lib\auto\MinGW\lib\libole32.a C:\Pe +rl\site\lib\auto\MinGW\lib\liboleaut32.a C:\Perl\site\lib\auto\MinGW\ +lib\libnetapi32.a C:\Perl\site\lib\auto\MinGW\lib\libuuid.a C:\Perl\s +ite\lib\auto\MinGW\lib\libws2_32.a C:\Perl\site\lib\auto\MinGW\lib\li +bmpr.a C:\Perl\site\lib\auto\MinGW\lib\libwinmm.a C:\Perl\site\lib\au +to\MinGW\lib\libversion.a C:\Perl\site\lib\auto\MinGW\lib\libodbc32.a + C:\Perl\site\lib\auto\MinGW\lib\libodbccp32.a C:\Perl\site\lib\auto\ +MinGW\lib\libmsvcrt.a -o par.exe C:\Perl\site\lib\auto\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\m +ingw32\bin\ld.exe: BFD (GNU Binutils) 2.19.1 assertion fail ../../bin +utils-2.19.1/bfd/coffgen.c:375 C:\Perl\site\lib\auto\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\m +ingw32\bin\ld.exe: warning: C:\Perl\site\lib\auto\MinGW\lib\libmsvcrt +.a(diwcs00633.o): local symbol ` ' has no section C:\Perl\site\lib\auto\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\m +ingw32\bin\ld.exe: warning: C:\Perl\site\lib\auto\MinGW\lib\libmsvcrt +.a(diwcs00633.o): local symbol `tFileAttributesA@8' has no section C:\Perl\site\lib\auto\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\m +ingw32\bin\ld.exe: final link failed: Bad value collect2: ld returned 1 exit status dmake.exe: Error code 129, while making 'par.exe' dmake.exe: Error code 255, while making 'subdirs'

Replies are listed 'Best First'.
Re: trying to build PAR-Packer-1.002
by syphilis (Archbishop) on Mar 17, 2010 at 11:38 UTC
    C:\Perl\site\lib\auto\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: BFD (GNU Binutils) 2.19.1 assertion fail ../../binutils-2.19.1/bfd/coffgen.c:375

    That's a bit odd - up to that point I get the same output as you.

    Precisely where (full path) is ../../binutils-2.19.1/bfd/coffgen.c located ?
    I can't find any such file in my MinGW installations - and I'm struggling to understand how such a file has become relevant to the building of PAR-Packer-1.002.

    Cheers,
    Rob
      I can't find any such file in my MinGW installations

      coffgen.c is a source file of the GNU linker (ld — which is part of the binutils).  One would have to look in that line 375 in order to find out what the assertion is testing and why it might be failing...

        Hi Rob and Almut,

        Thanks for your replies.

        I searched my compter for the coffgen.c file and it does not exist anywhere on it.

        So I did a "find in files" for the text "coffgen.c" and it appears in the C:\Perl\site\lib\auto\MinGW\lib\libbfd.a file.

        Any ideas how I can get to the coffgen.c file, so that I can look at line 375?

Re: trying to build PAR-Packer-1.002
by Anonymous Monk on Mar 19, 2010 at 11:14 UTC