[tlbuild] kpsewhich problem [Cygwin]

Angelo Graziosi angelo.graziosi at alice.it
Fri Dec 18 10:23:27 CET 2009

Il 18/12/2009 2.37, Akira Kakuto ha scritto:
> Hi Angelo,
>> It hangs, no output
>>> Can you run kpsewhich under a debugger and see what it's doing?
>> I am afraid but I haven't much experience using GDB. :-(
>> Besides this, I do not know which arguments it needs ('./kpsewhich' says
>> "Missing argument. Try `kpsewhich --help' for more information."). and
>> it is stripped. Sorry!
> It is quite probable that my change in Kpathsea
> to restrict writing files is doing bad things on cygwin,
> since I'm not familiar with cygwin.
> Does pdftex -ini plain \\dump run or crash?

It seems to work:

$ pdftex -ini plain \\dump
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (INITEX)
Preloading the plain format: codes, registers, parameters, fonts, more
macros, math definitions, output routines, hyphenation
Beginning to dump on file plain.fmt
 (format=plain 2009.12.18)
2722 strings of total length 40267
4997 memory locations dumped; current usage is 116&4878
1062 multiletter control sequences
\font\preloaded=cmr7 at 14.51799pt
\font\preloaded=cmtt10 at 14.4pt
\font\preloaded=cmssbx10 at 14.4pt
14787 words of font info for 50 preloaded fonts
14 hyphenation exceptions
Hyphenation trie of length 6075 has 181 ops out of 35111
  181 for language 0
0 words of pdfTeX memory
0 indirect objects
No pages of output.
Transcript written on plain.log.

> If it is ok, then try
> pdftex --fmt=plain test
> %
> % test.tex
> %
> \openout1=foo.bat
> \write1{a}
> \closeout1
> \bye
> If it stops with an error, it is ok.

Error here:

$ pdftex --fmt=plain test
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
(./test.tex [1
foo.bat: Forbidden to open for writing

! I can't write on file `foo.bat'.
\plainoutput ...headline \pagebody \makefootline }
                                                  \advancepageno \ifnum
<output> {\plainoutput
<to be read again>
l.7 \bye

(Press Enter to retry, or Control-D to exit; default file extension is
Please type another output file name:

'bat' file should not be used: you should think Cygwin as a 'linux' system.


More information about the tlbuild mailing list