* bug#11402: Problem while compiling emacs-24.0.96 using MinGW on Win7 @ 2012-05-04 7:34 Du Yanning 2012-05-04 9:21 ` Eli Zaretskii 0 siblings, 1 reply; 5+ messages in thread From: Du Yanning @ 2012-05-04 7:34 UTC (permalink / raw To: 11402 [-- Attachment #1: Type: text/plain, Size: 1028 bytes --] 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> It seems that cmd /c did not quit and the current directory has been changed from nt to src. If you press Ctrl+C now, you will get: f:\build-emacs\emacs-24.0.96\src>make[1]: *** [gl-stamp] Interrupt make: *** [all-other-dirs-gmake] Interrupt F:\build-emacs\emacs-24.0.96-mingw\nt> I found that in src/makefile.w32-in of emacs-24.0.96, there is a line that emacs 23 does NOT have: cmd /c "fc /b gl-tmp globals.h >nul 2>&1 || $(CP) gl-tmp globals.h" How can I cope with this problem? Thank you all. [-- Attachment #2: Type: text/html, Size: 1200 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#11402: Problem while compiling emacs-24.0.96 using MinGW on Win7 2012-05-04 7:34 bug#11402: Problem while compiling emacs-24.0.96 using MinGW on Win7 Du Yanning @ 2012-05-04 9:21 ` Eli Zaretskii [not found] ` <CALr_ej24_EX2NevXNU5YfCksOqdx=3C7xvtNXh2SFVX5X4xvpw@mail.gmail.com> 0 siblings, 1 reply; 5+ messages in thread From: Eli Zaretskii @ 2012-05-04 9:21 UTC (permalink / raw To: Du Yanning; +Cc: 11402 > Date: Fri, 4 May 2012 15:34:03 +0800 > From: Du Yanning <duyanning@gmail.com> > > 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. ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CALr_ej24_EX2NevXNU5YfCksOqdx=3C7xvtNXh2SFVX5X4xvpw@mail.gmail.com>]
* bug#11402: Problem while compiling emacs-24.0.96 using MinGW on Win7 [not found] ` <CALr_ej24_EX2NevXNU5YfCksOqdx=3C7xvtNXh2SFVX5X4xvpw@mail.gmail.com> @ 2012-05-04 10:30 ` Eli Zaretskii 2012-05-04 13:43 ` Du Yanning 0 siblings, 1 reply; 5+ messages in thread From: Eli Zaretskii @ 2012-05-04 10:30 UTC (permalink / raw To: Du Yanning; +Cc: 11402 > Date: Fri, 4 May 2012 17:37:44 +0800 > From: Du Yanning <duyanning@gmail.com> [Please keep the bug address on the CC list, so that this discussion is logged by the bug tracker.] > After I renamed MSYS sh.exe to aaash.exe and ran make, it said: > > F:\build-emacs\emacs-24.0.96\nt>make > make: /bin/sh: Command not found > make: /bin/sh: Command not found > Using /bin/sh as shell. > mkdir "oo-spd" > make: /bin/sh: Command not found > make: [oo-spd] Error 127 (ignored) > mkdir "oo-spd/i386" > make: /bin/sh: Command not found > make: [stamp_BLD] Error 127 (ignored) > echo oo-spd/i386 > stamp_BLD > make: /bin/sh: Command not found > make: *** [stamp_BLD] Error 127 > > It seems that make need sh.exe. > How can I correct it? My crystal ball says your 'make' is an MSYS 'make'. If so, install the MinGW 'make' instead, it can work without sh.exe. (You will probably need MinGW or GnuWin32 ports of cp, rm and mv as well, they are part of the Coreutils package.) In general, when building Emacs, it is much better to remove MSYS from Path, because MSYS tools are generally intended to be run only as part of configuring and building Unix and GNU/Linux packages. By contrast, the Windows port of Emacs should be built using native Windows tools. ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#11402: Problem while compiling emacs-24.0.96 using MinGW on Win7 2012-05-04 10:30 ` Eli Zaretskii @ 2012-05-04 13:43 ` Du Yanning 2012-05-04 14:21 ` Eli Zaretskii 0 siblings, 1 reply; 5+ messages in thread From: Du Yanning @ 2012-05-04 13:43 UTC (permalink / raw To: Eli Zaretskii; +Cc: 11402 [-- Attachment #1: Type: text/plain, Size: 1512 bytes --] I rename MSYS sh.exe to aaash.exe, and use mingw32-make.exe instead of MSYS make.exe. This time it works fine. Thank you. On Fri, May 4, 2012 at 6:30 PM, Eli Zaretskii <eliz@gnu.org> wrote: > > Date: Fri, 4 May 2012 17:37:44 +0800 > > From: Du Yanning <duyanning@gmail.com> > > [Please keep the bug address on the CC list, so that this discussion > is logged by the bug tracker.] > > > After I renamed MSYS sh.exe to aaash.exe and ran make, it said: > > > > F:\build-emacs\emacs-24.0.96\nt>make > > make: /bin/sh: Command not found > > make: /bin/sh: Command not found > > Using /bin/sh as shell. > > mkdir "oo-spd" > > make: /bin/sh: Command not found > > make: [oo-spd] Error 127 (ignored) > > mkdir "oo-spd/i386" > > make: /bin/sh: Command not found > > make: [stamp_BLD] Error 127 (ignored) > > echo oo-spd/i386 > stamp_BLD > > make: /bin/sh: Command not found > > make: *** [stamp_BLD] Error 127 > > > > It seems that make need sh.exe. > > How can I correct it? > > My crystal ball says your 'make' is an MSYS 'make'. If so, install > the MinGW 'make' instead, it can work without sh.exe. (You will > probably need MinGW or GnuWin32 ports of cp, rm and mv as well, they > are part of the Coreutils package.) > > In general, when building Emacs, it is much better to remove MSYS from > Path, because MSYS tools are generally intended to be run only as part > of configuring and building Unix and GNU/Linux packages. By contrast, > the Windows port of Emacs should be built using native Windows tools. > [-- Attachment #2: Type: text/html, Size: 2042 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#11402: Problem while compiling emacs-24.0.96 using MinGW on Win7 2012-05-04 13:43 ` Du Yanning @ 2012-05-04 14:21 ` Eli Zaretskii 0 siblings, 0 replies; 5+ messages in thread From: Eli Zaretskii @ 2012-05-04 14:21 UTC (permalink / raw To: Du Yanning; +Cc: 11402-done > Date: Fri, 4 May 2012 21:43:14 +0800 > From: Du Yanning <duyanning@gmail.com> > Cc: 11402@debbugs.gnu.org > > I rename MSYS sh.exe to aaash.exe, and use mingw32-make.exe instead of MSYS > make.exe. > This time it works fine. Great! Closing the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-05-04 14:21 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-05-04 7:34 bug#11402: Problem while compiling emacs-24.0.96 using MinGW on Win7 Du Yanning 2012-05-04 9:21 ` Eli Zaretskii [not found] ` <CALr_ej24_EX2NevXNU5YfCksOqdx=3C7xvtNXh2SFVX5X4xvpw@mail.gmail.com> 2012-05-04 10:30 ` Eli Zaretskii 2012-05-04 13:43 ` Du Yanning 2012-05-04 14:21 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).