[Insight-developers] the same command is sometime ran twice at
the same time with make -j2
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Sun Jan 21 05:34:01 EST 2007
Le Fri, 19 Jan 2007 17:52:03 +0100, Bill Hoffman
<bill.hoffman at kitware.com> a écrit:
> 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?
java, tcl and python
> 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.
I can't find any reference to add_target_depends anywhere.
Shouldn't cmake take care of that by itself ?
Gaetan
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr
More information about the Insight-developers
mailing list