From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#18505: 24.3.93; intermittent unexec failures when building on Mac OS X 10.10 beta, Xcode 6.0 Date: Sat, 20 Sep 2014 17:31:32 +0200 Message-ID: References: <541BAD75.9010701@porkrind.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1411227151 15334 80.91.229.3 (20 Sep 2014 15:32:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Sep 2014 15:32:31 +0000 (UTC) Cc: 18505@debbugs.gnu.org To: David Caldwell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 20 17:32:25 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XVMe8-0004ta-UF for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Sep 2014 17:32:25 +0200 Original-Received: from localhost ([::1]:35068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVMe8-0005la-HJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Sep 2014 11:32:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVMdy-0005eA-D2 for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 11:32:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVMdr-0006tc-Pt for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 11:32:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVMdr-0006sQ-NS for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 11:32:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XVMdm-00072z-9b for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 11:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Sep 2014 15:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18505 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 18505-submit@debbugs.gnu.org id=B18505.141122709927056 (code B ref 18505); Sat, 20 Sep 2014 15:32:02 +0000 Original-Received: (at 18505) by debbugs.gnu.org; 20 Sep 2014 15:31:39 +0000 Original-Received: from localhost ([127.0.0.1]:46809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XVMdO-00072K-Le for submit@debbugs.gnu.org; Sat, 20 Sep 2014 11:31:38 -0400 Original-Received: from mailfe07.swip.net ([212.247.154.193]:45155 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XVMdL-00072A-Mw for 18505@debbugs.gnu.org; Sat, 20 Sep 2014 11:31:37 -0400 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 532857887; Sat, 20 Sep 2014 17:31:33 +0200 In-Reply-To: <541BAD75.9010701@porkrind.org> X-Mailer: Apple Mail (2.1878.6) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93553 Archived-At: Hello. 19 sep 2014 kl. 06:13 skrev David Caldwell : > Hello, >=20 > I tried to build the latest pretest on Mac OS X Yosemite Beta with the > new Xcode 6.0 (GM) tools and ran into this error during the unexec = step: >=20 > unexec: not enough room for load commands for new __DATA segments Does it happen all the time or just some times? Jan D. >=20 > (Full unexec log is attached). >=20 > Poking around I discovered a couple discrepancies. The = "headerpad_extra" > setting in configure.ac says entries are 56 bytes, but they are = actually > 78 bytes (probably because the comment was originally written in the = 32 > bit days). Also the number of load commands needed is variable now--it > depends on how many malloc segments were found and how many it could > merge (see find_emacs_zone_regions() and unexec_regions_merge() in > unexmacosx.c). >=20 > I printed num_unexec_regions in unexmacosx.c and observed anywhere > from about 14 to 34 regions needed. But given that it seems to be > different on every run and it's super annoying to debug when you run = out > of space, I suggest bumping headerpad_extra up to 0x1000. This gives > about 1.5KB of headroom (or wasted space, depending on how you look at > it) and allows for 52 load commands, which should be future proof for > quite a while. I have attached a patch for configure.ac that does this > and changes the comment to reflect my understanding. >=20 > I've also provided a patch that makes the unexec error more helpful: = it > computes the size needed for headerpad_extra given the number of load > commands that it needed for that particular unexec run. >=20 > I assume this affects the trunk code, too, though I didn't look at it. >=20 > -David > =