Bug 76477 - kdemultimedia build fails with parallel make
Summary: kdemultimedia build fails with parallel make
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-01 03:51 UTC by Caleb Tennis
Modified: 2004-03-08 14:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?