Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Build perl with mingw-w64

32 views
Skip to first unread message

Алексей Павлов

unread,
Nov 30, 2012, 1:11:21 PM11/30/12
to win32-...@perl.org
Hi, all!
I try to build perl-5.16.2 with toolchain: mingw-w64(trunk), gcc-4.7.2,
msys. First I have apply patch:

--- perl-5.16.2/win32/makefile.mk.orig 2012-11-27 21:31:21 +0400
+++ perl-5.16.2/win32/makefile.mk 2012-11-27 21:34:26 +0400
@@ -1432,6 +1432,8 @@
if exist $(CCHOME)\bin\libgcc_s_1.dll $(XCOPY)
$(CCHOME)\bin\libgcc_s_1.dll ..\t\$(NULL)
if exist $(CCHOME)\bin\w64gcc_s_sjlj-1.dll $(XCOPY)
$(CCHOME)\bin\w64gcc_s_sjlj-1.dll ..\t\$(NULL)
if exist $(CCHOME)\bin\libstdc++-6.dll $(XCOPY)
$(CCHOME)\bin\libstdc++-6.dll ..\t\$(NULL)
+ if exist $(CCHOME)\bin\libwinpthread-1.dll $(XCOPY)
$(CCHOME)\bin\libwinpthread-1.dll ..\t\$(NULL)
+ if exist $(CCHOME)\bin\libgcc_s_seh-1.dll $(XCOPY)
$(CCHOME)\bin\libgcc_s_seh-1.dll ..\t\$(NULL)
.ENDIF

test : test-prep

Than I try to build with next command line:
dmake INST_DRV=$DRV INST_TOP=$PREFIX_WIN/opt CCHOME=$MINGWHOME_WIN WIN64=undef
With 32bit build I have error:
if exist ..\wperl.exe xcopy /f /r /i /d /y ..\wperl.exe
c:/SDK/ported-x32/opt\bin\*.*
ЌҐ¤®ЇгбвЁ¬®Ґ зЁб«® Ї а ¬Ґва®ў
dmake.exe: Warning: -- Target [..\lib\unicore\CombiningClass.pl] was made
but the time stamp has not been updated.
dmake.exe: Error code 132, while making 'installbare'

With 64-bit build I haven't build perl successfully due to freezing build
process.
How can I fix it?

kmx

unread,
Dec 1, 2012, 5:40:54 PM12/1/12
to win32-...@perl.org

> ...
> Than I try to build with next command line:
> dmake INST_DRV=$DRV INST_TOP=$PREFIX_WIN/opt CCHOME=$MINGWHOME_WIN WIN64=undef
> ...

From using '$VARIABLE' I assume you are not running dmake from standard
command prompt (cmd.exe) which makefile.mk expects

Try to:
- make sure that you have 'dmake', 'gcc' & co. in your PATH
- start command prompt (cmd.exe)
- from command prompt: dmake INST_DRV=%DRV% INST_TOP=%PREFIX_WIN/opt%
CCHOME=%MINGWHOME_WIN% WIN64=undef

--
kmx

Алексей Павлов

unread,
Dec 2, 2012, 12:38:00 PM12/2/12
to kmx, win32-...@perl.org
I have some research and now I have successfully build PERL with MINGW
under MSYS. If anyone have interest on it I may publish my scripts for
building perl under MSYS. I have only one issue now - build freezing if I
redirect console output to log file.


2012/12/2 kmx <k...@atlas.cz>
0 new messages