threads / discuss / 9299

MinGW build environment for Git

Subject: MinGW build environment for Git

## tl;dr

5 messages between Jul 29, 2007 and Aug 1, 2007.

replies: 4people: 3as markdown or json

Dmitry Kakurin· Jul 29, 2007, 23:14 UTC · lore
    I want to be able to build MinGW port of Git on Windows.
I've tried to follow steps in README.MinGW to setup this environment
myself (install MinGW, MSys, ZLib etc.) but after wasting a lot of
time with no result I give up.
   So, could somebody please just pkzip their environment (everything
required) and share the zip file with me (privately or publicly)?
   I also think that an even better idea is to create a new Git
repository with MinGW build environment. This will make contributing
to MinGW port of Git MUCH easier.
- Dmitry
Marius Storm-Olsen· Aug 1, 2007, 05:15 UTC · re: Dmitry Kakurin · lore

Re: MinGW build environment for Git

Dmitry Kakurin said the following on 30.07.2007 01:14:
Show 8 quoted lines
> I want to be able to build MinGW port of Git on Windows. I've tried
> to follow steps in README.MinGW to setup this environment myself
> (install MinGW, MSys, ZLib etc.) but after wasting a lot of time
> with no result I give up. So, could somebody please just pkzip
> their environment (everything required) and share the zip file with
> me (privately or publicly)? I also think that an even better idea
> is to create a new Git repository with MinGW build environment.
> This will make contributing to MinGW port of Git MUCH easier.
Hi Dmitry,
Aaron has done this, and you can find the link on his blog, here:
     http://www.ekips.org/cgi-bin/aaron.cgi/2007/02/27

The archive's compressed with 7zip, so you'll need that to decompress it. (http://www.7-zip.org/)

Direct link to the archive:
     http://inkscape.modevia.com/git/mingw4git.7z
Good luck!
-- 
.marius
Dmitry Kakurin· Aug 1, 2007, 09:08 UTC · re: Marius Storm-Olsen · lore

Re: MinGW build environment for Git

On 7/31/07, Marius Storm-Olsen <marius@trolltech.com> wrote:
Show 12 quoted lines
> Dmitry Kakurin said the following on 30.07.2007 01:14:
> > I want to be able to build MinGW port of Git on Windows. I've tried
> > to follow steps in README.MinGW to setup this environment myself
> > (install MinGW, MSys, ZLib etc.) but after wasting a lot of time
> > with no result I give up. So, could somebody please just pkzip
> > their environment (everything required) and share the zip file with
> > me (privately or publicly)? I also think that an even better idea
> > is to create a new Git repository with MinGW build environment.
> > This will make contributing to MinGW port of Git MUCH easier.
>
> Aaron has done this, and you can find the link on his blog, here:
>     http://www.ekips.org/cgi-bin/aaron.cgi/2007/02/27
I've downloaded and installed it. But I could not make it work :-(.
First I had this problem:
$ make
GIT_VERSION = 1.5.3.GIT
    * new build flags or prefix
    CC convert-objects.o
gcc.exe: installation problem, cannot exec `cc1': No such file or directory
make: *** [convert-objects.o] Error 1

Then I've copied cc1.exe and some others from C:\mingw4git\libexec\gcc\mingw32 into /bin.

$ make
    CC convert-objects.o
In file included from cache.h:4,
                 from convert-objects.c:1:
git-compat-util.h:51:22: sys/wait.h: No such file or directory
Searching entire (downloaded) tree for wait.h gives nothing.
'make configure' does not work:
$ make configure
    GEN configure
configure.ac+:4: error: Autoconf version 2.59 or higher is required
configure.ac+:4: the top level
autom4te: /bin/m4 failed with exit status: 1
make: *** [configure] Error 1
What do I do now?
-Dmitry
Johannes Schindelin· Aug 1, 2007, 10:44 UTC · re: Dmitry Kakurin · lore

Re: MinGW build environment for Git

Hi,
On Wed, 1 Aug 2007, Dmitry Kakurin wrote:
Show 43 quoted lines
> On 7/31/07, Marius Storm-Olsen <marius@trolltech.com> wrote:
> > Dmitry Kakurin said the following on 30.07.2007 01:14:
> > > I want to be able to build MinGW port of Git on Windows. I've tried
> > > to follow steps in README.MinGW to setup this environment myself
> > > (install MinGW, MSys, ZLib etc.) but after wasting a lot of time
> > > with no result I give up. So, could somebody please just pkzip
> > > their environment (everything required) and share the zip file with
> > > me (privately or publicly)? I also think that an even better idea
> > > is to create a new Git repository with MinGW build environment.
> > > This will make contributing to MinGW port of Git MUCH easier.
> >
> > Aaron has done this, and you can find the link on his blog, here:
> >     http://www.ekips.org/cgi-bin/aaron.cgi/2007/02/27
> 
> I've downloaded and installed it. But I could not make it work :-(.
> First I had this problem:
> $ make
> GIT_VERSION = 1.5.3.GIT
>     * new build flags or prefix
>     CC convert-objects.o
> gcc.exe: installation problem, cannot exec `cc1': No such file or directory
> make: *** [convert-objects.o] Error 1
> 
> Then I've copied cc1.exe and some others from
> C:\mingw4git\libexec\gcc\mingw32 into /bin.
> 
> $ make
>     CC convert-objects.o
> In file included from cache.h:4,
>                  from convert-objects.c:1:
> git-compat-util.h:51:22: sys/wait.h: No such file or directory
> 
> Searching entire (downloaded) tree for wait.h gives nothing.
> 
> 'make configure' does not work:
> $ make configure
>     GEN configure
> configure.ac+:4: error: Autoconf version 2.59 or higher is required
> configure.ac+:4: the top level
> autom4te: /bin/m4 failed with exit status: 1
> make: *** [configure] Error 1
> 
> What do I do now?

This looks like you downloaded git.git. Official releases do not have MinGW support yet! You have to get the MinGW port from repo.or.cz:

	http://repo.or.cz/w/git/mingw.git

Hth, Dscho

Dmitry Kakurin· Aug 1, 2007, 22:18 UTC · re: Johannes Schindelin · lore

Re: MinGW build environment for Git

On 8/1/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 52 quoted lines
> Hi,
>
> On Wed, 1 Aug 2007, Dmitry Kakurin wrote:
>
> > On 7/31/07, Marius Storm-Olsen <marius@trolltech.com> wrote:
> > > Dmitry Kakurin said the following on 30.07.2007 01:14:
> > > > I want to be able to build MinGW port of Git on Windows. I've tried
> > > > to follow steps in README.MinGW to setup this environment myself
> > > > (install MinGW, MSys, ZLib etc.) but after wasting a lot of time
> > > > with no result I give up. So, could somebody please just pkzip
> > > > their environment (everything required) and share the zip file with
> > > > me (privately or publicly)? I also think that an even better idea
> > > > is to create a new Git repository with MinGW build environment.
> > > > This will make contributing to MinGW port of Git MUCH easier.
> > >
> > > Aaron has done this, and you can find the link on his blog, here:
> > >     http://www.ekips.org/cgi-bin/aaron.cgi/2007/02/27
> >
> > I've downloaded and installed it. But I could not make it work :-(.
> > First I had this problem:
> > $ make
> > GIT_VERSION = 1.5.3.GIT
> >     * new build flags or prefix
> >     CC convert-objects.o
> > gcc.exe: installation problem, cannot exec `cc1': No such file or directory
> > make: *** [convert-objects.o] Error 1
> >
> > Then I've copied cc1.exe and some others from
> > C:\mingw4git\libexec\gcc\mingw32 into /bin.
> >
> > $ make
> >     CC convert-objects.o
> > In file included from cache.h:4,
> >                  from convert-objects.c:1:
> > git-compat-util.h:51:22: sys/wait.h: No such file or directory
> >
> > Searching entire (downloaded) tree for wait.h gives nothing.
> >
> > 'make configure' does not work:
> > $ make configure
> >     GEN configure
> > configure.ac+:4: error: Autoconf version 2.59 or higher is required
> > configure.ac+:4: the top level
> > autom4te: /bin/m4 failed with exit status: 1
> > make: *** [configure] Error 1
> >
> > What do I do now?
>
> This looks like you downloaded git.git.  Official releases do not have
> MinGW support yet!  You have to get the MinGW port from repo.or.cz:
>
>        http://repo.or.cz/w/git/mingw.git

You were right. I was downloading Git under Cygwin and then copied it to MSys. Somewhere along the way I got confused and copied the wrong directory. It works now! Thank you!

- Dmitry

← back to recent threads