[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Path Problem When Emacs21 Built with Cygwin

From: Yong LU
Subject: Re: Path Problem When Emacs21 Built with Cygwin
Date: Sun, 11 Nov 2001 21:33:39 +0800
User-agent: Mutt/1.2i

On Sun, Nov 11, 2001 at 11:21:50AM +0200, Eli Zaretskii wrote:
> On Sun, 11 Nov 2001, Yong LU wrote:
> > $ cygpath -w /cygdrive/u/lyongu
> > u:\lyongu
> > 
> > I think this can be used when generating the makefile. Slashes are also
> > converted to backslashes, so maybe we should quote the result.
> >From experience, you'd have hard time with GNU Make if the forward
> slashes are converted to backslashes.  Too bad cygpath doesn't have an
> option to produce file name with drive letters, but with forward
> slashes.
> However, if you can suggest changes that solve the problem using
> cygpath, perhaps we could install it.  Please keep in mind that
> whatever machinery you produce, it should be optional, since the
> versions of Make and Bash listed in nt/INSTALL evidently don't need
> any changes, and we want to continue supporting them.
> What version of GNU Make are you using, btw?  And what version of the 
> Cygwin DLL?

(partial) result of cygcheck:
......  Cygwin DLL version info:
        dll major: 1003
        dll minor: 3
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        dll malloc env: 28
        api major: 0
        api minor: 46
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        cygdrive flags: cygdrive flags
        cygdrive prefix: cygdrive prefix
        cygdrive default prefix:
        build date: Wed Sep 12 23:54:31 EDT 2001
        shared id: cygwin1S3

$ make --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i686-pc-cygwin
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

I think the cygwin path name problem can be solved by the use of relative 
path names.  I've changed the two occurrences of $CURDIR in leim/makefile 
to "." and it works.  I'm not sure if there're any other systems that 
would rely on the use of $CURDIR.

OTOH, the problem of not finding the correct pwd seems to be a very 
subtle bug.  I cannot reproduce it everytime.  But when I do, emacs
gets a wrong pwd (I've changed batch-titdic-convert to print out
the result of (pwd)):

[Please ignore a syntax error on the next line - it is intentional]
Syntax error: Unterminated quoted string
make: Entering directory `/cygdrive/u/lyongu/emacs21/emacs-21.1.50/leim'
"./../src/oo-spd/i386/emacs.exe" -batch --no-init-file --no-site-file --multibyt
e -l ./../lisp/international/titdic-cnv \
    --eval '(batch-titdic-convert t)' \
    -dir quail ./CXTERM-DIC
Directory u:/lyongu/emacs21/emacs-21.1.50/nt/
PWD is Directory u:/lyongu/emacs21/emacs-21.1.50/nt/
Targetdir is quail
Converting u:/lyongu/emacs21/emacs-21.1.50/nt/CXTERM-DIC to quail-package...
Opening input file: no such file or directory, u:/lyongu/emacs21/emacs-21.1.50/n
Signal 127
make: *** [quail/CCDOSPY.elc] Error 255
make: Leaving directory `/cygdrive/u/lyongu/emacs21/emacs-21.1.50/leim'

This could be temporarily avoided by appending all directory names with
"../leim/", until the real bug is found out.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]