[Top][All Lists]

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

Re: The bootstrap of Emacs on Cygwin is broken [Is also: unicode branch

From: Angelo Graziosi
Subject: Re: The bootstrap of Emacs on Cygwin is broken [Is also: unicode branch is merged to trunk]
Date: Wed, 28 May 2008 09:42:16 +0200
User-agent: Thunderbird (Windows/20080421)

Jashy wrote:

> I just tried the patch on Cygwin with current emacs CVS, PASS.

Stefan Monnier wrote:

> According to the first 2 lines of sheap.c, this file is specific to
> cygwin, so there's no need to "#ifdef CYGWIN".

YAMAMOTO Mitsuharu wrote:

> In relation to the recent "Problems preloading x-win.el" thread, the
> requirement for the final dump is not that big (12486816 bytes)

For the sake of completeness, they are a few months I use this patch:

--- sheap.orig.c        2008-01-08 21:44:26.000000000 +0100
+++ sheap.c     2008-04-10 14:32:40.265625000 +0200
@@ -26,7 +26,11 @@

 #include <unistd.h>

-#define STATIC_HEAP_SIZE       (12 * 1024 * 1024)
+#ifdef BOOT_STRAP
+#define STATIC_HEAP_SIZE       (25 * 1024 * 1024)
+#define STATIC_HEAP_SIZE       (19 * 1024 * 1024)

 int debug_sheap = 0;

@@ -42,9 +46,7 @@
   if (!bss_sbrk_ptr)
       bss_sbrk_ptr = bss_sbrk_buffer;
-#ifdef CYGWIN
       sbrk (BLOCKSIZE);                /* force space for fork to work */

   if (!(int) request_size)

Bootstrapping on Cygwin needs about 24 MB for STATIC_HEAP_SIZE, after the first build of binaries; it needs 'only' about < 19MB, after the final build of binaries.

So, if I want a full bootstrap, I configure with:

-DBOOT_STRAP  ${source_dir}/configure...

If I bootstrap on GNU/Linux, make-dist --snapshot... then I can build (NO bootstrap) configuring


Any other solution (mainly reducing STATIC_HEAP_SIZE) is good.


reply via email to

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