From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: Building on Mac (Intel) [patch] Date: Tue, 7 Feb 2006 11:13:54 +0000 Message-ID: <8F17CD45-3591-4335-B457-9D4D97BD911B@gmail.com> References: <0B2BC9F7-CB99-4C31-8DE4-55F717D53E70@gmail.com> <86r76g1mu1.fsf@panel.jk.homeunix.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1139321293 14944 80.91.229.2 (7 Feb 2006 14:08:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2006 14:08:13 +0000 (UTC) Cc: Steven Tamm , Nozomu Ando Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 07 15:08:08 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F6TVm-0006SL-UG for ged-emacs-devel@m.gmane.org; Tue, 07 Feb 2006 15:08:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F6TW8-0007GY-65 for ged-emacs-devel@m.gmane.org; Tue, 07 Feb 2006 09:08:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F6RrY-00086v-AZ for emacs-devel@gnu.org; Tue, 07 Feb 2006 07:22:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F6RrV-00085p-0l for emacs-devel@gnu.org; Tue, 07 Feb 2006 07:22:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F6Qqa-0005xX-B7 for emacs-devel@gnu.org; Tue, 07 Feb 2006 06:17:27 -0500 Original-Received: from [66.249.92.203] (helo=uproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F6QqI-0004CH-5t for emacs-devel@gnu.org; Tue, 07 Feb 2006 06:17:06 -0500 Original-Received: by uproxy.gmail.com with SMTP id j3so13774ugf for ; Tue, 07 Feb 2006 03:13:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=PD+uBwfbgSuj6foi679feWT15Nn/D2Z9ohuEbeFLkybAZ6WAU1wjYzKu/f5/nlEhI133LlyGTwyj6NnGIec2By7sI6ExU+6uerkZwMjbzrC3UPREcj9fb7ebNH9BbMfKan0IKuCo4ZAhHB2cgl3MJ0ElwacMPkIfqbJxQTcVlb8= Original-Received: by 10.66.221.11 with SMTP id t11mr2778449ugg; Tue, 07 Feb 2006 03:13:52 -0800 (PST) Original-Received: from ?129.215.174.81? ( [129.215.174.81]) by mx.gmail.com with ESMTP id s1sm4839918uge.2006.02.07.03.13.51; Tue, 07 Feb 2006 03:13:51 -0800 (PST) In-Reply-To: <86r76g1mu1.fsf@panel.jk.homeunix.org> Original-To: Emacs-Devel ' X-Mailer: Apple Mail (2.746.2) 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:50147 Archived-At: On 6 Feb 2006, at 16:19, Nozomu Ando wrote: > David Reitter writes: >> unexec: not enough room for load commands for new __DATA segments > > There are too many segments to dump. You should increase > `-headerpad -Xlinker ' parameter of LD_SWITCH_SYSTEM_TEMACS > in src/s/darwin.h Fantastic, this did the trick. Thanks. It compiles fine now with the below patch plus the patch that I posted earlier. I haven't tested the resulting .app, but in a Terminal with -nw, things look normal. It's nice and fast. diff -c -r1.25 darwin.h *** src/s/darwin.h 13 Nov 2005 05:47:10 -0000 1.25 --- src/s/darwin.h 7 Feb 2006 11:07:00 -0000 *************** *** 274,282 **** /* The -headerpad option tells ld (see man page) to leave room at the end of the header for adding load commands. Needed for dumping. ! 0x690 is the total size of 30 segment load commands (at 56 each). */ ! #define LD_SWITCH_SYSTEM_TEMACS -prebind LIBS_CARBON -Xlinker - headerpad -Xlinker 690 #define C_SWITCH_SYSTEM_TEMACS -Dtemacs --- 274,282 ---- /* The -headerpad option tells ld (see man page) to leave room at the end of the header for adding load commands. Needed for dumping. ! 0x8C0 is the total size of 40 segment load commands (at 56 each). */ ! #define LD_SWITCH_SYSTEM_TEMACS -prebind LIBS_CARBON -Xlinker - headerpad -Xlinker 8C0 #define C_SWITCH_SYSTEM_TEMACS -Dtemacs