|
From: | Bill Northcott |
Subject: | Re: [Swarm-Support] intel mac swarm trouble |
Date: | Fri, 15 Sep 2006 10:53:26 +1000 |
On 15/09/2006, at 7:42 AM, Brandon M. Gabler wrote:
My gcc is 4.0.1, straight from the DevTools package on my OSX discs. I am lost on this now, because there is no reason heatbugs should not work! Is there a SDK that I should have installed that I may have chosen not to?
But what do you get if you do 'gcc -v'?
In my version of heatbugs/hash.h line 34 reads: #include <string.h> // strcmp
IF the line in your heatbugs source reads as above, then the pre- processor should find string.h in /usr/include. If it does not, then the compiler/pre-processor installation must be broken in some way. The compile instruction which is failing in your heatbugs is identical to what succeeds on my Intel Mac.
Try a trivial program like this: #trivial.c #include <string.h> main() { return 0 } then gcc -E -o trivial.E trivial.chave a look at trivial.E (the preprocessed source). Is string.h included? Did you get the file or directory not found error?
Bill
Since string.h is enclosed in <> the preprocessor should look for it first in any specified -I option directories and then in its standard header search path. It should have found it pretty quickly in /usr/include. It should not look in /usr/local/ swarm2.2/include/objc at all. It should only be looking there if the line read:#include "string.h" // strcmpThere seems to be something adrift with your compiler setup. What is your gcc? Try gcc -v.[PM-G5BN:apps/objc/heatbugs] billn% gcc -v Using built-in specs. Target: powerpc-apple-darwin8Configured with: /private/var/tmp/gcc/gcc-5363.obj~28/src/ configure --disable-checking -enable-werror --prefix=/usr -- mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program- transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/ include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple- darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8Thread model: posix gcc version 4.0.1 (Apple Computer, Inc. build 5363)If it looks OK then try running the Developer Tools uninstall.pl script on the Xcode disk, delete /Developer and try reinstalling the Developer Tools.Bill
[Prev in Thread] | Current Thread | [Next in Thread] |