From: "Steven Wu" <wus@qwest.net>
Subject: CVS Emacs cygwin build problem.
Date: Thu, 18 May 2006 23:47:37 -0700 [thread overview]
Message-ID: <6CA82FF4-2828-4412-B3E5-7D1234FD2A7D@qwest.net> (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
next reply other threads:[~2006-05-19 6:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-19 6:47 Steven Wu [this message]
2006-05-19 8:17 ` CVS Emacs cygwin build problem 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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6CA82FF4-2828-4412-B3E5-7D1234FD2A7D@qwest.net \
--to=wus@qwest.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.