[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)
(/usr/local/texlive/texmf-dist/tex/plain/base/plain.tex
Preloading the plain format: codes, registers, parameters, fonts, more
fonts,
macros, math definitions, output routines, hyphenation
(/usr/local/texlive/texmf/tex/generic/hyphen/hyphen.tex))
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\nullfont=nullfont
\font\tenrm=cmr10
\font\preloaded=cmr9
\font\preloaded=cmr8
\font\sevenrm=cmr7
\font\preloaded=cmr6
\font\fiverm=cmr5
\font\teni=cmmi10
\font\preloaded=cmmi9
\font\preloaded=cmmi8
\font\seveni=cmmi7
\font\preloaded=cmmi6
\font\fivei=cmmi5
\font\tensy=cmsy10
\font\preloaded=cmsy9
\font\preloaded=cmsy8
\font\sevensy=cmsy7
\font\preloaded=cmsy6
\font\fivesy=cmsy5
\font\tenex=cmex10
\font\preloaded=cmss10
\font\preloaded=cmssq8
\font\preloaded=cmssi10
\font\preloaded=cmssqi8
\font\tenbf=cmbx10
\font\preloaded=cmbx9
\font\preloaded=cmbx8
\font\sevenbf=cmbx7
\font\preloaded=cmbx6
\font\fivebf=cmbx5
\font\tentt=cmtt10
\font\preloaded=cmtt9
\font\preloaded=cmtt8
\font\preloaded=cmsltt10
\font\tensl=cmsl10
\font\preloaded=cmsl9
\font\preloaded=cmsl8
\font\tenit=cmti10
\font\preloaded=cmti9
\font\preloaded=cmti8
\font\preloaded=cmti7
\font\preloaded=cmu10
\font\preloaded=cmmib10
\font\preloaded=cmbsy10
\font\preloaded=cmcsc10
\font\preloaded=cmssbx10
\font\preloaded=cmdunh10
\font\preloaded=cmr7 at 14.51799pt
\font\preloaded=cmtt10 at 14.4pt
\font\preloaded=cmssbx10 at 14.4pt
\font\preloaded=manfnt
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
\out...
<output> {\plainoutput
                       }
<to be read again>
                   \end
l.7 \bye

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

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

Ciao,
Angelo.


More information about the tlbuild mailing list