%% Tat Lam <[EMAIL PROTECTED]> writes:

  tl> I am using the parallel make feature through the "-j" flag.
  tl> Frequently, my build will stop because the threads are not in sync
  tl> with each other.  For example, one of my rules has to do:

  tl> rm /tmp/link1
  tl> ln -s realfile /tmplink1

  tl> From the make output, I will have:
  tl> rm /tmp/link1
  tl> rm /tmp/link1
  tl> ln -s realfile /tmp/link1
  tl> ln -s realfile /tmp/link1
  tl> ln: /tmp/link1: file exists
  tl> Make: Error 2

This is wrong; why is your makefile trying to run the same set of rules
twice?  You obviously have something wrong in your makefile that's
causing this to happen.  Maybe you have two submakes which are running
the same makefile and trying to build the same target?  Or maybe two
different targets in a makefile are trying to run the same command
scripts?

There's little else that can be said based on this little segment of the
output.  You'll have to examine the makefile and determine (a) what
target(s) causes these commands to be run, (b) what makefiles they exist
in, and (c) whether it involves multiple invocations of recursive makes.

Also, please don't forget to specify what version of make you're using
when reporting problems or asking questions... thx!

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

Reply via email to