[tex-k] Metafont on Solaris: putbyte(255) failed
hanche at math.ntnu.no
Fri Aug 27 19:43:02 CEST 2004
; truss -o mf.truss mf
This is METAFONT, Version 2.7182 (Web2C 7.4.5)
**\mode:=ljfour; mag:=1; input mathx10;
[... omitted various normal-looking output ...]
   )mf: fatal: putbyte(255) failed.
This is on Sparc Solaris 8 (SunOS 5.8), teTeX 2.0.2. METAFONT has no
problem building other fonts on this machine, or building this font on
FreeBSD machines (same version of teTeX, and identical metafont
sources - I checked).
Hmm. From a look at the definition of putbyte in web2c/cpascal.h, it
looks like this must have resulted from putc() returning EOF.
So it could look like a write() failed? Indeed, there is a truncated
version of mathx10.tfm there, 992 bytes long instead of the 1588 bytes
it should have been. There is also a truncated gf file. But the
truss output indicates no failed write (or any other system call that
went fatally wrong), so the problem seems to be internal to the
program, and the reason these files are truncated is just because the
run did not finish.
Any ideas what may have gone wrong?
Maybe I need to recompile with optimization turned down?
More information about the tex-k