Bug 76477

Summary: kdemultimedia build fails with parallel make
Product: [I don't know] kde Reporter: Caleb Tennis <caleb>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Caleb Tennis 2004-03-01 03:51:37 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Gentoo Packages
Compiler:          gcc 3.3 
OS:          Linux

There are parallel make errors in kdemultimedia/arts/gui.

Some of the .cc files are dependent on .h files, which must first be created from running mcop on the .idl files.

For example, arts/gui/common/genericguifactory_impl.cc relies on artsgui.h, which is built after running mcop on artsgui.idl.  However, for users using make with the "-j N" option, in most cases the compilation for genericguifactory_impl.cc gets run before mcop has had a chance to run, causing the build to fail.

(This also seems to persist with some of the other .idl files in the the arts/ subdirectory, and it may manifest itself in other subdirectories as well.)

Solution:

I can either recommend to add a "-j1" to the compiler flags in the Makefile to override the parallel make behavior, or to add a .NOTPARALLEL argument to the makefile to disable the parallel building.  There may be other, smarter, options as well.
Comment 1 Caleb Tennis 2004-03-08 03:11:57 UTC
I've committed this (NOTPARALLEL) fix for HEAD.  I'll plan to fix it in the 3.2 branch too as long as nobody complains about it in head.
Comment 2 Stephan Kulow 2004-03-08 14:03:59 UTC
or you fix it the right way instead of adding nonsense work arounds?