Re: Xcode v2.5 no longer compiles project without errors
Re: Xcode v2.5 no longer compiles project without errors
- Subject: Re: Xcode v2.5 no longer compiles project without errors
- From: Thomas A.Creedon <email@hidden>
- Date: Sun, 6 Jan 2008 10:47:04 -0800
Hello all,
On Dec 16, 2007, at 1:55 PM, Thomas A. Creedon wrote:
I have recently installed Leopard and upgraded my Xcode v2.4
installation to v2.5. My project that compiled under v2.4 without
errors, doesn't compile under v2.5 and now has errors.
The problem is in a final Run Script Phase where some post linking
activity occurs via shell scripts. I have isolated this, now new,
error situation to a test case.
In Terminal at the shell prompt I run the command...
cc -o test test.c
...and the error returned is...
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: /usr/lib/gcc/
powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib unknown flags
(type) of section 9 (__TEXT,__dof_plockstat) in load command 0
collect2: ld returned 1 exit status
test.c contains the following... ( although I'm pretty sure the
error isn't realted to the code )
int main () {
return 0;
}
I have installed Xcode v3.0 in addition to the Xcode v2.5 which I'm using for this project and used the xcode-select tool to switch the path to the appropiate Xcode v2.5 directory.
I'm still having a problem with compiling my project. What I find odd now is that my test case works without the error that I was getting before and the lines from the shell script that are getting error messages also work from the Terminal command line. So Xcode appears to be fouling something up or perhaps doesn't have access to some information that my command line does.
I have further isolated the problem down to a test case project that others could work with. I created a brand new Carbon Application project with Xcode v2.5 and have reproduced the error situation in it.
Here is partial build detail...
/bin/sh -c /Users/creedon/Desktop/test/build/test.build/Debug/test.build/Script-5D61B9760D19AF24000DC8B0.sh cc -o hello hello.c /Xcode2.5/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib unknown flags (type) of section 9 (__TEXT,__dof_plockstat) in load command 0 collect2: ld returned 1 exit status Any thoughts why ld seems to be referring to stuff from /usr/bin when doing "cc -o hello hello.c" from the command line works? The test case project is available at < http://gems.creedon.net/www/test.zip >.
In addition I created a new user account and tried a compile from that account of my project and still received the errors. This indicates to me that the problem is system wide. I've also considered that I may need to reinstall my system. Of course I'd rather not! :-) A little about my system. Mac OS X v10.5.1, G4 MDD ( 2x 1 GHz, 2 G RAM ).
Toodle-looooooo........ Thomas |
_______________________________________________
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