Multiple processor, Xcode 3.0 race condition when building Derived Sources?
Multiple processor, Xcode 3.0 race condition when building Derived Sources?
- Subject: Multiple processor, Xcode 3.0 race condition when building Derived Sources?
- From: "Mike Marino" <email@hidden>
- Date: Thu, 21 Feb 2008 19:03:19 -0800
Hi all-
I have a project that generates derived sources in $DERIVED_FILE_DIR ( generated with lex and yacc ). One generated file genFoo.m file depends upon another generated genFoo.h file. These files get generated in the correct order according to the build log, but an error occurs when Xcode attempts to compile genFoo.m that says genFoo.h cannot be found. After the build fails I have verified that genFoo.h does indeed exist within $DERIVED_FILE_DIR. I am building on a Dual G5, so my conclusion is that a race condition occurs like:
1. begin generate genFoo.h
2. begin generate genFoo.m
3. finish genFoo.m
4. compile genFoo.m (error)
5. finish genFoo.h
If I restart after a build failure it completes fine. Unfortunately, this error is not readily reproducible but I would like to avoid it in the future. I imagine it has something to do with how dependencies are worked out with derived files, but I'm not sure.
Is this a bug or known behavior that I can fix somehow? Any help would be appreciated.
Cheers, Mike
_______________________________________________
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