make -j4 broken again?
Alexander Neundorf
neundorf at kde.org
Tue Apr 4 20:55:07 CEST 2006
On Tuesday 04 April 2006 20:47, David Faure wrote:
> On Tuesday 04 April 2006 20:40, William A. Hoffman wrote:
> > I think the parallel build is broken again.
> >
> > There are random failures on this dashboard:
> > http://public.kitware.com/KDE/Testing/Sites/matt.rogers.name/Linux-Archli
> >nux-gcc4.0.3/20060404-0100-Nightly/BuildError.html
> >
> > It uses make -j4 for the build. The other dashboard on dash17 is working
> > fine for the same build, and it does not use parallel builds.
>
> Right; this looks like a missing dependency on settings.h, which is a
> generated header file (generated from settings.kcfgc using
> kconfig_compiler.
>
> So this would be a bug in KDE4_ADD_KCFG_FILES, from
> kdelibs/cmake/modules/KDE4Macros.cmake Hmm. Would this fix it?
> --- KDE4Macros.cmake (revision 526070)
> +++ KDE4Macros.cmake (working copy)
> @@ -128,6 +128,7 @@ MACRO (KDE4_ADD_KCFG_FILES _sources)
> SET_SOURCE_FILES_PROPERTIES(${_header_FILE} PROPERTIES GENERATED
> TRUE) QT4_GENERATE_MOC(${_header_FILE} ${_moc_FILE} )
> MACRO_ADD_FILE_DEPENDENCIES(${_src_FILE} ${_moc_FILE} )
> + MACRO_ADD_FILE_DEPENDENCIES(${_moc_FILE} ${_header_FILE} )
>
> set(${_sources} ${${_sources}} ${_src_FILE})
Brad suggested to add a second custom command which has as output the second
generated file, no command, and depends on the first generated file. I just
committed this, but cannot test it very good with one processor only.
Bye
Alex
--
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org - http://www.kde.org
alex AT neundorf.net - http://www.neundorf.net
More information about the Kde-buildsystem
mailing list