Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411879 - dev-libs/cdk-5.0.20090215 fails in parallel build
Summary: dev-libs/cdk-5.0.20090215 fails in parallel build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-13 19:02 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2012-04-14 17:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
cdk-5.0.20090215-build.log (cdk-5.0.20090215-build.log,7.15 KB, text/plain)
2012-04-13 19:02 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
emerge--info.txt (emerge--info.txt,4.96 KB, text/plain)
2012-04-13 19:02 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
cdk-5.0.20120323-build.log (cdk-5.0.20120323-build.log,7.91 KB, text/plain)
2012-04-14 07:01 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
parallel make patch (cdk-5.0.20120323-parallel-make.patch,270 bytes, patch)
2012-04-14 07:40 UTC, Tim Harder
Details | Diff
parallel make patch (cdk-5.0.20120323-parallel-make.patch,270 bytes, patch)
2012-04-14 07:44 UTC, Tim Harder
Details | Diff
cdk-5.0.20120323-build.log (cdk-5.0.20120323-build.log,8.72 KB, text/plain)
2012-04-14 15:08 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
cdk-5.0.20120323-parallel-make.patch (cdk-5.0.20120323-parallel-make.patch,305 bytes, patch)
2012-04-14 15:11 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-04-13 19:02:10 UTC
Created attachment 308805 [details]
cdk-5.0.20090215-build.log

I do not encouner the errors about a missing fscale.h in the attached build.log when I do:

  MAKEOPTS= emerge -1v cdk

Also, I have only been able to reproduce the parallel compilation failure when taxing the system by merging something else (ex. freeciv) at the same time.
Comment 1 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-04-13 19:02:49 UTC
Created attachment 308807 [details]
emerge--info.txt
Comment 2 Tim Harder gentoo-dev 2012-04-13 20:01:42 UTC
Can you reproduce this with 5.0.20110517 or 5.0.20120323?
Comment 3 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-04-14 07:01:39 UTC
Created attachment 308853 [details]
cdk-5.0.20120323-build.log

(In reply to comment #2)
> Can you reproduce this with 5.0.20110517 or 5.0.20120323?

Yup.
Comment 4 Tim Harder gentoo-dev 2012-04-14 07:40:07 UTC
Created attachment 308859 [details, diff]
parallel make patch

Since I can't reproduce the failure you'll have to test the patch to see if it fixes your problem.

Just append it to the other two patches already applied in cdk-5.0.20120323.
Comment 5 Tim Harder gentoo-dev 2012-04-14 07:44:37 UTC
Created attachment 308861 [details, diff]
parallel make patch

Attached the correct patch this time.
Comment 6 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-04-14 15:08:14 UTC
Created attachment 308911 [details]
cdk-5.0.20120323-build.log

attachment 308861 [details, diff] does not affect the build.

Your patch makes certain invalid assumptions about what is needed to fix parallel build problems.

  all: $(AUTO_HDR) $(DEFAULT)

The above line does not guarantee that $(AUTO_HDR) will be built before $(DEFAULT) is. You should instead need to have any object file whose source file requires the AUTO_HDRs to depend on AUTO_HDRs. (patch coming in a moment)
Comment 7 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-04-14 15:11:22 UTC
Created attachment 308913 [details, diff]
cdk-5.0.20120323-parallel-make.patch

This version makes the object files depend on _all_ of the headers instead of just the one non-generated header. It seems to fix the problem for me. And its logic seems right ;-).

You said you had trouble reproducing the bug. I also do, but I found that I was able to relatively reliably reproduce it by making sure that freeciv was in src_compile() before starting to emerge cdk. I'm not going to try to guess why that works for me, but that's how parallel stuff goes probably…
Comment 8 Tim Harder gentoo-dev 2012-04-14 17:31:55 UTC
> You said you had trouble reproducing the bug. I also do, but I found that I
> was able to relatively reliably reproduce it by making sure that freeciv was
> in src_compile() before starting to emerge cdk. I'm not going to try to
> guess why that works for me, but that's how parallel stuff goes probably…

I tried a lot of different cases and none of them failed for me.
Comment 9 Tim Harder gentoo-dev 2012-04-14 17:43:20 UTC
(In reply to comment #7)
> Created attachment 308913 [details, diff] [details, diff]
> cdk-5.0.20120323-parallel-make.patch

I'm assuming by the looks of your patch you sent this upstream? If not, please do.
Comment 10 Tim Harder gentoo-dev 2012-04-14 17:53:13 UTC
Fixed in CVS.