unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18765: Emacs 24.4 release candidate 1: "term/w32-win.el" is missing on Windows
@ 2014-10-18 14:55 Yanning Du
  2014-10-18 17:44 ` Eli Zaretskii
  0 siblings, 1 reply; 12+ messages in thread
From: Yanning Du @ 2014-10-18 14:55 UTC (permalink / raw)
  To: 18765

Platform: Windows 7
Emacs version: Emacs 24.4 release candidate 1

I used the following commands to build and install Emacs 24.4 release candidate 1:
/f/build-emacs/emacs-24.3.94$ CFLAGS='-I/f/build-emacs/libxpm-3.5.8-w32-src/include -I/f/build-emacs/libxpm-3.5.8-w32-src/src' ./configure --prefix=/f/myemacs-24.3.94
/f/build-emacs/emacs-24.3.94$ make
/f/build-emacs/emacs-24.3.94$ make install

When it is finished, I run emacs -Q
However, a message box is poped up saying:
====================Emacs Abort Dialog ======================
The Emacs Windows initialization file "term/w32-win.el" could not be found in your Emacs installation.  Emacs checked the following directories for this file:

("f:/myemacs-24.3.94/site-lisp" "F:/myemacs-24.3.94/../site-lisp" "F:/myemacs-24.3.94/lisp" "F:/myemacs-24.3.94/leim")

When Emacs cannot find this file, it usually means that it was not installed properly, or its distribution file was not unpacked properly.
See the README.W32 file in the top-level Emacs directory for more information.
=======================================================

Actually, w32-win.el EXISTS in my system, but it under F:\myemacs-24.3.94\share\emacs\24.3.94\lisp\term\

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#18765: Emacs 24.4 release candidate 1: "term/w32-win.el" is missing on Windows
  2014-10-18 14:55 bug#18765: Emacs 24.4 release candidate 1: "term/w32-win.el" is missing on Windows Yanning Du
@ 2014-10-18 17:44 ` Eli Zaretskii
  2014-10-18 17:47   ` Eli Zaretskii
  0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2014-10-18 17:44 UTC (permalink / raw)
  To: Yanning Du; +Cc: 18765

> Date: Sat, 18 Oct 2014 22:55:40 +0800
> From: "Yanning Du" <duyanning@gmail.com>
> 
> I used the following commands to build and install Emacs 24.4 release candidate 1:
> /f/build-emacs/emacs-24.3.94$ CFLAGS='-I/f/build-emacs/libxpm-3.5.8-w32-src/include -I/f/build-emacs/libxpm-3.5.8-w32-src/src' ./configure --prefix=/f/myemacs-24.3.94
> /f/build-emacs/emacs-24.3.94$ make
> /f/build-emacs/emacs-24.3.94$ make install
> 
> When it is finished, I run emacs -Q
> However, a message box is poped up saying:
> ====================Emacs Abort Dialog ======================
> The Emacs Windows initialization file "term/w32-win.el" could not be found in your Emacs installation.  Emacs checked the following directories for this file:
> 
> ("f:/myemacs-24.3.94/site-lisp" "F:/myemacs-24.3.94/../site-lisp" "F:/myemacs-24.3.94/lisp" "F:/myemacs-24.3.94/leim")
> 
> When Emacs cannot find this file, it usually means that it was not installed properly, or its distribution file was not unpacked properly.
> See the README.W32 file in the top-level Emacs directory for more information.
> =======================================================
> 
> Actually, w32-win.el EXISTS in my system, but it under F:\myemacs-24.3.94\share\emacs\24.3.94\lisp\term\

Please show the contents of F:/build-emacs/emacs-24.3.94/src/epaths.h.

Also, please make sure you don't have any of the following variables
set, neither in the environment nor in the Registry:

  PATH_LOADSEARCH
  PATH_SITELOADSEARCH






^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#18765: Emacs 24.4 release candidate 1: "term/w32-win.el" is missing on Windows
  2014-10-18 17:44 ` Eli Zaretskii
@ 2014-10-18 17:47   ` Eli Zaretskii
       [not found]     ` <tencent_2F7D25C1344405A257657314@qq.com>
  0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2014-10-18 17:47 UTC (permalink / raw)
  To: duyanning; +Cc: 18765

> Date: Sat, 18 Oct 2014 20:44:39 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 18765@debbugs.gnu.org
> 
> Also, please make sure you don't have any of the following variables
> set, neither in the environment nor in the Registry:
> 
>   PATH_LOADSEARCH
>   PATH_SITELOADSEARCH

Please add emacs_dir variable to that list.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#18765: Re: bug#18765: Emacs 24.4 release candidate 1: "term/w32-win.el" is missing on Windows
       [not found]     ` <tencent_2F7D25C1344405A257657314@qq.com>
@ 2014-10-19  2:46       ` Eli Zaretskii
       [not found]         ` <tencent_5F72EE2D310B0E4F2588C299@qq.com>
  0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2014-10-19  2:46 UTC (permalink / raw)
  To: Yanning Du; +Cc: 18765

[Please keep the bug address in the CC list.]

> From: "Yanning Du" <duyanning@gmail.com>
> Date: Sun, 19 Oct 2014 10:18:02 +0800
> 
> The contents of F:/build-emacs/emacs-24.3.94/src/epaths.h:
> 
> #define PATH_LOADSEARCH "%emacs_dir%/share/emacs/24.3.94/lisp"
> #define PATH_SITELOADSEARCH "%emacs_dir%/share/emacs/24.3.94/site-lisp;%emacs_dir%/share/emacs/site-lisp"
> #define PATH_DUMPLOADSEARCH "f:/build-emacs/emacs-24.3.94/lisp"
> #define PATH_EXEC "%emacs_dir%/libexec/emacs/24.3.94/i686-pc-mingw32"
> #define PATH_DATA "%emacs_dir%/share/emacs/24.3.94/etc"
> #define PATH_BITMAPS ""
> #define PATH_DOC "%emacs_dir%/share/emacs/24.3.94/etc"
> #define PATH_INFO "%emacs_dir%/share/info"
> #define PATH_GAME "%emacs_dir%/var/games/emacs"
> #define PATH_X_DEFAULTS ""
> 
> 
> I have neither PATH_LOADSEARCH nor PATH_SITELOADSEARCH
> defined in my environment and registry. 
> 
> Although emacs_dir is defined in registry, I think it is added
> by former emacs 24.3 automatically when it runs.

Please remove it from the registry and try again.

Also, how did you invoke Emacs after building it?  From the command
prompt (and if so, which shell), from a desktop shortcut, Start->Run
dialog, something else?

> Before Emacs 24.4, I used configure.bat to build and it is OK.
> However when I were using it to build emacs 24.4, it said:
> 
> *** THIS METHOD OF BUILDING EMACS IS NO LONGER SUPPORTED.     **
> *** INSTEAD, FOLLOW THE INSTRUCTIONS FROM INSTALL.            **
> 
> So I use the new method.

That is the correct method of building Emacs now.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#18765: Re: Re: bug#18765: Emacs 24.4 release candidate 1: "term/w32-win.el" is missing on Windows
       [not found]         ` <tencent_5F72EE2D310B0E4F2588C299@qq.com>
@ 2014-10-19 13:35           ` Eli Zaretskii
       [not found]             ` <tencent_50EC3E993138CF71449EAA47@qq.com>
  0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2014-10-19 13:35 UTC (permalink / raw)
  To: Yanning Du; +Cc: 18765

[Once again, PLEASE keep the bug address on the CC list.]

> From: "Yanning Du" <duyanning@gmail.com>
> Date: Sun, 19 Oct 2014 10:57:14 +0800
> 
> I removed emacs_dir from the registry and ran emacs, I got the same message box.
> Should I rebuild emacs after removing emacs_dir from the registry?

I don't know yet, because what you report includes some strange
details, see below.

> I ran emacs 24.4 using runemacs.exe from command prompt (cmd.exe).

Please try running emacs.exe from F:\myemacs-24.3.94\bin directly from
the cmd.exe prompt.  Does that show the same abort dialog, or does it
run normally?

Here are the questions I have regarding your report:

> Emacs version: Emacs 24.4 release candidate 1
> 
> I used the following commands to build and install Emacs 24.4 release candidate 1:
> /f/build-emacs/emacs-24.3.94$ CFLAGS='-I/f/build-emacs/libxpm-3.5.8-w32-src/include -I/f/build-emacs/libxpm-3.5.8-w32-src/src' ./configure --prefix=/f/myemacs-24.3.94
> /f/build-emacs/emacs-24.3.94$ make
> /f/build-emacs/emacs-24.3.94$ make install

You say you've built Emacs 24.4 release candidate 1, but the build
directory and the --prefix argument seem to say it's 24.3.94, a
pretest.  Likewise, your src/epaths.h file says it's a 24.3.94
pretest:

> #define PATH_LOADSEARCH "%emacs_dir%/share/emacs/24.3.94/lisp"
> #define PATH_SITELOADSEARCH "%emacs_dir%/share/emacs/24.3.94/site-lisp;%emacs_dir%/share/emacs/site-lisp"
> #define PATH_DUMPLOADSEARCH "f:/build-emacs/emacs-24.3.94/lisp"
> #define PATH_EXEC "%emacs_dir%/libexec/emacs/24.3.94/i686-pc-mingw32"
> #define PATH_DATA "%emacs_dir%/share/emacs/24.3.94/etc"
> #define PATH_BITMAPS ""
> #define PATH_DOC "%emacs_dir%/share/emacs/24.3.94/etc"
> #define PATH_INFO "%emacs_dir%/share/info"
> #define PATH_GAME "%emacs_dir%/var/games/emacs"
> #define PATH_X_DEFAULTS ""

So which version did you build, exactly?

Also, did you put the F:\myemacs-24.3.94\bin on your PATH?

In any case, the directories where Emacs claims to have looked for
term/w32-win.el, i.e.

  ("f:/myemacs-24.3.94/site-lisp" "F:/myemacs-24.3.94/../site-lisp" "F:/myemacs-24.3.94/lisp" "F:/myemacs-24.3.94/leim")

correspond to the old build and install method, the one you used to do
using nt/configure.bat.  So my first guess would be that you invoked
an old emacs.exe, which still tries to look for its files in the old
place.  Please see what is the full path to emacs.exe that is running
when you are shown the abort dialog (you can do this using specialized
utilities, such as the Process Explorer from SysInternals, whch show
various properties of the running process).





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#18765: Re: Re: Re: bug#18765: Emacs 24.4 release candidate 1: "term/w32-win.el" is missing on Windows
       [not found]             ` <tencent_50EC3E993138CF71449EAA47@qq.com>
@ 2014-10-21 17:45               ` Eli Zaretskii
  2014-10-21 20:13                 ` Glenn Morris
  0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2014-10-21 17:45 UTC (permalink / raw)
  To: Yanning Du, 18765-done

> From: "Yanning Du" <duyanning@gmail.com>
> Date: Wed, 22 Oct 2014 00:07:33 +0800
> 
> I deleted all values under 'HKEY_CURRENT_USER\Software\GNU\Emacs ' excepting HOME.
> Everything seems OK now.
> Thank you, Eli.
> 
> I suspect that these values were added by a pretest version, may be emacs-24.3.94.

OK, I'm closing the bug.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#18765: Re: Re: Re: bug#18765: Emacs 24.4 release candidate 1: "term/w32-win.el" is missing on Windows
  2014-10-21 17:45               ` bug#18765: " Eli Zaretskii
@ 2014-10-21 20:13                 ` Glenn Morris
  2014-10-21 20:22                   ` Drew Adams
  2014-10-21 20:31                   ` Eli Zaretskii
  0 siblings, 2 replies; 12+ messages in thread
From: Glenn Morris @ 2014-10-21 20:13 UTC (permalink / raw)
  To: 18765


This is then http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16429#43

If would be good if the MS Windows build could be robust against these
issues.






^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#18765: Re: Re: Re: bug#18765: Emacs 24.4 release candidate 1: "term/w32-win.el" is missing on Windows
  2014-10-21 20:13                 ` Glenn Morris
@ 2014-10-21 20:22                   ` Drew Adams
  2014-10-21 20:31                   ` Eli Zaretskii
  1 sibling, 0 replies; 12+ messages in thread
From: Drew Adams @ 2014-10-21 20:22 UTC (permalink / raw)
  To: Glenn Morris, 18765

> This is then http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16429#43
> 
> If would be good if the MS Windows build could be robust against
> these issues.

What MS Windows build?





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#18765: Re: Re: Re: bug#18765: Emacs 24.4 release candidate 1: "term/w32-win.el" is missing on Windows
  2014-10-21 20:13                 ` Glenn Morris
  2014-10-21 20:22                   ` Drew Adams
@ 2014-10-21 20:31                   ` Eli Zaretskii
  2014-10-21 21:15                     ` Glenn Morris
  1 sibling, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2014-10-21 20:31 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 18765

> From: Glenn Morris <rgm@gnu.org>
> Date: Tue, 21 Oct 2014 16:13:07 -0400
> 
> 
> This is then http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16429#43
> 
> If would be good if the MS Windows build could be robust against these
> issues.

If you know how, please suggest a method.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#18765: Re: Re: Re: bug#18765: Emacs 24.4 release candidate 1: "term/w32-win.el" is missing on Windows
  2014-10-21 20:31                   ` Eli Zaretskii
@ 2014-10-21 21:15                     ` Glenn Morris
  2014-10-22  2:49                       ` bug#16429: " Eli Zaretskii
  0 siblings, 1 reply; 12+ messages in thread
From: Glenn Morris @ 2014-10-21 21:15 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 18765, 16429

Eli Zaretskii wrote:

> If you know how, please suggest a method.

Either a command-line option meaning "ignore the registry", which gets
added to the Makefile Emacs flags; or, if environment variables trump
the registry, change it so that empty environment variables mean "use
the defaults" (right now they just break things), and change the
Makefiles to set empty environment variables rather than unsetting them
like they do now (seemed not straightforward last time I looked).






^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#16429: bug#18765: Re: Re: Re: bug#18765: Emacs 24.4 release candidate 1: "term/w32-win.el" is missing on Windows
  2014-10-21 21:15                     ` Glenn Morris
@ 2014-10-22  2:49                       ` Eli Zaretskii
  2014-10-22  4:43                         ` Glenn Morris
  0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2014-10-22  2:49 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 18765, 16429

> From: Glenn Morris <rgm@gnu.org>
> Cc: 18765@debbugs.gnu.org, 16429@debbugs.gnu.org
> Date: Tue, 21 Oct 2014 17:15:47 -0400
> 
> Eli Zaretskii wrote:
> 
> > If you know how, please suggest a method.
> 
> Either a command-line option meaning "ignore the registry", which gets
> added to the Makefile Emacs flags

How does this help when the user just invokes "emacs" with no options,
as in this case?

> or, if environment variables trump the registry, change it so that
> empty environment variables mean "use the defaults" (right now they
> just break things), and change the Makefiles to set empty
> environment variables rather than unsetting them like they do now
> (seemed not straightforward last time I looked).

Why are you talking about the Makefile?  The problem ws not in
invoking Emacs from the Makefile, it was in interactive usage after
the build is done (in bug #18765).





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#16429: bug#18765: Re: Re: Re: bug#18765: Emacs 24.4 release candidate 1: "term/w32-win.el" is missing on Windows
  2014-10-22  2:49                       ` bug#16429: " Eli Zaretskii
@ 2014-10-22  4:43                         ` Glenn Morris
  0 siblings, 0 replies; 12+ messages in thread
From: Glenn Morris @ 2014-10-22  4:43 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 18765, 16429

Eli Zaretskii wrote:

> Why are you talking about the Makefile?  The problem ws not in
> invoking Emacs from the Makefile, it was in interactive usage after
> the build is done (in bug #18765).

Oh, durr, I wasn't paying attention, sorry.





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-10-22  4:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-18 14:55 bug#18765: Emacs 24.4 release candidate 1: "term/w32-win.el" is missing on Windows Yanning Du
2014-10-18 17:44 ` Eli Zaretskii
2014-10-18 17:47   ` Eli Zaretskii
     [not found]     ` <tencent_2F7D25C1344405A257657314@qq.com>
2014-10-19  2:46       ` bug#18765: " Eli Zaretskii
     [not found]         ` <tencent_5F72EE2D310B0E4F2588C299@qq.com>
2014-10-19 13:35           ` bug#18765: " Eli Zaretskii
     [not found]             ` <tencent_50EC3E993138CF71449EAA47@qq.com>
2014-10-21 17:45               ` bug#18765: " Eli Zaretskii
2014-10-21 20:13                 ` Glenn Morris
2014-10-21 20:22                   ` Drew Adams
2014-10-21 20:31                   ` Eli Zaretskii
2014-10-21 21:15                     ` Glenn Morris
2014-10-22  2:49                       ` bug#16429: " Eli Zaretskii
2014-10-22  4:43                         ` Glenn Morris

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).