From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: Steffen Heise <steffen_heise@mac.com>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: make for emacs fails under OS X 10.5
Date: Mon, 29 Oct 2007 08:26:29 +0900 [thread overview]
Message-ID: <wlir4q3joa.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <93DF8565-CAA3-4D03-949D-2B8BF6C5B812@mac.com>
>>>>> On Sat, 27 Oct 2007 18:10:11 -0400, Steffen Heise <steffen_heise@mac.com> said:
> make fails with the following error message:
> Assertion failed: (filesize <= ranges->size), function
> unexec_regions_recorder, file unexmacosx.c, line 454.
> make[1]: *** [emacs] Abort trap
> make[1]: *** Deleting file `emacs'
> make: *** [src] Error 2
Could you try the following patch? I can't test it myself as I don't
have Leopard yet.
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
Index: src/unexmacosx.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/unexmacosx.c,v
retrieving revision 1.22.2.1
diff -c -p -r1.22.2.1 unexmacosx.c
*** src/unexmacosx.c 25 Jul 2007 05:15:30 -0000 1.22.2.1
--- src/unexmacosx.c 28 Oct 2007 23:16:01 -0000
*************** unexec_regions_recorder (task_t task, vo
*** 443,457 ****
while (num && num_unexec_regions < MAX_UNEXEC_REGIONS)
{
! /* Subtract the size of trailing null pages from filesize. It
can be smaller than vmsize in segment commands. In such a
! case, trailing pages are initialized with zeros. */
! for (p = ranges->address + ranges->size; p > ranges->address;
! p -= sizeof (int))
! if (*(((int *) p)-1))
break;
! filesize = ROUNDUP_TO_PAGE_BOUNDARY (p - ranges->address);
! assert (filesize <= ranges->size);
unexec_regions[num_unexec_regions].filesize = filesize;
unexec_regions[num_unexec_regions++].range = *ranges;
--- 443,455 ----
while (num && num_unexec_regions < MAX_UNEXEC_REGIONS)
{
! /* Subtract the size of trailing null bytes from filesize. It
can be smaller than vmsize in segment commands. In such a
! case, trailing bytes are initialized with zeros. */
! for (p = ranges->address + ranges->size; p > ranges->address; p--)
! if (*(((char *) p)-1))
break;
! filesize = p - ranges->address;
unexec_regions[num_unexec_regions].filesize = filesize;
unexec_regions[num_unexec_regions++].range = *ranges;
next prev parent reply other threads:[~2007-10-28 23:26 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-27 22:10 make for emacs fails under OS X 10.5 Steffen Heise
2007-10-28 23:26 ` YAMAMOTO Mitsuharu [this message]
2007-10-29 0:25 ` Steffen Heise
2007-10-29 0:35 ` Steffen Heise
2007-10-29 12:11 ` YAMAMOTO Mitsuharu
2007-10-29 23:17 ` YAMAMOTO Mitsuharu
2007-10-31 0:37 ` Steffen Heise
2007-10-31 4:13 ` astro951
[not found] ` <mailman.2736.1193699874.18990.bug-gnu-emacs@gnu.org>
2007-10-30 8:04 ` naan
2007-11-01 11:49 ` slewsys
2007-11-02 8:09 ` William Xu
[not found] ` <mailman.2874.1193991012.18990.bug-gnu-emacs@gnu.org>
2007-11-02 15:42 ` Ted Zlatanov
2007-11-03 4:46 ` William Xu
[not found] ` <mailman.2922.1194065238.18990.bug-gnu-emacs@gnu.org>
2007-11-05 19:14 ` Ted Zlatanov
2007-11-05 21:09 ` Ted Zlatanov
2007-11-06 8:27 ` William Xu
2007-11-06 8:37 ` Richard Stallman
[not found] ` <mailman.3031.1194338257.18990.bug-gnu-emacs@gnu.org>
2007-11-06 19:18 ` Ted Zlatanov
2007-11-06 23:26 ` Glenn Morris
[not found] ` <mailman.3062.1194391599.18990.bug-gnu-emacs@gnu.org>
2007-11-07 5:28 ` Ted Zlatanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wlir4q3joa.wl%mituharu@math.s.chiba-u.ac.jp \
--to=mituharu@math.s.chiba-u.ac.jp \
--cc=bug-gnu-emacs@gnu.org \
--cc=steffen_heise@mac.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).