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: Xcode 2.3: inconsistent local symbol count



Hi,

unfortunately, I have not been able to get my application linked using the DWARF debugging information format. In order to proceed with my projects, I will continue using STABS.

According to the information I found on the web, e.g. at the site darwinsource.opendarwin.org, the problem *may* be caused by a bug handling global symbols as local ones. It looks like being rather complicated. Since STABS will work for some time in the future, as far as I know, I will not invest much time in trying to use DWARF.

Nevertheless, thank you, Darryl.

Klaus

Am 27.05.2006 um 02:28 schrieb Darryl Trujillo:

On Fri, May 26, 2006 12:51 am, Klaus Backert said:

Under MacOS X 10.4.6 (with Xcode 2.3, gcc 4.0, and dwarf) I have a project with an application Kronecker using a framework Matrix from another project (if that matters). Building the framework succeeds, but on building the application I get the following error:

/usr/bin/ld: internal error: output_local_symbols() inconsistent
local symbol count
collect2: ld returned 1 exit status


I've gotten this error before; my guess is it's DWARF-related only due to
the different/new symbol coalescing implementation. In my case the cause
was a symbol defined both in an app and a static lib: the static lib used
to be dynamic and didn't export this symbol, but when it was converted to
static I started getting the error. Unfortunately I can't remember how I
tracked down the symbol (though I vaguely remember poring over 'nm'
dumps), but after fixing the problem I did spend an hour or so trying to
duplicate the it in a simple project, with no success. The symbol in
question was a struct defined at file scope with static init data.


Hope this helps - dmt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Xcode 2.3: inconsistent local symbol count (From: Klaus Backert <email@hidden>)
 >Re: Xcode 2.3: inconsistent local symbol count (From: "Darryl Trujillo" <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.