Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481130 - dev-texlive/texlive-formatsextra-2013 - eplain foo.tex: !pdfTeX error: eplain (file cmr7): Font cmr7 at 72 not found
Summary: dev-texlive/texlive-formatsextra-2013 - eplain foo.tex: !pdfTeX error: eplain...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-15 07:53 UTC by Helmut Jarausch
Modified: 2013-08-28 16:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pdftex.map (pdftex_dl14.map,15.54 KB, text/plain)
2013-08-20 07:16 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2013-08-15 07:53:48 UTC
After upgrading to app-text/texlive-2013 and friends with
nice -19 emerge -auv1 --changed-use -j4 --keep-going \
`qlist -IC dev-tex/` `qlist -IC app-text/tex`

eplain (pdftex) cannot generate some fonts:

eplain Sudoku.tex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
 restricted \write18 enabled.
entering extended mode
(./Sudoku.tex
Babel <3.9f> and hyphenation patterns for loaded.
(./ETPLib.tex (/usr/share/texmf-dist/tex/generic/german/ngerman.sty
v2.5e 1998-07-08)) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <./Sud
oku_1.pdf>] [2] [3]
kpathsea: Running mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 cmr7
mktexpk: Mismatched mode ljfour and resolution 72; ignoring mode.
mktexpk: Can't guess mode for 72 dpi devices.
mktexpk: Use a config file or option to specify the mode; see:
mktexpk: http://tug.org/texinfohtml/kpathsea.html#Unable-to-generate-fonts
kpathsea: Appending font creation commands to missfont.log.
 )
!pdfTeX error: eplain (file cmr7): Font cmr7 at 72 not found
 ==> Fatal error occurred, no output PDF file produced!

What can I do to fix this? AFAIR I haven't modified any files in texlive-2012
and the same file could be processed just fine with 2012.

From  http://tug.org/texinfohtml/kpathsea.html#Unable-to-generate-fonts

2.6.5.3 Unable to generate fonts

Metafont outputs fonts in bitmap format, tuned for a particular device at a particular resolution, in order to allow for the highest-possible quality of output. Some DVI-to-whatever programs, such as Dvips, try to generate these on the fly when they are needed, but this generation may fail in several cases.

If mktexpk runs, but fails with this error:

     mktexpk: Can't guess mode for nnn dpi devices.
     mktexpk: Use a config file to specify the mode, or update me.
you need to ensure the resolution and mode match; just specifying the resolution, as in -D 360, is not enough.

You can specify the mode name with the -mode option on the Dvips command line, or in a Dvips configuration file (see Config files), such as config.ps in your document directory, ~/.dvipsrc in your home directory, or in a system directory (again named config.ps). (Other drivers use other files, naturally.)

For example, if you need 360dpi fonts, you could include this in a configuration file:

     D 360
     M lqmed
If Metafont runs, but generates fonts at the wrong resolution or for the wrong device, most likely mktexpk's built-in guess for the mode is wrong, and you should override it as above.





emerge --info app-text/texlive
Portage 2.2.0_alpha194_p2 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.11.0-rc5 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.11.0-rc5-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-2.2
KiB Mem:     7908040 total,   1426180 free
KiB Swap:    1048572 total,   1020084 free
Timestamp of tree: Thu, 15 Aug 2013 05:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r1, 3.3.3_pre20130714::progress
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.4, 4.7.3, 4.8.1, 4.9.0_pre9999::local
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo local sunrise
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -march=native -O2 -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/lib/hsqldb /var/lib/neatx/home"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mtune=native -march=native -O2 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LANG="en_US.iso88591"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/sunrise"
SYNC="rsync://rsync.informatik.RWTH-Aachen.de/gentoo-portage"
USE="3dnow 3dnowext 3dnowprefetch X a52 aac acl acpi alsa amd64 avahi berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emacs emboss encode exif fam ffmpeg fftw firefox flac fortran fuse gdbm gfortran gif gimp gnome gpm gtk gtk2 iconv ipv6 jpeg kde lapack lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp openrc pam pango pcre pdf png policykit ppds qt qt3support qt4 readline sdl session smp spell sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg tcl tcpd threads tiff tk truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xulrunner xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="radeonhd radeon fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

app-text/texlive-2013 was built with the following:
USE="X detex dvipdfm extra graphics (multilib) png pstricks publishers science tex4ht truetype xetex xindy xml -cjk -context -dvi2tty -epspdf -games -humanities -jadetex -luatex -metapost -music -omega -pdfannotextractor -texi2html" ABI_X86="64" LINGUAS="de en -af -ar -as -bg -bn -br -ca -cs -cy -da -el -en_GB -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -kn -ko -la -lo -lt -lv -ml -mn -mr -nb -nl -nn -no -or -pa -pl -pt -rm -ro -ru -sa_IN -sco -sk -sl -sq -sr -sv -ta -te -th -tk -tr -uk -vi -zh"


Thanks for looking into it,
Helmut
Comment 1 Alexis Ballier gentoo-dev 2013-08-15 17:04:14 UTC
not sure what's changed on that side; please attach a sample .tex file that triggers the error
Comment 2 Helmut Jarausch 2013-08-19 07:58:36 UTC
(In reply to Alexis Ballier from comment #1)
> not sure what's changed on that side; please attach a sample .tex file that
> triggers the error

It's triggered by even the simplest example like

cat >PDF_Bug.tex <<\EOF
\pdfoutput=1 % <<<<<<<<<<< comment if dvi output is desired
% \pdfcompresslevel=9
% \pdfpagewidth=21.0truecm
% \pdfpageheight=29.7truecm
\noindent
Hello World
\vfill\eject\end
EOF

Running
eplain PDF_Bug.tex

gives
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
 restricted \write18 enabled.
entering extended mode
(./PDF_Bug.tex
Babel <3.9f> and hyphenation patterns for loaded.
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
kpathsea: Running mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 cmr10
mktexpk: Mismatched mode ljfour and resolution 72; ignoring mode.
mktexpk: Can't guess mode for 72 dpi devices.
mktexpk: Use a config file or option to specify the mode; see:
mktexpk: http://tug.org/texinfohtml/kpathsea.html#Unable-to-generate-fonts
kpathsea: Appending font creation commands to missfont.log.
 )
!pdfTeX error: eplain (file cmr10): Font cmr10 at 72 not found
 ==> Fatal error occurred, no output PDF file produced!

Commenting out the first line
% \pdfoutput=1
does work as expected.

Many thanks for looking into it,
Helmut.
Comment 3 Alexis Ballier gentoo-dev 2013-08-19 12:10:15 UTC
I get this log:

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=eplain 2013.7.7)  19 AUG 2013 08:05
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**PDF_Bug.tex
(./PDF_Bug.tex
Babel <3.9f> and hyphenation patterns for loaded.
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] )</usr/share/texmf-dist/
fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on PDF_Bug.pdf (1 page, 12014 bytes).
PDF statistics:
 10 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)



that cmr10.pfb belongs to texlive-basic-2013.

what texlive packages do you have installed ? can you attach your pdftex.map file ( /var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map ) ? does running 'updmap-sys' as root helps ? does the modification time of your pdftex.map file change?
Comment 4 Helmut Jarausch 2013-08-20 07:14:51 UTC
(In reply to Alexis Ballier from comment #3)
> I get this log:
> 
> This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=eplain
> 2013.7.7)  19 AUG 2013 08:05
> entering extended mode
>  restricted \write18 enabled.
>  %&-line parsing enabled.
> **PDF_Bug.tex
> (./PDF_Bug.tex
> Babel <3.9f> and hyphenation patterns for loaded.
> [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
> )</usr/share/texmf-dist/
> fonts/type1/public/amsfonts/cm/cmr10.pfb>
> Output written on PDF_Bug.pdf (1 page, 12014 bytes).
> PDF statistics:
>  10 PDF objects out of 1000 (max. 8388607)
>  0 named destinations out of 1000 (max. 500000)
>  1 words of extra memory for PDF output out of 10000 (max. 10000000)
> 
> 
> 
> that cmr10.pfb belongs to texlive-basic-2013.
> 
> what texlive packages do you have installed ? can you attach your pdftex.map
> file ( /var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map ) ? does running
> 'updmap-sys' as root helps ? does the modification time of your pdftex.map
> file change?

I have run updmap-sys which shows
updmap is using the following updmap.cfg files (in precedence order):
  /etc/texmf/web2c/updmap.cfg
updmap is using the following updmap.cfg file for writing changes:
  //etc/texmf/web2c/updmap.cfg
dvips output dir: "//var/lib/texmf/fonts/map/dvips/updmap"
pdftex output dir: "//var/lib/texmf/fonts/map/pdftex/updmap"
dvipdfmx output dir: "//var/lib/texmf/fonts/map/dvipdfmx/updmap"
pxdvi output dir: "//var/lib/texmf/fonts/map/pxdvi/updmap"
updmap: generated map uptex-noEmbed.map (from uptex-@kanjiEmbed@@kanjiVariant@.map) does not exists, not activating it!
updmap: generated map otf-noEmbed.map (from otf-@kanjiEmbed@.map) does not exists, not activating it!
updmap: generated map otf-up-noEmbed.map (from otf-up-@kanjiEmbed@.map) does not exists, not activating it!
updmap: generated map ptex-noEmbed.map (from ptex-@kanjiEmbed@@kanjiVariant@.map) does not exists, not activating it!

ERROR:  The following map file(s) couldn't be found:
        morisawa.map (in /etc/texmf/web2c/updmap.cfg)
        otf-cktx.map (in /etc/texmf/web2c/updmap.cfg)

        Did you run mktexlsr?

        You can disable non-existent map entries using the option
          --syncwithtrees.

It doesn't change /var/lib/texmf/fonts/map/pdftex/updmap/pdftex_dl14.map
which is symlinked to /var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map
and it doesn't fix the problem.
I have also run mktexlsr and updmap-sys --syncwithtrees, but this didn't help
either.
Many thanks,
Helmut.

P.S. I have discovered that texlive2013 (and friends) works just fine
on a different but very similar Gentoo machine. I'll have to compare these
two machines step by step to locate the problem.
Comment 5 Helmut Jarausch 2013-08-20 07:16:51 UTC
Created attachment 356466 [details]
pdftex.map
Comment 6 Alexis Ballier gentoo-dev 2013-08-27 16:26:36 UTC
should be fixed in texlive-core-2013-r1, please test!
Comment 7 Helmut Jarausch 2013-08-28 16:28:59 UTC
(In reply to Alexis Ballier from comment #6)
> should be fixed in texlive-core-2013-r1, please test!

Yes! Many thanks!