Parallel make

17 views
Skip to first unread message

Erik Faye-Lund

unread,
May 5, 2014, 7:37:27 AM5/5/14
to mingwGi...@googlegroups.com
I just successfully tried mingwGitDevEnv for the first time, thanks a
lot for the effort!

However, I noticed one issue: Building git with "make -j2" makes
'make' hang here. In fact, it seems to happen for any N>1 when doing
"make -jN". Some times N instances of the compilers are started before
hanging, sometimes not - this seems to depend on the value of N.

The extra worrying bit is that it hangs "so bad" that Ctrl+C doesn't
even terminate the process.

So, this is probably *not* the right place to discuss issues with
'make', but perhaps someone can point me in the right direction?

Some diagnostics, for those who might care:

$ which make
/bin/make.exe

/git (master)
$ make --version
GNU Make 3.81
Copyright (C) 2006 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.

This program built for i686-pc-msys

Sebastian Schuberth

unread,
May 5, 2014, 9:33:05 AM5/5/14
to Erik Faye-Lund, mingwGi...@googlegroups.com
On Mon, May 5, 2014 at 1:37 PM, Erik Faye-Lund <kusm...@gmail.com> wrote:

> However, I noticed one issue: Building git with "make -j2" makes
> 'make' hang here. In fact, it seems to happen for any N>1 when doing

Yeah, this is sort of a know issue, i.e. I was running into this, too,
and when searching for this issue on the MinGW / MSYS mailing list I
came across the thread at [1], specifically the post at [2]. If you
want to check whether a different version of MSYS "make" solves the
problem, you could try the one from [3] or make-4.0-4-i686.pkg.tar.xz
from [4] (the build script for these binaries is at [5]), but chances
are that those will not run within mingwGitDevEnv because of
dependency issues. So if you're willing to dig deeper, another option
would be to build an msys-make package yourself (vased on [5]), like
we already to for several other pahes as part of the
mingwGitDevEnv-packages project [6].

As a side note, AFAIK parallel make also never worked reliably on msysgit, or?

[1] http://mingw.5.n7.nabble.com/parallel-make-hangs-parallel-mingw32-make-works-td32658.html
[2] http://mingw.5.n7.nabble.com/parallel-make-hangs-parallel-mingw32-make-works-tp32658p32680.html
[3] http://lrn.no-ip.info/packages/i686-pc-msys/make/3.99.91-1/
[4] http://sourceforge.net/projects/msys2/files/REPOS/MSYS2/i686/
[5] https://github.com/Alexpux/MSYS2-packages/tree/master/make
[6] https://github.com/sschuberth/mingwGitDevEnv-packages/

--
Sebastian Schuberth

Sebastian Schuberth

unread,
Aug 23, 2014, 5:10:36 PM8/23/14
to Erik Faye-Lund, mingwGi...@googlegroups.com
On Mon, May 5, 2014 at 3:33 PM, Sebastian Schuberth
<sschu...@gmail.com> wrote:

>> However, I noticed one issue: Building git with "make -j2" makes
>> 'make' hang here. In fact, it seems to happen for any N>1 when doing

[...]

> As a side note, AFAIK parallel make also never worked reliably on msysgit, or?

FYI, thanks to Karsten Blees parallel make work now, see [1].

[1] https://github.com/sschuberth/mingwGitDevEnv-packages/commit/b2fc6cc1aa60d332082d6dc565b1a9dfe29f8464

--
Sebastian Schuberth
Reply all
Reply to author
Forward
0 new messages