[Insight-developers] Parallel builds with CMake?

Luis Ibanez luis.ibanez at kitware.com
Wed Oct 20 16:58:45 EDT 2010


Hi Michal,

As Dave pointed out, we build ITK Nightly with
parallel builds with several versions of gcc.

See for example:
zion, eldorado, thurmite,

in the ITK Dashboard.


In eldorado.kitware, for example,
a dual-quad-core machine,
I can regularly do:

                          make -j16

and build ITK (with tests and examples)
in about 17 minutes.


The problem that you report:

      "gdcmSerieHelper.h: No such file or directory"


Looks more like a configuration issue.

Do you get to build that binary tree
when you use just "make"  ?



   Please let us know,


        Thanks


              Luis


----------------------------------------------------------------
On Tue, Oct 19, 2010 at 4:40 PM, Michal Suchanek <hramrach at centrum.cz>wrote:

> Hello
>
> On 19 October 2010 15:08, David Cole <david.cole at kitware.com> wrote:
> > CMake generates makefiles that are capable of parallel build with "-j N"
> > flags to make...
> > ParaView, VTK and ITK all should work with -j N.
> > It is possible to write CMakeLists.txt code that causes problems with
> > parallel builds, but they are generally sorted out rather quickly because
> > *everyone* uses -j N to build these days.
> > If you are having problems with parallel make, then details about the
> > specific problem (what version of compiler / make / cmake, and the
> > copy/pasted error message) would be helpful in order to help you...
>
> The Debian package of ITK 3.18 had issues building in parallel and the
> packaging script was set up to filter out that option.
>
> Now that I build only bare ITK 4  without any docs or wrappings it works
> fine.
>
> However, the wrapitk which is supposed to replace the previous
> wrappings gives wildly different logs when built sequentially and in
> parallel (although it does not build in either case currently).
>
> Still the parallel build fails much earlier. Log excerpt below.
>
> Thanks
>
> Michal
>
> [  2%] /usr/bin/cmake -E cmake_progress_report
> /scratch/itk/wrapitk-read-only/build.1/CMakeFiles
> Generating wrap_ITKIOBase.xml
> cd /scratch/itk/wrapitk-read-only/build.1/Libraries/IO &&
> /usr/bin/gccxml -fxml-start=_cable_ -fxml=/scratch/itk/wrapitk-read-o
> nly/build.1/Libraries/IO/wrap_ITKIOBase.xml --gccxml-gcc-options
> /scratch/itk/wrapitk-read-only/build.1/Libraries/IO/gcc_xml.in
> c -DCSWIG -DCABLE_CONFIGURATION -DITK_MANUAL_INSTANTIATION
> /scratch/itk/wrapitk-read-only/build.1/Libraries/IO/wrap_ITKIOBase.cxx
> In file included from
> /scratch/itk/wrapitk-read-only/build.1/Libraries/IO/wrap_ITKIOBase.cxx:81:
> /usr/include/InsightToolkit/IO/itkGDCMSeriesFileNames.h:24:29: error:
> gdcmSerieHelper.h: No such file or directory
> In file included from
> /scratch/itk/wrapitk-read-only/build.1/Libraries/IO/wrap_ITKIOBase.cxx:81:
> /usr/include/InsightToolkit/IO/itkGDCMSeriesFileNames.h:139: error:
> 'gdcm' has not been declared
> /usr/include/InsightToolkit/IO/itkGDCMSeriesFileNames.h:139: error:
> ISO C++ forbids declaration of 'SerieHelper' with no type
> /usr/include/InsightToolkit/IO/itkGDCMSeriesFileNames.h:139: error:
> expected ';' before '*' token
> /usr/include/InsightToolkit/IO/itkGDCMSeriesFileNames.h:150: error:
> expected `;' before 'void'
> /usr/include/InsightToolkit/IO/itkGDCMSeriesFileNames.h:190: error:
> 'gdcm' has not been declared
> /usr/include/InsightToolkit/IO/itkGDCMSeriesFileNames.h:190: error:
> ISO C++ forbids declaration of 'SerieHelper' with no type
> /usr/include/InsightToolkit/IO/itkGDCMSeriesFileNames.h:190: error:
> expected ';' before '*' token
> /usr/include/InsightToolkit/IO/itkGDCMSeriesFileNames.h: In member
> function 'void itk::GDCMSeriesFileNames::AddSeriesRestrictio
> n(const std::string&)':
> /usr/include/InsightToolkit/IO/itkGDCMSeriesFileNames.h:152: error:
> 'm_SerieHelper' was not declared in this scope
>
> gcc (Debian 4.4.5-2) 4.4.5
> Copyright (C) 2010 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 PARTICULAR PURPOSE.
>
> g++ (Debian 4.4.5-2) 4.4.5
> Copyright (C) 2010 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 PARTICULAR PURPOSE.
>
> 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
> PARTICULAR PURPOSE.
>
> This program built for x86_64-pc-linux-gnu
> cmake version 2.8.2
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101020/12c566fd/attachment.htm>


More information about the Insight-developers mailing list