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: Tommy Nordgren <email@hidden>
- Date: Tue, 18 Dec 2007 20:36:18 +0100
On 18 dec 2007, at 19.44, Thomas A. Creedon wrote:
On Mon, 17 Dec 2007 23:39:30 -0800, email@hidden wrote:
From: Chris Espinosa
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;
}
Anyone have any thoughts how I can get cc working again or an
alternate means to compile my test case test.c from the command
line?
Any information you need? Just ask!
Thank you,
Toodle-looooooooooo...........
Thomas
Your Xcode 2.5 installation is invoking old Xcode 2.4 functionality
on
Leopard, which won't work. When using Xcode 2.5 on Leopard, you
shouldn't be using any content from /usr/lib.
Use the xcode-select tool to point your command-line utilities at the
Xcode 2.5 installation, or change your script to refer to the tools
relative to the ${DEVELOPER_DIR}/usr/libexec.
Chris
Thanks Chris, that makes sense. Now if I could only find xcode-
select! :-( It seems to be missing from my installation. When I
upgraded from Xcode v2.4 to v2.5 all seemed to go without a hitch.
I'm thinking that something got fouled up for my install for
whatever reason. My impression from reading around is that xcode-
select should be at /usr/bin. From my command line...
$ pwd
/usr/bin
$ ls xcode*
xcodebuild xcodeindex
I just went back to the installer to see if there was a likely
custom option I could use to get xcode-select installed but didn't
see any.
Perhaps I could install one of the packages contained on the
installer disk directly to get xcode-select?
Thanks for any help.
Toodle-looooooooooooo..........
Thomas
Have you installed Xcode 3.0 as well? (Xcodeselect was introduced
with Xcode 3.0)
-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
email@hidden
_______________________________________________
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