Since upgrading from Xcode 4.6 to 4.6.1, I’m getting intermittent-but-frequent compiler errors building one specific target:
error: PCH file built from a different branch ((clang-425.0.24)) than the compiler ((clang-425.0.27))
I thought this might be due to a dependency problem with leftover precompiled headers; but clean builds don’t make it go away, nor does deleting the project’s build folder.
Then I thought the command-line tools were out of date, but they don’t seem to be: $ clang --version Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn) Target: x86_64-apple-darwin12.3.0 Thread model: posix
(Although this is apparently the native clang, whereas the target that gets these errors is for iOS.)
Below is the build command and output in case it helps.
—Jens
CompileC "build/CouchbaseLite.build/Debug-iphonesimulator/Listener iOS Library.build/Objects-normal/i386/HTTPAuthenticationRequest.o" vendor/CocoaHTTPServer/Core/HTTPAuthenticationRequest.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Couchbase/CouchbaseLite setenv LANG en_US.US-ASCII setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Tools:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Werror -Wno-missing-field-initializers -Wmissing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wobjc-missing-property-synthesis -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=5.0 -iquote "/Couchbase/CouchbaseLite/build/CouchbaseLite.build/Debug-iphonesimulator/Listener iOS Library.build/CouchbaseLiteListener-generated-files.hmap" "-I/Couchbase/CouchbaseLite/build/CouchbaseLite.build/Debug-iphonesimulator/Listener iOS Library.build/CouchbaseLiteListener-own-target-headers.hmap" "-I/Couchbase/CouchbaseLite/build/CouchbaseLite.build/Debug-iphonesimulator/Listener iOS Library.build/CouchbaseLiteListener-all-target-headers.hmap" -iquote "/Couchbase/CouchbaseLite/build/CouchbaseLite.build/Debug-iphonesimulator/Listener iOS Library.build/CouchbaseLiteListener-project-headers.hmap" -I/Couchbase/CouchbaseLite/build/CouchbaseLite/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include "-I/Couchbase/CouchbaseLite/build/CouchbaseLite.build/Debug-iphonesimulator/Listener iOS Library.build/DerivedSources/i386" "-I/Couchbase/CouchbaseLite/build/CouchbaseLite.build/Debug-iphonesimulator/Listener iOS Library.build/DerivedSources" -Wall -Wformat-security -Wshorten-64-to-32 -Wmissing-declarations -F/Couchbase/CouchbaseLite/build/CouchbaseLite/Build/Products/Debug-iphonesimulator -include /var/folders/4f/mvdftm3d5ss0ystm0m2q8q3m0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/CouchbaseLitePrefix-alacozqkwfsxiufumtuzemcdtdlb/CouchbaseLitePrefix.h -MMD -MT dependencies -MF "/Couchbase/CouchbaseLite/build/CouchbaseLite.build/Debug-iphonesimulator/Listener iOS Library.build/Objects-normal/i386/HTTPAuthenticationRequest.d" --serialize-diagnostics "/Couchbase/CouchbaseLite/build/CouchbaseLite.build/Debug-iphonesimulator/Listener iOS Library.build/Objects-normal/i386/HTTPAuthenticationRequest.dia" -c /Couchbase/CouchbaseLite/vendor/CocoaHTTPServer/Core/HTTPAuthenticationRequest.m -o "/Couchbase/CouchbaseLite/build/CouchbaseLite.build/Debug-iphonesimulator/Listener iOS Library.build/Objects-normal/i386/HTTPAuthenticationRequest.o" error: PCH file built from a different branch ((clang-425.0.24)) than the compiler ((clang-425.0.27)) 1 error generated.
|