%% [EMAIL PROTECTED] (Jagadish Prasad) writes:

  jp>   We use "C++" compiler for development and we use the flag
  jp>   "-ptr$(ODIR)" as the template database path. When i run
  jp>   make with "-j2" option it compains with the following
  jp>   error. How can i get over this problem.   Please note i dont
  jp>   have any permissions problem. If i just run make with no
  jp>   -j option everything goes thru fine.

  jp> template manager : Warning: Could not create 
"/export/home/localbuild_depend_merge_view/mibobjs/Templates.DB", aborting...

This probably means that the C++ compiler is using the same template
database file for all the different .o files.

That means you can't use -j at all, because when make invokes multiple
instances of the compiler they will all be trying to update that same
file at the same time, and it'll either fail as above, or corrupt the
file.

This is not a make issue; this is a quality-of-implementation issue with
your compiler: essentially your compiler doesn't support parallel
compilation.

Check with your compiler vendor and see if there's a FAQ or suggested
workaround to this; for example, perhaps there's a way you can convince
the compiler to keep a separate template database for each .o file so
they won't conflict, rather than putting everything in one file.

If not, I guess you just can't compile these files in parallel.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.ultranet.com/~pauld/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

Reply via email to