----- Original Message ----- From: "RAPPAZ Francois" <[email protected]>
To: <[email protected]>
Sent: Wednesday, April 08, 2009 5:08 PM
Subject: Buiding par-packer with dmake


My perl is This is perl, v5.8.8 built for MSWin32-x86-multi-thread
I have set up minGW

Gcc --version
gcc.exe (GCC) 3.4.5 (mingw-vista special r3)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

When I try to install PAR-Packer from the CPAN/build folder, running perl Makefile.pl and dmake
I got

gcc main.o my_par_pl.o win32.coff -s -nologo -nodefaultlib -debug -opt:ref,icf -libpath:"C:\Perl\lib\CORE" -machine:x86 C:\Perl\lib\CORE\perl58.lib -o .\pa
r.exe
gcc.exe: unrecognized option `-nologo'
gcc.exe: unrecognized option `-nodefaultlib'
C:\Perl\site\lib\auto\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin
\ld.exe: cannot find -libpath:C:\Perl\lib\CORE
collect2: ld returned 1 exit status
dmake.exe:  Error code 129, while making 'par.exe'
dmake.exe:  Error code 255, while making 'subdirs'


The problem is that you're getting a Makefile that has been written for 'nmake' (not 'dmake'). You probably simply need to remove 'nmake.exe' (eg rename it to 'nmake.exe_hide'), or remove the folder that contains nmake.exe from the path.

When 'perl -V:make' reports that "make='dmake'", then you'll be right to go with 'dmake'. But while you're getting "make='nmake'", you'll have to use 'nmake'.

You can probably build with nmake and gcc (untested) - though it's usual to build with dmake when compiling with gcc.

Cheers,
Rob

Reply via email to