Re: recompile without -mlong-branch?
Re: recompile without -mlong-branch?
- Subject: Re: recompile without -mlong-branch?
- From: Jim Wintermyre <email@hidden>
- Date: Tue, 1 Sep 2009 19:07:52 -0700
On 9/1/09 10:43 AM, Jonas Maebe said:
I installed Snow Leopard and Xcode 3.2 a few days ago, and had good
luck for a while. This evening, however, I tried a build in an
Xcode project which compiled and ran fine in Leopard / Xcode 3.1.3,
and I got the following link-time error:
ld: warning: object file compiled with -mlong-branch which is no
longer needed. To remove this warning, recompile without -mlong-
branch: /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o
[snip]
Can anyone suggest anything I might be missing?
The release notes.
"GCC 4.2 cannot be used with the Mac OS X 10.4u SDK. If you want to
build targets using the 10.4u SDK on Xcode 3.2, you must set the
Compiler Version to GCC 4.0"
You can blame the user, but I prefer blame the user interface. If such
combinations of compiler and SDK are known to be invalid, then Xcode
should be able to generate an error message to indicate this. Jay, you
should file a bug.
You may have missed the post where the OP clarified that he *was*
using GCC 4.0, which is supposed to work fine with the 10.4u SDK. It
*does* generate an error if you try to use GCC 4.2 with the 10.4u SDK
(though it's a build error, not an error from the UI as soon as you
select the invalid combination of settings).
I'm using the same setup (GCC 4.0/10.4u SDK) and getting the same ld
warning. Anyone know what this is about?
Jim
_______________________________________________
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