unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* CVS Emacs cygwin build problem.
@ 2006-05-19  6:47 Steven Wu
  2006-05-19  8:17 ` Jason Rumney
  2006-05-19 11:33 ` Eli Zaretskii
  0 siblings, 2 replies; 19+ messages in thread
From: Steven Wu @ 2006-05-19  6:47 UTC (permalink / raw)


If building CVS Emacs on cygwin platform, a problem may occur, and  
the message looks like:

===
make[1]: Entering directory `/cygdrive/c/dev/emacs-src/emacs/lisp'
/cygdrive/c/dev/emacs-src/emacs/lisp/../update-subdirs /cygdrive/c/ 
dev/emacs-src/emacs/lisp; \
for file in calc calendar emacs-lisp emulation eshell gnus  
international language mail mh-e net obsolete play progmodes term  
textmodes toolbar url; do \
/cygdrive/c/dev/emacs-src/emacs/lisp/../update-subdirs $file; \
done;
Directories: calc calendar emacs-lisp emulation eshell gnus  
international language mail mh-e net obsolete play progmodes
term textmodes toolbar url
"./../bin/emacs.exe" -batch --no-init-file --no-site-file --multibyte  
-l autoload \
--eval '(setq find-file-hook nil \
find-file-suppress-same-file-warnings t \
generated-autoload-file \
"/cygdrive/c/dev/emacs-src/emacs/lisp/loaddefs.el")' \
-f batch-update-autoloads /cygdrive/c/dev/emacs-src/emacs/lisp calc  
calendar emacs-lisp emulation eshell gnus in
ternational language mail mh-e net obsolete play progmodes term  
textmodes toolbar url
Cannot open load file: encoded-kb
Signal 127
make[1]: *** [autoloads] Error 255
make[1]: Leaving directory `/cygdrive/c/dev/emacs-src/emacs/lisp'
===

This only happens to cygwin, but not MinGW or Visual Studio build.  
The problem is that the default make mode for make 3.80, which comes  
with the std cygwin distribution, is Unix mode. Hence, the paths of  
directories and files known to make are in Unix form.  During the  
compilation of c code, there is no problem because cygwin gcc  
understand cygwin path. However when bootstrapping the elisp files,  
things are different.

In the emacs/lisp/makefile.w32-in, line 30

lisp = $(CURDIR)

here lisp is set to the current directory. For nmake, or minGW make,  
this $(CURDIR) is window path. For cygwin, this is cygwin unix-like  
path. Because Emacs isn't compiled with cygwin libraries, Emacs  
doesn't understand cygwin path, and hence it cannot load the encoded-kb.

The fix for this is to change lisp=$(shell cygpath -m $(CURDIR)).  
Condition like the cygwin test can be added to guard this.

Similar changes is also needed for leim directory.

steve

^ permalink raw reply	[flat|nested] 19+ messages in thread
* CVS Emacs cygwin build problem.
@ 2006-05-19  8:28 djh
  0 siblings, 0 replies; 19+ messages in thread
From: djh @ 2006-05-19  8:28 UTC (permalink / raw)



Steven,
  which cygwin version are you talking about.  cygwin made some substantial changes between 5.18 and 5.19.  cvs builds on cygwin 5.18 as of a week ago.  I had trouble with 5.19 and not enough time to debug the problems.  

  The version of cygwin you're using makes a difference so please include that infomration.


Darel Henman

^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: CVS Emacs cygwin build problem.
@ 2006-05-19 14:20 Steven Wu
  0 siblings, 0 replies; 19+ messages in thread
From: Steven Wu @ 2006-05-19 14:20 UTC (permalink / raw)
  Cc: emacs-devel

Darel,

the cygwin I have is the latest version which is 5.19. After the fix,  
I had built and run native Emacs with cygwin gcc without problem.

steve

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

end of thread, other threads:[~2006-05-22  2:38 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-19  6:47 CVS Emacs cygwin build problem Steven Wu
2006-05-19  8:17 ` Jason Rumney
2006-05-19 14:08   ` Steven Wu
2006-05-19 11:33 ` Eli Zaretskii
2006-05-19 14:06   ` Steven Wu
2006-05-19 15:28     ` Eli Zaretskii
2006-05-20  3:48       ` Steven Wu
2006-05-20  7:45         ` Jason Rumney
2006-05-20  8:09           ` Steven Wu
2006-05-20  8:21             ` Jason Rumney
2006-05-20  9:03         ` Eli Zaretskii
2006-05-20 13:36           ` Steven Wu
2006-05-20 16:53             ` Eli Zaretskii
2006-05-21  0:56               ` Richard Stallman
2006-05-21  2:21                 ` Steven Wu
2006-05-21  3:34                 ` Eli Zaretskii
2006-05-22  2:38                   ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2006-05-19  8:28 djh
2006-05-19 14:20 Steven Wu

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