[Insight-developers] the same command is sometime ran twice at the same time with make -j2

Bill Hoffman bill.hoffman at kitware.com
Fri Jan 19 11:52:03 EST 2007


Gaetan Lehmann wrote:
>
> Hi Bill,
>
> There is a problem I see from time to time while building WrapITK: a 
> file is generated 2 times at the same time. It can lead to an invalid 
> generated file.
> I see that on linux, but also on windows:
>
> http://www.itk.org/Testing/Sites/peuplier.jouy.inra.fr/Win32-VCExpress2005/20070119-0100-Nightly/BuildError.html 
>
>
> The command needed to generate the file 
> wrap_itkFiniteDifferenceImageFilter.xml is run twice at the same time.
>
> Do you know how to fix that ? Is it a cmake bug ?
There are no notes for the build, so I am not sure what options are 
being used.   Is it building tcl and Java?  VS 2005 can do parallel 
builds, so my guess is that there are two separate targets that both try 
to generate that xml file.  But the targets are not depending on each 
other in anyway.  A few add_target_depends might fix it.

-Bill



More information about the Insight-developers mailing list