emacs-devel
[Top][All Lists]
Advanced

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

Re: old bootstrap error emerges again


From: Dieter Deyke
Subject: Re: old bootstrap error emerges again
Date: Sat, 18 Mar 2006 12:55:35 -0700
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (windows-nt)

Eli Zaretskii <address@hidden> writes:

>> From: Dieter Deyke <address@hidden>
>> Cc: address@hidden, address@hidden
>> Date: Sat, 18 Mar 2006 09:22:56 -0700
>>
>> I am seeing the "DOC" error too.
>> My setup: english Windows XP Pro, MinGW-3.1.0-1, cygwin tool set, no msys.
>> Logfile:
>> [...]
>> In toplevel form:
>> url/vc-dav.el:29:1:Error: Cannot open doc string file 
>> "c:/Users/deyke/emacs-build/work/etc/DOC"
>> make[1]: *** [compile-SH] Error 1
>> make[1]: Leaving directory `C:/Users/deyke/emacs-build/work/lisp'
>> make: *** [bootstrap-gmake] Error 2
>
> Thanks, this gives me something that I can work with.
>
> Here's the problem: Emacs shouldn't even look for the file named DOC,
> it should look for DOC-X.  This is because loadup.el has this
> fragment:
>
>       (if (memq system-type '(ms-dos windows-nt))
>         (setq name (expand-file-name
>                     (if (fboundp 'x-create-frame) "DOC-X" "DOC") "../etc"))
>       (setq name (concat (expand-file-name "../etc/DOC-") name))
>       (if (file-exists-p name)
>           (delete-file name))
>       (copy-file (expand-file-name "../etc/DOC") name t))
>       (Snarf-documentation (file-name-nondirectory name)))
>
> So, on Windows, since x-create-frame is bound, it calls
> Snarf-documentation with the argument "DOC-X".  Snarf-documentation
> then records this name in the variable internal-doc-file-name, and
> that name is dumped in emacs.exe.  So when byte-compiling for some
> reason calls for a doc file, Emacs should look for DOC-X.
>
> Can you see where the above breaks on your system?  In particular,
> when does Vdoc_file_name (defined in doc.c) gets assigned the file
> name which ends with "DOC", not "DOC-X"?
>
> Thanks.

I'm not sure on how to debug this. Let me start to point out that
there were 3 errors about missing DOC, but the first 2 were not fatal:

...
In toplevel form:
url/url-dav.el:36:1:Error: Cannot open doc string file 
"c:/Users/deyke/emacs-build/work/etc/DOC"
Compiling url/url-dired.el
Wrote c:/Users/deyke/emacs-build/work/lisp/url/url-dired.elc
Compiling url/url-expand.el
Wrote c:/Users/deyke/emacs-build/work/lisp/url/url-expand.elc
Compiling url/url-file.el
...
In toplevel form:
url/url-handlers.el:243:1:Error: Cannot open doc string file 
"c:/Users/deyke/emacs-build/work/etc/DOC"
Compiling url/url-history.el
Wrote c:/Users/deyke/emacs-build/work/lisp/url/url-history.elc
Compiling url/url-http.el
...

In toplevel form:
url/vc-dav.el:29:1:Error: Cannot open doc string file 
"c:/Users/deyke/emacs-build/work/etc/DOC"
make[1]: *** [compile-SH] Error 1
make[1]: Leaving directory `C:/Users/deyke/emacs-build/work/lisp'
make: *** [bootstrap-gmake] Error 2

Second, after that build stopped, a find | grep DOC came up empty, so
if anything would expect to find DOC-X, there was none to be found.

Next I probed loadup.el:

system-type --> windows-nt
(fboundp 'x-create-frame) --> t
(setq name (expand-file-name (if (fboundp 'x-create-frame) "DOC-X" "DOC") 
"../etc")) --> "c:/Users/deyke/emacs-build/etc/DOC-X"

Finally, this is my current work-aound, which seems to give me a
working emacs, although I do not know if the DOC strings are all OK:

cd work/nt
call configure.bat --with-gcc --no-debug --no-cygwin --cflags 
-IC:/Users/deyke/emacs-build/include --prefix C:/emacs
make bootstrap
REM The last command will have failed with errors, finish the job
cd /d "%basedir%\work\lib-src"
make DOC
copy DOC ..\etc\DOC
cd /d "%basedir%\work\nt"
make
cd /d "%basedir%\work\lisp"
make recompile EMACS=../src/oo-spd/i386/emacs
cd /d "%basedir%\work\nt"
make info

So, could you please guide me in what I have to do to debug this?

Thanks,
--
Dieter Deyke
mailto:address@hidden mailto:address@hidden mailto:address@hidden
Vs lbh pna ernq guvf, lbh unir jnl gbb zhpu gvzr.





reply via email to

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