Bug 111323 - parallel compiling with -j4 fails on arts engine (can't find amarokarts.h)
Summary: parallel compiling with -j4 fails on arts engine (can't find amarokarts.h)
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 1.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-23 00:17 UTC by dju`
Modified: 2006-06-11 12:32 UTC (History)
1 user (show)

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 dju` 2005-08-23 00:17:45 UTC
Version:           1.3 (using KDE KDE 3.4.1)
Installed from:    Gentoo Packages
Compiler:          gcc-3.3.5.20050130-r1 using distcc 2.18.3-r7 on 2 hosts
OS:                Linux

building amarok-1.3 using parallel make (> -j4) and distcc over 2 hosts fails. -j1 to -j3 works fine.

please see the Gentoo bug report: http://bugs.gentoo.org/show_bug.cgi?id=103288

looks like amarok/src/engine/arts/amarokarts/Makefile.am need to be fixed for parallel building?

thanks.
Comment 1 Thiago Macieira 2005-08-23 07:19:06 UTC
Does this work:

Index: Makefile.am
===================================================================
--- Makefile.am (revision 452355)
+++ Makefile.am (working copy)
@@ -25,3 +25,5 @@

 CLEANFILES = amarokarts.cc amarokarts.h amarokarts.mcopclass amarokarts.mcoptype
 #noinst_HEADERS =  amarokconfig.h
+
+rawscope_impl.cpp : amarokarts.h


Oh, by the way, I build with -j5, -j7 or even -j9 sometimes and I had never seen this bug.
Comment 2 dju` 2005-08-23 08:54:01 UTC
With this patch, compile with -j4 works as expected. thanks!
Comment 3 Alexandre Oliveira 2005-08-23 23:32:53 UTC
SVN commit 452612 by aoliveira:

Make arts engine compile with -j4
Patch by Thiago Macieira, thanks!
BUG: 111323


 M  +2 -0      Makefile.am


--- trunk/extragear/multimedia/amarok/src/engine/arts/amarokarts/Makefile.am #452611:452612
@@ -25,3 +25,5 @@

 CLEANFILES = amarokarts.cc amarokarts.h amarokarts.mcopclass amarokarts.mcoptype
 #noinst_HEADERS =  amarokconfig.h
+
+rawscope_impl.cpp : amarokarts.h
Comment 4 David Faure 2005-08-23 23:39:05 UTC
On Tuesday 23 August 2005 23:30, Alexandre Pereira de Oliveira wrote:
> SVN commit 452612 by aoliveira:
> 
> Make arts engine compile with -j4
> Patch by Thiago Macieira, thanks!
> BUG: 111323
> 
> 
>  M  +2 -0      Makefile.am  
> 
> 
> --- trunk/extragear/multimedia/amarok/src/engine/arts/amarokarts/Makefile.am #452611:452612
> @@ -25,3 +25,5 @@
>  
>  CLEANFILES = amarokarts.cc amarokarts.h amarokarts.mcopclass amarokarts.mcoptype
>  #noinst_HEADERS =  amarokconfig.h
> +
> +rawscope_impl.cpp : amarokarts.h


Is rawscople_impl.cpp a generated file?
Otherwise you probably mean
rawscope_impl.lo: amarokarts.h
instead (as the makefile.am howto recommends, iirc)
Comment 5 Dirk Mueller 2005-08-24 01:12:40 UTC
On Tuesday 23 August 2005 23:38, David Faure wrote:

> Is rawscople_impl.cpp a generated file?
> Otherwise you probably mean
> rawscope_impl.lo: amarokarts.h
> instead (as the makefile.am howto recommends, iirc)


or better, use _COMPILE_FIRST