Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc 4.2 on 10.4 tiger: ld: unknown flag: -compatibility_version



The release notes for XCode 3.1 state that gcc4.2 requires the 10.5 SDK and further, binaries built with it can only deploy on 10.5 targets.

On Jul 13, 2008, at 5:08 PM, YJZ wrote:

Hello,

On Mac OS X 10.4.11, when gcc is set to Apple gcc 4.2 build 5553 (http://r.research.att.com/gcc-42-5553-darwin8-all.tar.gz ), the following error is encountered when the "jhbuild bootstrap" step on "http://developer.imendio.com/projects/gtk-macosx/build-instructions " tries to build gettext 1.6 (step 1 of 13) . Switching to gcc 4.0.1 that comes from XCode 2.5 (either "sudo gcc_select 4.0" or "export CC=/usr/bin/gcc-4.0") gets through "jhbuild bootstrap" just fine, though both 4.2.1 and 4.0.1's ld are just symlinks pointing to /usr/ bin/ld. The few hits on google point to libtool, since - compatibility_version applies to it. Included below are "jhbuild bootstrap" outputs contrasting the diff with gcc 4.2.1 and 4.0.1. The diff starts around line 1235-1237. Could anyone shed some light on why the error only occurs with 4.2.1 and how to resolve it?


Brian Bergstrand <http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >gcc 4.2 on 10.4 tiger: ld: unknown flag: -compatibility_version (From: "YJZ" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.