[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issues with parallel build on Windows

From: Sasikala R
Subject: Issues with parallel build on Windows
Date: Mon, 4 Jan 2010 01:45:56 -0800 (PST)


Has anyone come across the following kind of error?

gmake.EXE[2]: *** [xxx.obj]    4522468

I don't get this error when we do serial build (with one thread).  This
happens only when we build in parallel mode.  And this failure occurs only
on Windows.


Directory structure:

xyz  ____ a
    |____ b
    |____ c

a --> 1.obj, 2.obj
b --> 3.obj, 4.obj, 5.obj
c --> 6.obj, 7.obj, 8.obj

cd xyz
gmake -j 3  --> where 2 processors are available.  1.5 times the number of

1. In the above example each thread tries to build the necessary modules and
then link to create the library.  Say thread 1 will try to pick 'a' and
create all objs it has (1.obj, 2.obj) and thread 2 will do the same for b
and third thread if available will do it for 'c'.  while issuing parallel
compilation each thread picks up seperate module and the value of j doesn't
get passed to sub-make, meaning there is no parallel compilation for objects
level when running gmake from top level.  Hence there is no race condition
in objects level, i.e., scenario where one thread picking up 1.obj and
another thread picking up 2.obj doesn't happen utill gmake is issued from
'xyz'.  Parallel compilation for cpps' occur only when running gmake inside
'a' or 'b' or 'c'.

2. This error doesn't occur due to missing library too. We get this error in
the very first level module at compile time which doesn't depend on any
other module. 

3. gmake --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

Thanks in advance.

View this message in context:
Sent from the Gnu - Make - Help mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]