Subject: Re: bug#11402: Problem while compiling emacs-24.0.96 using MinGW on Win7

From: Eli Zaretskii <[email-masked]>
Date: Fri, 04 May 2012 12:21:46 +0300

> Date: Fri, 4 May 2012 15:34:03 +0800
> From: Du Yanning <[email-masked]>
> 
> Open a Command Prompt window, then
> 
> f:\> cd emacs-24.0.96/nt
> f:\build-emacs\emacs-24.0.96\
> nt> configure.bat --no-debug --cflags -ID:/gnuwin32/include --cflags
> -IC:/gnuwin32/src/lib --without-png
> f:\build-emacs\emacs-24.0.96\nt> make
> 
> After a while, it stopped. The last few lines of the output said:
> 
> 
>      cmd /c "fc /b gl-tmp globals.h >nul 2>&1 || cp -f gl-tmp globals.h"
>      Microsoft Windows [Version 6.1.7601]
>      Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
>      f:\build-emacs\emacs-24.0.96\src>

Are you using the MSYS Bash shell?  If so, this configuration is not
supported, see nt/INSTALL.  (MSYS Bash has its own ideas about what
"/c" means, so it changes it to something that confuses cmd.exe.)

> How can I cope with this problem?

Remove the directory where MSYS Bash lives from Path, or rename sh.exe
to something else, then try again.

If indeed this is caused by MSYS, I will close this bug.