From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.devel Subject: Re: gcc 4.2 dump problems Date: Tue, 25 Aug 2009 15:18:49 +0200 Message-ID: References: <6C7B302D-623F-463D-A5C7-CAC557968C57@gmail.com> <200908061824.n76IO3Wg012594@godzilla.ics.uci.edu> <016ACD5B-B97C-4548-89C5-E1E6A581CC61@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251206368 14060 80.91.229.12 (25 Aug 2009 13:19:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Aug 2009 13:19:28 +0000 (UTC) Cc: Ian Eure , Dan Nicolaescu , Emacs Development To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 25 15:19:21 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mfvvg-0004x5-8Z for ged-emacs-devel@m.gmane.org; Tue, 25 Aug 2009 15:19:16 +0200 Original-Received: from localhost ([127.0.0.1]:38161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mfvvf-0004mO-Ei for ged-emacs-devel@m.gmane.org; Tue, 25 Aug 2009 09:19:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfvvZ-0004jB-KC for emacs-devel@gnu.org; Tue, 25 Aug 2009 09:19:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfvvY-0004hE-Ec for emacs-devel@gnu.org; Tue, 25 Aug 2009 09:19:08 -0400 Original-Received: from [199.232.76.173] (port=36227 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfvvY-0004h8-BK for emacs-devel@gnu.org; Tue, 25 Aug 2009 09:19:08 -0400 Original-Received: from m61s02.vlinux.de ([83.151.21.164]:32800) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MfvvY-0000md-2v for emacs-devel@gnu.org; Tue, 25 Aug 2009 09:19:08 -0400 Original-Received: from gwdg-mac-engster.top.gwdg.de ([134.76.4.218]) by m61s02.vlinux.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1MfvvU-0001bI-AY; Tue, 25 Aug 2009 15:19:04 +0200 In-Reply-To: <016ACD5B-B97C-4548-89C5-E1E6A581CC61@gmail.com> (David Reitter's message of "Thu, 6 Aug 2009 15:03:39 -0400") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (darwin) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114582 Archived-At: I'm reviving this old thread, since I'm now facing the same problem with the arrival of Mac OS X 10.6... David Reitter writes: > On Aug 6, 2009, at 2:24 PM, Dan Nicolaescu wrote: >> I don't use gcc-4.2 anymore, but I've never seen such problems with it >> on GNU/Linux while using it. >> >> How did you determine that gcc-4.2 is the problem? > > See Ian Eure's post to bug 3708 for this. He installed GCC 4.2 on a > 10.5 machine and obtained similar results. > The error messages differ at times, but they do that on the 10.6 > machine that I tried it on, too. > (Building with 4.0 on 10.5 works fine.) I consistently get the same error on 10.6, and it's the one with unexec: unrecognized section name in __DATA segment This unrecognized section in the DATA segment is called "__program_vars", and I cannot find any documentation for it. It's not mentioned in the Mach-O File Format Reference at all, even in the latest XCode I installed from the Developer Connection. So my guess is that unexecmacosx.c has to be patched to deal correctly with that section. I don't know the first thing about this dumping process, but I simply tried to include it in the section where __la_symbol_ptr and __nl_symbol_ptr are handled, and it didn't work... -David