Re: Parallel Target Building problem
Re: Parallel Target Building problem
- Subject: Re: Parallel Target Building problem
- From: Michael Rawdon <email@hidden>
- Date: Wed, 19 Nov 2008 11:42:18 -0800
Hi Eric -On Nov 19, 2008, at 8:49 AM, Eric Gorr wrote: Some of my subprojects aren't building properly when I have parallel target building turned on.
I have verified that the dependencies are setup correctly.
The results in the build window for a subproject that isn't building correctly are:
Building target “ColorPalettes” of project “ColorPalettes” with configuration “Dev”
Checking Dependencies
Processing /Users/Eric/Projects2/Engineering/Application/SubBranches/Vers15/Cocoa/AppSource/Source/Plug-Ins/Shipping/ColorPalettes/../../../../Output/Plug-Ins/ColorPalettes.applibrary/Contents/Info.plist ./MacResources/Library-Info.plist mkdir /Users/Eric/Projects2/Engineering/Application/SubBranches/Vers15/Cocoa/AppSource/Source/Plug-Ins/Shipping/ColorPalettes/../../../../Output/Plug-Ins/ColorPalettes.applibrary/Contents cd /Users/Eric/Projects2/Engineering/Application/SubBranches/Vers15/Cocoa/AppSource/Source/Plug-Ins/Shipping/ColorPalettes <com.apple.tools.info-plist-utility> ./MacResources/Library-Info.plist -expandbuildsettings -o /Users/Eric/Projects2/Engineering/Application/SubBranches/Vers15/Cocoa/AppSource/Source/Plug-Ins/Shipping/ColorPalettes/../../../../Output/Plug-Ins/ColorPalettes.applibrary/Contents/Info.plist
and that's it. It never tries to compile any of the source files, etc. If I open up the subproject and press the build button, everything compiles correctly. What subprojects fail to build in a similar manner can differ.
If I disable parallel target building, everything builds correctly always.
If it matters, I am also using distributed building.
I'd hate to have to disable parallel target building and am hoping that someone might have an idea on what might be happening.
This sounds like a bug which we just recently discovered in Xcode. I'm not absolutely sure it's the same, but your description fits the profile.
Unfortunately I don't know of a good workaround other than turning off Build Independent Targets in Parallel. The problem is essentially a timing issue/race condition, so you might be able to work around the problem by re-ordering your independent targets (or, rather their dependencies in their "parent" targets), perhaps by putting the "larger" targets (targets containing more files) ahead of the "smaller" targets (this is just a wild guess on my part). But, since this is a timing issue, there's no guarantee that this will work (or will work consistently). :-(
FWIW, I don't think distributed building is a factor.
The bug will be fixed in a future release, but I don't have better news than that. -- Michael Rawdon email@hidden Xcode Developer Apple Inc., Cupertino CA
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden