Re: Occasional failure to find system headers
Re: Occasional failure to find system headers
- Subject: Re: Occasional failure to find system headers
- From: Chris Espinosa <email@hidden>
- Date: Sat, 17 May 2008 09:02:35 -0700
On May 17, 2008, at 12:25 AM, John Brownie wrote: Xcode 3.0, OS X 10.5.2, PPC.
This project showed this error this morning. I did a clean all, and it built correctly. I later changed to the release configuration to compile, and then shut down Xcode. When I came back some hours later, it had decided that it needed to recompile all my source for the debug configuration, and can't find the system headers any more. A clean enables the build to succeed.
Given the recent comments on cleaning being something that shouldn't have to be done, I'm wondering if posting the transcript will help anyone to pinpoint the problem.
John
================================================================= Failing transcript: Building target “Ukelele” of project “Ukelele” with configuration “Debug”
Checking Dependencies
CompileC build/Ukelele.build/Debug/Ukelele.build/Objects-normal/ppc/UkeleleApp.o "/Users/john/Documents/Programming/Carbon/Ukelele/../Ukelele 2/Source/Application/UkeleleApp.cp" normal ppc c++ com.apple.compilers.gcc.4_0 cd /Users/john/Documents/Programming/Carbon/Ukelele /Developer/usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -D_GLIBCPP_EXTERN_TEMPLATE=0 -DDEBUG -fmessage-length=0 -mtune=G4 -fvisibility-inlines-hidden -mfix-and-continue -mmacosx-version-min=10.2 -gdwarf-2 "-I/Users/john/Documents/Programming/Carbon/Ukelele/build/Ukelele.build/Debug/Ukelele.build/Ukelele Debug.hmap" -F/Users/john/Documents/Programming/Carbon/Ukelele/build/Debug -I/Users/john/Documents/Programming/Carbon/Ukelele/build/Debug/include -I/usr/local/boost_1_34_1 "-I../Ukelele 2/Source" "-I../Ukelele 2/Source/Application" "-I../Ukelele 2/Source/CoreFoundationTools" "-I../Ukelele 2/Source/Document" "-I../Ukelele 2/Source/Panes" "-I../Ukelele 2/Source/Prefix" "-I../Ukelele 2/Source/Support" "-I../Ukelele 2/Source/Unicode data" "-I../Ukelele 2/Source/Document/Keyboard" "-I../Ukelele 2/Source/Panes/CCarbonEditText" -I../Open-PowerPlant/PowerPlant "-I../Open-PowerPlant/PowerPlant/_Advanced Classes" "-I../Open-PowerPlant/PowerPlant/_In Progress" "-I../Open-PowerPlant/PowerPlant/Action Classes" "-I../Open-PowerPlant/PowerPlant/Appearance Classes" "-I../Open-PowerPlant/PowerPlant/AppleEvent Classes" "-I../Open-PowerPlant/PowerPlant/Array Classes" "-I../Open-PowerPlant/PowerPlant/Commander Classes" "-I../Open-PowerPlant/PowerPlant/Feature Classes" "-I../Open-PowerPlant/PowerPlant/File and Stream Classes" "-I../Open-PowerPlant/PowerPlant/Menu Classes" "-I../Open-PowerPlant/PowerPlant/Pane Classes" "-I../Open-PowerPlant/PowerPlant/PowerPlant Headers" "-I../Open-PowerPlant/PowerPlant/PowerPlant Resources" "-I../Open-PowerPlant/PowerPlant/PP Precompiled Headers" "-I../Open-PowerPlant/PowerPlant/Standard Dialogs" "-I../Open-PowerPlant/PowerPlant/Support Classes" "-I../Open-PowerPlant/PowerPlant/Table Classes" "-I../Open-PowerPlant/PowerPlant/Utility Classes" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Internet Classes" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Networking Classes" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Threads Classes" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Carbon Events" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Constructor Additions" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Contextual Menus" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Core Foundation" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Debugging Classes" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Menu Utilities" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Page Controller Classes" "-I../Open-PowerPlant/PowerPlant/_In Progress/_StuffIt Classes" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Table Classes" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Text Classes" "-I../Open-PowerPlant/PowerPlant/Appearance Classes/AM Implementations" "-I../Open-PowerPlant/PowerPlant/Appearance Classes/Appearance Controls" "-I../Open-PowerPlant/PowerPlant/Appearance Classes/Appearance Support" "-I../Open-PowerPlant/PowerPlant/Appearance Classes/GA Implementations" "-I../Open-PowerPlant/PowerPlant/Appearance Classes/Grayscale Panes" "-I../Open-PowerPlant/PowerPlant/Appearance Classes/Grayscale Support" "-I../Open-PowerPlant/PowerPlant/Appearance Classes/Std Implementations" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Internet Classes/Internet Message Class" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Internet Classes/Internet Protocols" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Internet Classes/Internet Utilities" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Internet Classes/Simple Protocol Threads" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Networking Classes/Generic Network Interface" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Networking Classes/Internal Implementation" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Networking Classes/OpenTransport Implementation" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Constructor Additions/Outline table" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Debugging Classes/Headers" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Debugging Classes/Resources" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Debugging Classes/Streams" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Debugging Classes/Support" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Debugging Classes/Trees" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Debugging Classes/Utilities" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Table Classes/_More Table Classes" "-I../Open-PowerPlant/PowerPlant/Appearance Classes/Appearance Controls" "-I../Open-PowerPlant/PowerPlant/AppleEvent Classes" -I/Users/john/Documents/Programming/Carbon/Ukelele/build/Ukelele.build/Debug/Ukelele.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -include /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/Ukelele_Prefix-crbimlqjfxyrnvekmiwhkpjafoas/Ukelele_Prefix.pch -c "/Users/john/Documents/Programming/Carbon/Ukelele/../Ukelele 2/Source/Application/UkeleleApp.cp" -o /Users/john/Documents/Programming/Carbon/Ukelele/build/Ukelele.build/Debug/Ukelele.build/Objects-normal/ppc/UkeleleApp.o
This build command doesn't give gcc any path to find any system headers. Without it, #include < > statements aren't going to work. CompileC build/Ukelele.build/Debug/Ukelele.build/Objects-normal/ppc/UkeleleApp.o "/Users/john/Documents/Programming/Carbon/Ukelele/../Ukelele 2/Source/Application/UkeleleApp.cp" normal ppc c++ com.apple.compilers.gcc.4_0 cd /Users/john/Documents/Programming/Carbon/Ukelele /Developer/usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -D_GLIBCPP_EXTERN_TEMPLATE=0 -DDEBUG -fmessage-length=0 -mtune=G4 -fvisibility-inlines-hidden -mfix-and-continue -mmacosx-version-min=10.2 -gdwarf-2 "-I/Users/john/Documents/Programming/Carbon/Ukelele/build/Ukelele.build/Debug/Ukelele.build/Ukelele Debug.hmap" -F/Users/john/Documents/Programming/Carbon/Ukelele/build/Debug -I/Users/john/Documents/Programming/Carbon/Ukelele/build/Debug/include -I/usr/local/boost_1_34_1 "-I../Ukelele 2/Source" "-I../Ukelele 2/Source/Application" "-I../Ukelele 2/Source/CoreFoundationTools" "-I../Ukelele 2/Source/Document" "-I../Ukelele 2/Source/Panes" "-I../Ukelele 2/Source/Prefix" "-I../Ukelele 2/Source/Support" "-I../Ukelele 2/Source/Unicode data" "-I../Ukelele 2/Source/Document/Keyboard" "-I../Ukelele 2/Source/Panes/CCarbonEditText" -I../Open-PowerPlant/PowerPlant "-I../Open-PowerPlant/PowerPlant/_Advanced Classes" "-I../Open-PowerPlant/PowerPlant/_In Progress" "-I../Open-PowerPlant/PowerPlant/Action Classes" "-I../Open-PowerPlant/PowerPlant/Appearance Classes" "-I../Open-PowerPlant/PowerPlant/AppleEvent Classes" "-I../Open-PowerPlant/PowerPlant/Array Classes" "-I../Open-PowerPlant/PowerPlant/Commander Classes" "-I../Open-PowerPlant/PowerPlant/Feature Classes" "-I../Open-PowerPlant/PowerPlant/File and Stream Classes" "-I../Open-PowerPlant/PowerPlant/Menu Classes" "-I../Open-PowerPlant/PowerPlant/Pane Classes" "-I../Open-PowerPlant/PowerPlant/PowerPlant Headers" "-I../Open-PowerPlant/PowerPlant/PowerPlant Resources" "-I../Open-PowerPlant/PowerPlant/PP Precompiled Headers" "-I../Open-PowerPlant/PowerPlant/Standard Dialogs" "-I../Open-PowerPlant/PowerPlant/Support Classes" "-I../Open-PowerPlant/PowerPlant/Table Classes" "-I../Open-PowerPlant/PowerPlant/Utility Classes" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Internet Classes" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Networking Classes" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Threads Classes" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Carbon Events" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Constructor Additions" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Contextual Menus" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Core Foundation" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Debugging Classes" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Menu Utilities" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Page Controller Classes" "-I../Open-PowerPlant/PowerPlant/_In Progress/_StuffIt Classes" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Table Classes" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Text Classes" "-I../Open-PowerPlant/PowerPlant/Appearance Classes/AM Implementations" "-I../Open-PowerPlant/PowerPlant/Appearance Classes/Appearance Controls" "-I../Open-PowerPlant/PowerPlant/Appearance Classes/Appearance Support" "-I../Open-PowerPlant/PowerPlant/Appearance Classes/GA Implementations" "-I../Open-PowerPlant/PowerPlant/Appearance Classes/Grayscale Panes" "-I../Open-PowerPlant/PowerPlant/Appearance Classes/Grayscale Support" "-I../Open-PowerPlant/PowerPlant/Appearance Classes/Std Implementations" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Internet Classes/Internet Message Class" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Internet Classes/Internet Protocols" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Internet Classes/Internet Utilities" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Internet Classes/Simple Protocol Threads" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Networking Classes/Generic Network Interface" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Networking Classes/Internal Implementation" "-I../Open-PowerPlant/PowerPlant/_Advanced Classes/Networking Classes/OpenTransport Implementation" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Constructor Additions/Outline table" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Debugging Classes/Headers" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Debugging Classes/Resources" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Debugging Classes/Streams" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Debugging Classes/Support" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Debugging Classes/Trees" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Debugging Classes/Utilities" "-I../Open-PowerPlant/PowerPlant/_In Progress/_Table Classes/_More Table Classes" -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon -I/Developer/SDKs/MacOSX10.4u.sdk/usr/include -I/Users/john/Documents/Programming/Carbon/Ukelele/build/Ukelele.build/Debug/Ukelele.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -include /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/Ukelele_Prefix-crbimlqjfxyrnvekmiwhkpjafoas/Ukelele_Prefix.pch -c "/Users/john/Documents/Programming/Carbon/Ukelele/../Ukelele 2/Source/Application/UkeleleApp.cp" -o /Users/john/Documents/Programming/Carbon/Ukelele/build/Ukelele.build/Debug/Ukelele.build/Objects-normal/ppc/UkeleleApp.o
This successful gcc command passes a Header Search Path pointing to the SDK's "FlatCarbon" directory, which is just a bunch of files that redirect into the SDK's /System/Library/Frameworks directory. This will work for frameworks used by Carbon applications, but it is not updated to new frameworks introduced after Mac OS X 10.3.
You should probably ensure that /System/Library/Frameworks is in your Frameworks Search Path (it'll get redirected to the proper SDK automatically).
Chris |
_______________________________________________
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