Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
one or more PCH files were found, but they were invalid
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

one or more PCH files were found, but they were invalid



I get this error quite consistently since upgrading to XCode 2.1.  It
seems to occur roughly every 2nd time I hit "compile".  I get this
error, then hit "compile" again immediately, and it works just fine.
Here's an output sample:

Distributed-CompileC
"/Local/Developer/Builds/IntermediateBuildFiles-Development/IkivoAnimator.build/Development/Ikivo
Animator.build/Objects-normal/ppc/ZOMSwatches.o" ZOMSwatches.mm normal
ppc objective-c++ com.apple.compilers.gcc.3_3
    mkdir "/Local/Developer/Builds/IntermediateBuildFiles-Development/IkivoAnimator.build/Development/Ikivo
Animator.build/Objects-normal/ppc"
    cd /Users/jnutting/work/AnimatorPRO/MacX
    setenv DISTCC_HOSTS "172.17.0.75:7264 172.17.0.75:3632 "
    setenv MACOSX_DEPLOYMENT_TARGET 10.3
    setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk
    /usr/bin/distcc /usr/bin/gcc-3.3 -x objective-c++ -arch ppc -pipe
-Wno-trigraphs -fobjc-exceptions -fpascal-strings -fasm-blocks -g -O0
-Woverloaded-virtual -Wformat -Wmissing-braces -Wparentheses -Wswitch
-Wshadow -DUNICODE -fmessage-length=0 -ffix-and-continue -mtune=G4
"-Wp,-header-mapfile,/Local/Developer/Builds/IntermediateBuildFiles-Development/IkivoAnimator.build/Development/Ikivo
Animator.build/Ikivo Animator.hmap" -Wno-long-double -fpch-preprocess
-DMAC_OS_X_VERSION_MIN_REQUIRED=1030 -fconstant-cfstrings
-D__CONSTANT_CFSTRINGS__ -fobjc-exceptions -D__OBJC_EXCEPTIONS__
-F/Local/Developer/Builds-Development/Development
-I/Local/Developer/Builds-Development/Development/include
-I../../player/lib/libpng -I../../boost/include
-I../../player/lib/zlib -I../../player/lib/ijg_jpeg_macx/include
"-I/Local/Developer/Builds/IntermediateBuildFiles-Development/IkivoAnimator.build/Development/Ikivo
Animator.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.503/SharedPrecompiledHeaders/ZOdesigner_Prefix-cwynkltdinnpwbdnobuqsszeemxt/ZOdesigner_Prefix.pch
-c /Users/jnutting/work/AnimatorPRO/MacX/ZOMSwatches.mm -o
"/Local/Developer/Builds/IntermediateBuildFiles-Development/IkivoAnimator.build/Development/Ikivo
Animator.build/Objects-normal/ppc/ZOMSwatches.o"
cc1objplus: /Library/Caches/com.apple.Xcode.503/SharedPrecompiledHeaders/ZOdesigner_Prefix-cwynkltdinnpwbdnobuqsszeemxt/ZOdesigner_Prefix.pch:
No such file or directory
cc1objplus: one or more PCH files were found, but they were invalid
cc1objplus: use -Winvalid-pch for more information

I followed the suggestion to use -Winvalid-pch, and doing so adds one
additional line to the output before compilation stops:

cc1objplus: warning:
/Library/Caches/com.apple.Xcode.503/SharedPrecompiledHeaders/ZOdesigner_Prefix-cwynkltdinnpwbdnobuqsszeemxt/ZOdesigner_Prefix.pch.gch:
not used because `__private_extern__' not defined

No big help there... and like I say, I can compile successfully
immediately after this.

In the output included above, I was doing a distributed compile, but
the same thing happens if I compile on just one machine.

This project worked fine in 1.5 and 2.0; problems started only after
upgrading to 2.1.  Any ideas?

--
// jack
// http://www.nuthole.com
 _______________________________________________
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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.