error

21 views
Skip to first unread message

Stuart Cracraft

unread,
Oct 10, 2012, 7:52:09 AM10/10/12
to nscodernigh...@googlegroups.com
Hi,

Any notion what's going on here with clang?

I just have a bunch of C files for it to clang that GCC handles fine and compiles in moments.

But Clang gives a big-old-long issue compilaining about a prefix.pch file... which isn't
even one of the modules in the original C program.

Stuart

ProcessPCH "/Users/smcracraft/Library/Developer/Xcode/DerivedData/Computer_Chess-euujaogjvpjwifblgtdmrtcpkfea/Build/Intermediates/PrecompiledHeaders/Computer Chess-Prefix-gcfocibaaqsarzgmzsigidnnefon/Computer Chess-Prefix.pch.pth" "Computer Chess/Computer Chess-Prefix.pch" normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd "/Users/smcracraft/Documents/NSCoders/SelfStudy/Computer Chess/Computer Chess"
    setenv LANG en_US.US-ASCII
    /Applications/Xcode_Peter/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch x86_64 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode_Peter/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -fasm-blocks -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.8 -g -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -iquote "/Users/smcracraft/Library/Developer/Xcode/DerivedData/Computer_Chess-euujaogjvpjwifblgtdmrtcpkfea/Build/Intermediates/Computer Chess.build/Debug/Computer Chess.build/Computer Chess-generated-files.hmap" "-I/Users/smcracraft/Library/Developer/Xcode/DerivedData/Computer_Chess-euujaogjvpjwifblgtdmrtcpkfea/Build/Intermediates/Computer Chess.build/Debug/Computer Chess.build/Computer Chess-own-target-headers.hmap" "-I/Users/smcracraft/Library/Developer/Xcode/DerivedData/Computer_Chess-euujaogjvpjwifblgtdmrtcpkfea/Build/Intermediates/Computer Chess.build/Debug/Computer Chess.build/Computer Chess-all-target-headers.hmap" -iquote "/Users/smcracraft/Library/Developer/Xcode/DerivedData/Computer_Chess-euujaogjvpjwifblgtdmrtcpkfea/Build/Intermediates/Computer Chess.build/Debug/Computer Chess.build/Computer Chess-project-headers.hmap" -I/Users/smcracraft/Library/Developer/Xcode/DerivedData/Computer_Chess-euujaogjvpjwifblgtdmrtcpkfea/Build/Products/Debug/include -I/Applications/Xcode_Peter/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode_Peter/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode_Peter/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include "-I/Users/smcracraft/Library/Developer/Xcode/DerivedData/Computer_Chess-euujaogjvpjwifblgtdmrtcpkfea/Build/Intermediates/Computer Chess.build/Debug/Computer Chess.build/DerivedSources/x86_64" "-I/Users/smcracraft/Library/Developer/Xcode/DerivedData/Computer_Chess-euujaogjvpjwifblgtdmrtcpkfea/Build/Intermediates/Computer Chess.build/Debug/Computer Chess.build/DerivedSources" -F/Users/smcracraft/Library/Developer/Xcode/DerivedData/Computer_Chess-euujaogjvpjwifblgtdmrtcpkfea/Build/Products/Debug --serialize-diagnostics "/Users/smcracraft/Library/Developer/Xcode/DerivedData/Computer_Chess-euujaogjvpjwifblgtdmrtcpkfea/Build/Intermediates/PrecompiledHeaders/Computer Chess-Prefix-gcfocibaaqsarzgmzsigidnnefon/Computer Chess-Prefix.pch.dia" -c "/Users/smcracraft/Documents/NSCoders/SelfStudy/Computer Chess/Computer Chess/Computer Chess/Computer Chess-Prefix.pch" -o "/Users/smcracraft/Library/Developer/Xcode/DerivedData/Computer_Chess-euujaogjvpjwifblgtdmrtcpkfea/Build/Intermediates/PrecompiledHeaders/Computer Chess-Prefix-gcfocibaaqsarzgmzsigidnnefon/Computer Chess-Prefix.pch.pth" -MMD -MT dependencies -MF "/Users/smcracraft/Library/Developer/Xcode/DerivedData/Computer_Chess-euujaogjvpjwifblgtdmrtcpkfea/Build/Intermediates/PrecompiledHeaders/Computer Chess-Prefix-gcfocibaaqsarzgmzsigidnnefon/Computer Chess-Prefix.pch.d"

clang: error: no such file or directory: '/Users/smcracraft/Documents/NSCoders/SelfStudy/Computer Chess/Computer Chess/Computer Chess/Computer Chess-Prefix.pch'
clang: error: no input files
Command /Applications/Xcode_Peter/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

Stuart Cracraft

unread,
Oct 10, 2012, 9:06:23 AM10/10/12
to nscodernigh...@googlegroups.com
Okay, I've gotten past this by destroying the project and recreating it then adding an entry
"entryMain()" in the xcode-created main.m module to link over to the main.c module.

All .c modules compiled, with errors and warnings, so there's a truckload to do.
Reply all
Reply to author
Forward
0 new messages