Browse files

[perl #33924] [PATCH] Build on Win32 with MinGW

I add some informations about building with MinGW32 in the file "README.win32".

With default configuration, the build process is OK.

With --gc=malloc (or --gc=malloc-trace), an error occurs during compiling
of src/malloc.c :
	src/malloc.c:637: conflicting types for `sbrk'
	src/malloc.c:270: previous declaration of `sbrk'
After a small patch, what's build.

Courtesy of Fran�ois Perrad <>

git-svn-id: d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
Leopold Toetsch
Leopold Toetsch committed Jan 26, 2005
1 parent 9494cbf commit df4b1f7c0b8196285914310f4e2c550ffb69f14b
Showing with 28 additions and 11 deletions.
  1. +27 −10 README.win32
  2. +1 −1 src/malloc.c
@@ -19,7 +19,7 @@ Native compilers include:
Borland C++ (bcc) version xxx or later
Microsoft Visual C++ (cl) version 13.10.3077 or later
- MinGW32 with GCC (gcc) version xxx or later
+ MinGW32 with GCC (gcc) version 3.2.3 or later
Intel C++ (icl) version 8.0.48 works
=head2 Setting Up Parrot
@@ -28,16 +28,19 @@ Native compilers include:
=item Make
-You need "nmake" to build Parrot under Windows. It should be
-available via Microsoft Visual Studio .NET 2003 or the Microsoft .NET
-Framework SDK 1.1. The later can be downloaded from the Microsoft
-.NET Framework Homepage L<>.
+You need "nmake" to build Parrot under Windows with Microsoft compilers.
+It should be available via Microsoft Visual Studio .NET 2003 or the
+Microsoft .NET Framework SDK 1.1. The later can be downloaded from the
+Microsoft .NET Framework Homepage L<>.
nmake should also be available at:
+MinGW works with its GNU "make" port. It can be downloaded here:
=item Command Shell
The surest way to build it is on Windows NT/2000/XP, using the cmd shell.
@@ -57,6 +60,8 @@ to use it.
cd <parrot directory>
perl --icushared="C:\usr\lib\icu\lib\icudata.lib C:\usr\lib\icu\lib\icuuc.lib" --icuheaders="C:\usr\lib\icu\include"
+With MinGW32, use .
=item Borland C++
@@ -75,7 +80,19 @@ Microsoft Visual C++ Toolkit instructions here XXX
=item MinGW32 with GCC
+The latest release of MSYS package at the time of writing is 1.0.10,
+which contains gcc-3.2.3. It can be downloaded here:
+The HomePage is on L<>.
+As extracts configuration from the perl program,
+first build/install perl with MinGW (no binary distribution available).
+See details on L<>,
+and source on L<>.
+Nota: Use only the ICU binary distribution.
=item Intel C++
@@ -85,15 +102,15 @@ XXX
=head2 Building
- nmake
=head2 Testing
- nmake test
+ $MAKE test
=head2 Installation
- nmake install
+ $MAKE install
=head2 Usage Hints
@@ -127,6 +144,6 @@ This document is maintained by XXX Your Name Here XXX.
This document borrows heavily from perl's README.win32.
-Last updated: 08 May 2004
+Last updated: 23 Jan 2005
@@ -632,7 +632,7 @@ Void_t* memcpy();
-#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__GNUC__)
#if __STD_C
extern Void_t* sbrk(ptrdiff_t);

0 comments on commit df4b1f7

Please sign in to comment.