unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: emacs-devel@gnu.org
Subject: Re: Two strange messages while building Emacs on MS-Windows
Date: Sun, 09 Dec 2012 02:18:41 +0100	[thread overview]
Message-ID: <87d2ykxbta.fsf@wanadoo.es> (raw)
In-Reply-To: 83k3ssll3g.fsf@gnu.org

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Óscar Fuentes <ofv@wanadoo.es>
>> Date: Sat, 08 Dec 2012 14:24:23 +0100
>> 
>> So Wine is neglecting cmd.exe. Using one from a Windows XP install
>> allows the script to complete. Then, buildobj.h causes a failure because
>> it contains too much " and '. Apparently make-buildobj-SH: is used
>> instead of make-buildobj-CMD.
>
> Maybe the Windows makefiles assume something that is false in Wine.
> The test for the shell type is in nt/gmake.defs:
>
>   # Determine whether make is using sh or cmd/command as shell; cmd.exe
>   # will output "ECHO is on" when echo is given by itself, while sh will
>   # not produce any output.
>   sh_output := $(shell echo)
>   ifeq "$(findstring ECHO, $(sh_output))" "ECHO"
>   THE_SHELL = $(COMSPEC)$(ComSpec)
>   SHELLTYPE=CMD
>   SWITCHCHAR=/
>   else
>   USING_SH = 1
>   THE_SHELL = $(SHELL)
>   SHELLTYPE=SH
>
> Which part(s) of this do(es)n't work in Wine?

cmd.exe from Wine outputs

Echo is off

(note the capitalization), while the one taken from the Spanish Windows
XP outputs

ECHO está activado

I don't know why the test fails with that cmd.exe, it was copied from
the virtual machine where I build Emacs. Possibly my mistake, because at
some point I realized that COMSPEC was not set and restarted the whole
process, but maybe some generated makefile was not deleted.

BTW, Wine's cmd.exe seems unable to get the quoting right while
generating buildobj.h. I tried multiple combinations, but haven't found
a method for outputting one double-quote to the file.

>> mingw32-make[1]: Entering directory `D:/exp/emacs/emacs/lib-src'
>> mmingw32-make[1]: Leaving directory `D:/exp/emacs/emacs/lib-src'
>> ingw32-make[1]: *** No rule to make target `../lisp/abbrev.elc', needed by `DOC'.  Stop.
>> mingw32-make: *** [all-other-dirs-gmake] Error 2
>
> You need to say "make bootstrap" explicitly, the Windows build scripts
> cannot automatically intuit that a bootstrap is needed.

Yes, I started with `make bootstrap' but, after fixing buildobj.h,
just executed `make'.

[snip]

After undoing the workarounds for the DOC target mentioned on my
previous message and commenting out the test for the shell type quoted
at the beginning of this one, hence forcing all makefiles to use the
copied cmd.exe, the build continued all along, except for about 30 .el
files which failed to compile crashing emacs but didn't stop the build.
Then `make install' failed with

mingw32-make[2]: Entering directory `D:/exp/emacs/emacs/lisp'
cp -f *.el "d:\exp\emacs\installed/lisp"
fixme:process:CmdBatNotification 1
cp: cannot stat `*.el': Invalid argument
fixme:process:CmdBatNotification 0
mingw32-make[2]: *** [install-lisp-CMD] Error 1
mingw32-make[2]: Leaving directory `D:/exp/emacs/emacs/lisp'

The `fixme' comes from Wine, there are a lot of them about
CmdBatNotification. The second most popular is

fixme:msvcrt:MSVCRT__sopen_s : pmode 0x81b6 ignored

At this point I gave out, as Wine seems too unreliable for the task.
Also I had the impression that the Wine build is slower than the
virtualized Windows XP build running on the same physical machine.




  reply	other threads:[~2012-12-09  1:18 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-07 19:21 Two strange messages while building Emacs on MS-Windows Dani Moncayo
2012-12-07 19:54 ` Glenn Morris
2012-12-07 19:57   ` Glenn Morris
2012-12-07 20:17     ` Dani Moncayo
2012-12-07 21:35       ` Eli Zaretskii
2012-12-07 22:11         ` Dani Moncayo
2012-12-07 22:35           ` Stefan Monnier
2012-12-08  8:02           ` Eli Zaretskii
2012-12-08  8:43             ` Dani Moncayo
2012-12-08  9:24               ` Eli Zaretskii
2012-12-08 23:06               ` Stefan Monnier
2012-12-09  3:44                 ` Eli Zaretskii
2012-12-09 15:50                   ` Stefan Monnier
2012-12-09 18:15                     ` Óscar Fuentes
2012-12-09 18:52                       ` Eli Zaretskii
2012-12-09 19:31                         ` Óscar Fuentes
2012-12-09 22:14                           ` Eli Zaretskii
2012-12-09 22:44                             ` Óscar Fuentes
2012-12-10  6:06                               ` Eli Zaretskii
2012-12-10 11:11                                 ` Óscar Fuentes
2012-12-10 14:37                                   ` Eli Zaretskii
2012-12-10 15:42                                     ` Óscar Fuentes
2012-12-10 16:20                                       ` Eli Zaretskii
2012-12-09 22:00                     ` Eli Zaretskii
2012-12-09 23:31                       ` Dani Moncayo
2012-12-10  6:13                         ` Eli Zaretskii
2012-12-10 20:57                           ` Dani Moncayo
2012-12-10 21:08                             ` Eli Zaretskii
2012-12-10 21:33                               ` Dani Moncayo
2012-12-11  6:49                                 ` Eli Zaretskii
2012-12-11  7:18                                   ` Dani Moncayo
2012-12-11  7:51                                     ` Eli Zaretskii
2012-12-11 20:41                                       ` Dani Moncayo
2012-12-11 21:00                                         ` Eli Zaretskii
2012-12-11 20:41                               ` Dani Moncayo
2012-12-11 21:05                                 ` Eli Zaretskii
2012-12-11 21:58                                   ` Dani Moncayo
2012-12-11 22:55                                     ` Stefan Monnier
2012-12-12  3:50                                       ` Eli Zaretskii
2012-12-12 14:26                                         ` Stefan Monnier
2012-12-12 17:18                                           ` Eli Zaretskii
2012-12-12 18:42                                       ` Eli Zaretskii
2012-12-12  3:48                                     ` Eli Zaretskii
2012-12-12 18:41                                       ` Eli Zaretskii
2012-12-11  7:57                             ` Daniel Colascione
2012-12-11 20:42                               ` Dani Moncayo
2012-12-11 20:47                                 ` Daniel Colascione
2012-12-11 20:58                                   ` Dani Moncayo
2012-12-11 20:59                                     ` Daniel Colascione
2012-12-11 21:01                                       ` Dani Moncayo
2012-12-11 21:02                                         ` Daniel Colascione
2012-12-10  9:59                     ` Eli Zaretskii
2012-12-10 10:37                       ` Romain Francoise
2012-12-10 14:42                         ` Eli Zaretskii
2012-12-10 15:33                           ` Romain Francoise
2012-12-10 16:04                             ` Eli Zaretskii
2012-12-10 14:44                       ` Eli Zaretskii
2012-12-07 22:57         ` joakim
2012-12-08  8:08           ` Eli Zaretskii
2012-12-08 10:58             ` joakim
2012-12-08 11:35               ` Óscar Fuentes
2012-12-08 12:12                 ` Óscar Fuentes
2012-12-08 12:44                   ` Eli Zaretskii
2012-12-08 13:24                     ` Óscar Fuentes
2012-12-08 13:38                       ` Eli Zaretskii
2012-12-09  1:18                         ` Óscar Fuentes [this message]
2012-12-08 12:33               ` Eli Zaretskii
2012-12-07 21:35       ` Stefan Monnier
2012-12-09  3:20       ` Jason Rumney
2012-12-07 20:17   ` Dani Moncayo
2012-12-07 21:24     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d2ykxbta.fsf@wanadoo.es \
    --to=ofv@wanadoo.es \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).