--- origsrc/etc/PROBLEMS 2009-11-20 11:34:12.000000000 -0500 +++ src/etc/PROBLEMS 2009-11-20 11:34:46.000000000 -0500 @@ -255,6 +255,18 @@ Cygwin malloc, the Cygwin memalign always returns ENOSYS. A fix for this problem would be welcome. +A workaround is to set G_SLICE=always-malloc before starting emacs. +For example, in bash, + + G_SLICE=always-malloc emacs + +or put + + export G_SLICE=always-malloc + +in one of the bash startup files. This also has to be done before +building emacs on Cygwin with Gtk+. + * General runtime problems ** Lisp problems @@ -2207,34 +2219,6 @@ changes the keyboard layout depends on your Windows version; for XP, in the Languages tab, click "Details" and then "Key Settings".) -** Cygwin build of Emacs hangs after rebasing Cygwin DLLs - -Usually, on Cygwin, one needs to rebase the DLLs if an application -aborts with a message like this: - - C:\cygwin\bin\python.exe: *** unable to remap C:\cygwin\bin\cygssl.dll to - same address as parent(0xDF0000) != 0xE00000 - -However, since Cygwin DLL 1.5.17 was released, after such rebasing, -Emacs hangs. - -This was reported to happen for Emacs 21.2 and also for the pretest of -Emacs 22.1 on Cygwin. - -To work around this, build Emacs like this: - - LDFLAGS='-Wl,--enable-auto-import -Wl,--enable-auto-image-base' ./configure - make LD='$(CC)' - make LD='$(CC)' install - -This produces an Emacs binary that is independent of rebasing. - -Note that you _must_ use LD='$(CC)' in the last two commands above, to -prevent GCC from passing the "--image-base 0x20000000" option to the -linker, which is what it does by default. That option produces an -Emacs binary with the base address 0x20000000, which will cause Emacs -to hang after Cygwin DLLs are rebased. - ** Interrupting Cygwin port of Bash from Emacs doesn't work. Cygwin 1.x builds of the ported Bash cannot be interrupted from the @@ -2481,17 +2465,12 @@ (using the location of the 32-bit X libraries on your system). -*** Building the Cygwin port for MS-Windows can fail with some GCC versions +*** Building the Cygwin port of emacs requires GCC 4 -Building Emacs 22 with Cygwin builds of GCC 3.4.4-1 and 3.4.4-2 is -reported to either fail or cause Emacs to segfault at run time. In -addition, the Cygwin GCC 3.4.4-2 has problems with generating debug -info. Cygwin users are advised not to use these versions of GCC for -compiling Emacs. GCC versions 4.0.3, 4.0.4, 4.1.1, and 4.1.2 -reportedly build a working Cygwin binary of Emacs, so we recommend -these GCC versions. Note that these versions of GCC, 4.0.3, 4.0.4, -4.1.1, and 4.1.2, are currently the _only_ versions known to succeed -in building Emacs (as of v22.1). +As of Emacs 22.1, there have been problems with Cygwin builds of Emacs +using GCC 3. Cygwin users are advised to use GCC 4. As far as we +know, there have been no problems with Cygwin builds of Emacs using +GCC 4. *** Building the native MS-Windows port with Cygwin GCC can fail.