Shared Precompiled Header Mechanism seems half broken
Shared Precompiled Header Mechanism seems half broken
- Subject: Shared Precompiled Header Mechanism seems half broken
- From: Ladd Van Tol <email@hidden>
- Date: Fri, 24 Jun 2005 12:31:55 -0700
Hi all,
I filed a bug about this, but am going to ask here to see if
anyone else is having a similar problem. Basically, I'm building a
smallish (9,000 line) project on Xcode 2.1. About every other build,
I get a failure, which I've pasted below.
Deleting the contents of my SharedPrecompiledHeaders directory does
not seem to help matters, but building again usually resolves the
problem. The problem seems to be worse on source files that re-
include things referenced by the precompiled header.
For example, my .pch looks like this:
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>
#endif
.. and I might have a .h file that does:
#import <Cocoa/Cocoa.h>
About half the time, when the accompanying .m is built, I'll get the
failure pasted below.
This is a seriously annoying bug, and happens on more than one
project, and on more than one machine.
Ideas?
Thanks,
Ladd
P.S. A cursory test suggests that not including <Cocoa/Cocoa.h>
anywhere but from my .pch may resolve the problem.
CompileC "build/My Project.build/Development/My Project.build/Objects-
normal/ppc/NSAttributedStringExtensions.o" Source/
NSAttributedStringExtensions.m normal ppc objective-c++
com.apple.compilers.gcc.3_3
mkdir "/Users/ladd/Code/svn/clientproject/trunk/mac_client/My
Project/build/My Project.build/Development/My Project.build/Objects-
normal/ppc"
cd "/Users/ladd/Code/svn/clientproject/trunk/mac_client/My Project"
setenv MACOSX_DEPLOYMENT_TARGET 10.3
setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk
/usr/bin/gcc-3.3 -x objective-c++ -arch ppc -pipe -Wno-trigraphs
-fobjc-exceptions -fpascal-strings -faltivec -fasm-blocks -g -O0 -
Wreturn-type -Wunused-variable -fmessage-length=0 -ffix-and-continue -
mtune=G4 "-Wp,-header-mapfile,/Users/ladd/Code/svn/clientproject/
trunk/mac_client/My Project/build/My Project.build/Development/My
Project.build/My Project.hmap" -Winvalid-pch "-F/Users/ladd/Code/svn/
clientproject/trunk/mac_client/My Project/build/Development" "-I/
Users/ladd/Code/svn/clientproject/trunk/mac_client/My Project/build/
Development/include" "-I/Users/ladd/Code/svn/clientproject/trunk/
mac_client/My Project/build/My Project.build/Development/My
Project.build/DerivedSources" -isystem /Developer/SDKs/
MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3 -I/Developer/SDKs/
MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3/c++ -I/Developer/SDKs/
MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3/c++/ppc-darwin -isystem /
Developer/SDKs/MacOSX10.3.9.sdk/usr/include -include "/Library/Caches/
com.apple.Xcode.501/SharedPrecompiledHeaders/My Project_Prefix-
dgunlntfsbjrwiazeoimhhfteqhp/My Project_Prefix.pch" -c "/Users/ladd/
Code/svn/clientproject/trunk/mac_client/My Project/Source/
NSAttributedStringExtensions.m" -o "/Users/ladd/Code/svn/
clientproject/trunk/mac_client/My Project/build/My Project.build/
Development/My Project.build/Objects-normal/ppc/
NSAttributedStringExtensions.o"
cc1objplus: warning: /Library/Caches/com.apple.Xcode.501/
SharedPrecompiledHeaders/My Project_Prefix-
dgunlntfsbjrwiazeoimhhfteqhp/My Project_Prefix.pch.gch: not used
because `__private_extern__' not defined
cc1objplus: /Library/Caches/com.apple.Xcode.501/
SharedPrecompiledHeaders/My Project_Prefix-
dgunlntfsbjrwiazeoimhhfteqhp/My Project_Prefix.pch: No such file or
directory
cc1objplus: one or more PCH files were found, but they were invalid
_______________________________________________
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