[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building on Mac (Intel) [patch]

From: David Reitter
Subject: Building on Mac (Intel) [patch]
Date: Mon, 6 Feb 2006 14:16:26 +0000

Building on Intel Macs works fine except for two issues.

The first one is minor and solved by the patch below. Building fails with --self-contained otherwise for obvious reasons.

The second issue I'm having is more problematic:
Building fails regularly due to what seems to be a problem with my site-load.el and dumping in the bootstrap phase. I usually get (during temacs -batch -l loadup bootstrap):

Writing LC_TWOLEVEL_HINTS command
Writing LC_UNIXTHREAD     command
unexec: not enough room for load commands for new __DATA segments
make[2]: *** [bootstrap-emacs] Error 1
make[1]: *** [bootstrap-build] Error 2

or, depending on how much is in site-load, this:

Writing segment __DATA           at 0xa6e000 - 0x1276000 (sz: 0x808000)
Writing segment __IMPORT at 0x1276000 - 0x1279000 (sz: 0xunexec: not enough room for load commands for new __DATA segments
Writing segment __LINKEDIT       at 0x1279000 - 0x1578438 (sz: 0x2ff438)

My SITELOAD_PURESIZE_EXTRA is set to 2000000. Increasing or decreasing the value doesn't help.

I can reproduce the problem with a minimal site-load.el as follows:

(load "emacs-lisp/debug")
(load "emacs-lisp/byte-opt")

... and calling "temacs ... bootstrap" directly.

Without either of the above site-load.el, things seem to work smoothly with about the following result:

56 unused bytes follow Mach-O header
75052 pure bytes used

So it looks to me like there is not enough pure space allocated during the bootstrap phase and SITELOAD_PURESIZE_EXTRA is ignored. Maybe PURESIZE_RATIO plays a role.

I have been using the full site-load.el without problems for hundreds of compiles with PPC OS X.

Any suggestions as to what to check next?


diff -c -r1.23 mac/make-package
*** mac/make-package        20 Oct 2005 15:49:36 -0000      1.23
--- mac/make-package        6 Feb 2006 08:58:45 -0000
*** 325,331 ****

! compver=powerpc-apple-darwin`uname -r`

  if test "$self_contained" = "yes"; then
      # Move shared files down to Resources directory
--- 325,331 ----

! compver=`uname -p`-apple-`uname -s | tr A-Z a-z``uname -r`

  if test "$self_contained" = "yes"; then
      # Move shared files down to Resources directory

reply via email to

[Prev in Thread] Current Thread [Next in Thread]