Begin main content

Cvs Emacs on cygwin

I decided it was time to update the emacs in my cygwin installation. Remembering the days it took me last time I hoped that some of the cygwin issues had been ironed out.

Thankfully some of them have. The bootstrapping process now works flawlessly under cygwin (last time I had to bootstrap the lisp files on a solaris box and then transfer the results to windows for the build process).

It also seems substantially faster (although I may have compiled a full debug version for my previous install - can't quite remember).

Unfortunately the memory allocation problem I blogged about at the time is still there. For posterity, here is the work-around patch for version 1.405 of alloc.c:

Index: alloc.c
===================================================================
RCS file: /sources/emacs/emacs/src/alloc.c,v
retrieving revision 1.405
diff -c -r1.405 alloc.c
*** alloc.c     13 Nov 2006 08:20:28 -0000      1.405
--- alloc.c     15 Dec 2006 04:05:41 -0000
***************
*** 5838,5845 ****
--- 5838,5851 ----
      case Lisp_Int:
        break;
  
+         /*
+               This is bogus, but there seem to be corrupt
+               objects placed on the stack under cygwin.
+               I assume this will lead to a phat memory leak!
+ 
      default:
        abort ();
+         */
      }
  
  #undef CHECK_LIVE

11:09 PM, 14 Dec 2006 by Mark Aufflick Permalink

Add comment