Emergeing lyx failed at chktex because of this sandbox violation: gcc -o chktex ChkTeX.o FindErrs.o OpSys.o Resource.o Utility.o >>> Test phase [not enabled]: dev-tex/chktex-1.6.2 >>> Install chktex-1.6.2 into /var/tmp/portage/chktex-1.6.2/image/ category dev- tex /usr/bin/latex ChkTeX.tex This is TeX, Version 3.14159 (Web2C 7.4.5) kpathsea: Running mktexfmt latex.fmt running `tex -ini -jobname=latex -progname=latex latex.ini' ... This is TeX, Version 3.14159 (Web2C 7.4.5) (INITEX) ! I can't find file `latex.inilatex.ini'. <*> latex.ini Please type another input file name: ! Emergency stop. <*> latex.ini No pages of output. Transcript written on texput.log. Error: `tex -ini -jobname=latex -progname=latex latex.ini' failed ACCESS DENIED unlink: /usr/share/texmf/web2c/texput.log rm: kan inte ta bort "/usr/share/texmf/web2c/texput.log": �tkomst nekas ACCESS DENIED rename: /usr/share/texmf/web2c/texput.log mv: kan inte flytta "texput.log" till "/usr/share/texmf/web2c/texput.log": �tkom st nekas ############################################################################### fmtutil: Error! Not all formats have been built successfully. Visit the log files in directory /usr/share/texmf/web2c for details. ############################################################################### --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-dev-tex_-_chktex-1.6.2-25611.log" unlink: /usr/share/texmf/web2c/texput.log rename: /usr/share/texmf/web2c/texput.log -------------------------------------------------------------------------------- emerge info Portage 2.0.51_pre20 (gcc34-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r2 i686 AMD Athlon(tm) 64 Processor 3200+) ================================================================= System uname: 2.6.8-gentoo-r2 i686 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.7-r4 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -pipe -march=k8 -fomit-frame-pointer -ftracer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -pipe -march=k8 -fomit-frame-pointer -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo http://ds.thn.htu.se/linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/private_overlay /usr/local/bmg_gnome_current /usr/local/bmg_overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowex X aac acpi alsa apache2 apm avi berkdb bonobo bootsplash bzlib caps cddb cdr crypt cups curl dnd doc dvd encode esd evo faac fam fbcon ffmpeg foomaticdb gcj gdbm gif gimp gimpprint glade glut gmp gnome gnomedb gnutls gphoto2 gpm gtk2 gtkhtml howl icq imap imlib imlib2 jabber java jit jpeg kde ldap libg++ libwww mad mikmod mime mmap mmx mmx2 mng mono mozilla mpeg mpeg4 msn ncurses nls nptl nvidia objc offensive oggvorbis openal opengl oscar pam pdflib perl plotutils png pthreads python qt quicktime readline samba scanner sdk sdl slang spell ssl stencil-buffer svg svga tcltk tcpd tetex theora threads tiff truetype type1 uml unicode usb x86 xine xml2 xv zlib" Reproducible: Always Steps to Reproduce: 1. 2. 3.
This bug is not reproducable on my box. Which version of tetex do you have?
app-text/tetex selected: 2.0.2-r3 protected: none omitted: none
100%[==========================================================>] 257,223 543.09K/s 22:13:18 (542.27 KB/s) - "/usr/portage/distfiles/jadetex-3.12.tar.gz" sparad [257223/257223] >>> md5 src_uri ;-) jadetex-3.12.tar.gz >>> Unpacking source... >>> Unpacking jadetex-3.12.tar.gz to /var/tmp/portage/jadetex-3.12/work >>> Source unpacked. tex jadetex.ins This is TeX, Version 3.14159 (Web2C 7.4.5) kpathsea: Running mktexfmt tex.fmt running `tex -ini -jobname=tex -progname=tex bplain.ini' ... This is TeX, Version 3.14159 (Web2C 7.4.5) (INITEX) ! I can't find file `bplain.inibplain.ini'. <*> bplain.ini Please type another input file name: ! Emergency stop. <*> bplain.ini No pages of output. Transcript written on texput.log. Error: `tex -ini -jobname=tex -progname=tex bplain.ini' failed ACCESS DENIED unlink: /usr/share/texmf/web2c/texput.log rm: kan inte ta bort "/usr/share/texmf/web2c/texput.log": �tkomst nekas ACCESS DENIED rename: /usr/share/texmf/web2c/texput.log mv: kan inte flytta "texput.log" till "/usr/share/texmf/web2c/texput.log": �tkomst nekas ############################################################################### fmtutil: Error! Not all formats have been built successfully. Visit the log files in directory /usr/share/texmf/web2c for details. ############################################################################### This is a summary of all `failed' messages and warnings: `tex -ini -jobname=tex -progname=tex bplain.ini' failed warning: kpathsea: mktexpk output `This is TeX, Version 3.14159 (Web2C 7.4.5) (INITEX) ! I can't find file `bplain.inibplain.ini'. <*> bplain.ini Please type another input file name: ! Emergency stop. <*> bplain.ini No pages of output. Transcript written on texput.log.' instead of a filename. I can't find the format file `tex.fmt'! make: *** [basic] Fel 1 !!! ERROR: app-text/jadetex-3.12 failed. !!! Function src_compile, Line 23, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-app-text_-_jadetex-3.12-25936.log" unlink: /usr/share/texmf/web2c/texput.log rename: /usr/share/texmf/web2c/texput.log --------------------------------------------------------------------------------
Allright, so the problem is not with chktex, but with tetex doing *anyting*! Suddenly I saw all kinds of packages fail with this, so I have removed the tetex flag and tetex for now. If we look higher up in the error message, we can se that tetex does something strange there.. This is TeX, Version 3.14159 (Web2C 7.4.5) (INITEX) ! I can't find file `latex.inilatex.ini'. <*> latex.ini
Yup, looks so. Please unmerge all tex related programmes and run `rm -rf /usr/share/texmf` after that, and then remerge tetex. All should work fine after that...
>Yup, looks so. Please unmerge all tex related programmes >and run `rm -rf /usr/share/texmf` I did actually do just that yesterday, but I didn't think it would work directly again so I haven't emerged it back. I'll try that tonight, and close the bug if it works fine.
Did just as you said, and it happened again.. running `tex -ini -jobname=latex -progname=latex latex.ini' ... This is TeX, Version 3.14159 (Web2C 7.4.5) (INITEX) ! I can't find file `latex.inilatex.ini'. <*> latex.ini Please type another input file name: ! Emergency stop. <*> latex.ini No pages of output. Transcript written on texput.log. Error: `tex -ini -jobname=latex -progname=latex latex.ini' failed ACCESS DENIED unlink: /usr/share/texmf/web2c/texput.log rm: kan inte ta bort "/usr/share/texmf/web2c/texput.log":
Did just as you said, and it happened again.. running `tex -ini -jobname=latex -progname=latex latex.ini' ... This is TeX, Version 3.14159 (Web2C 7.4.5) (INITEX) ! I can't find file `latex.inilatex.ini'. <*> latex.ini Please type another input file name: ! Emergency stop. <*> latex.ini No pages of output. Transcript written on texput.log. Error: `tex -ini -jobname=latex -progname=latex latex.ini' failed ACCESS DENIED unlink: /usr/share/texmf/web2c/texput.log rm: kan inte ta bort "/usr/share/texmf/web2c/texput.log": Åtkomst nekas ACCESS DENIED rename: /usr/share/texmf/web2c/texput.log mv: kan inte flytta "texput.log" till "/usr/share/texmf/web2c/texput.log": Åtkomst nekas ############################################################################### fmtutil: Error! Not all formats have been built successfully. Visit the log files in directory /usr/share/texmf/web2c for details. ############################################################################### This is a summary of all `failed' messages and warnings: `tex -ini -jobname=latex -progname=latex latex.ini' failed warning: kpathsea: mktexpk output `This is TeX, Version 3.14159 (Web2C 7.4.5) (INITEX) ! I can't find file `latex.inilatex.ini'. <*> latex.ini Please type another input file name: ! Emergency stop. <*> latex.ini No pages of output. Transcript written on texput.log.' instead of a filename. I can't find the format file `latex.fmt'! make: *** [ChkTeX.dvi] Fel 1 !!! ERROR: dev-tex/chktex-1.6.2 failed. !!! Function einstall, Line 486, Exitcode 2 !!! einstall failed !!! If you need support, post the topmost build error, NOT this status message. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-dev-tex_-_chktex-1.6.2-5264.log" unlink: /usr/share/texmf/web2c/texput.log rename: /usr/share/texmf/web2c/texput.log -------------------------------------------------------------------------------- This is what I did: 1094197608: Started emerge on: Sep 03, 2004 09:46:48 1094197608: *** emerge --ask lyx 1094197619: >>> emerge (1 of 15) net-libs/libwww-5.4.0-r2 to / 1094197619: === (1 of 15) Cleaning (net-libs/libwww-5.4.0-r2::/usr/portage/net-libs/libwww/libwww-5.4.0-r2.ebuild) 1094197619: === (1 of 15) Compiling/Merging (net-libs/libwww-5.4.0-r2::/usr/portage/net-libs/libwww/libwww-5.4.0-r2.ebuild) 1094197824: === (1 of 15) Post-Build Cleaning (net-libs/libwww-5.4.0-r2::/usr/portage/net-libs/libwww/libwww-5.4.0-r2.ebuild) 1094197829: >>> AUTOCLEAN: net-libs/libwww 1094197829: --- AUTOCLEAN: Nothing unmerged. 1094197829: ::: completed emerge (1 of 15) net-libs/libwww-5.4.0-r2 to / 1094197829: >>> emerge (2 of 15) app-text/tetex-2.0.2-r3 to / 1094197829: === (2 of 15) Cleaning (app-text/tetex-2.0.2-r3::/usr/portage/app-text/tetex/tetex-2.0.2-r3.ebuild) 1094197829: === (2 of 15) Compiling/Merging (app-text/tetex-2.0.2-r3::/usr/portage/app-text/tetex/tetex-2.0.2-r3.ebuild) 1094198294: === (2 of 15) Post-Build Cleaning (app-text/tetex-2.0.2-r3::/usr/portage/app-text/tetex/tetex-2.0.2-r3.ebuild) 1094198302: >>> AUTOCLEAN: app-text/tetex 1094198302: --- AUTOCLEAN: Nothing unmerged. 1094198302: ::: completed emerge (2 of 15) app-text/tetex-2.0.2-r3 to / 1094198302: >>> emerge (3 of 15) dev-tex/latex2html-2002.2.1_pre20040108 to / 1094198302: === (3 of 15) Cleaning (dev-tex/latex2html-2002.2.1_pre20040108::/usr/portage/dev-tex/latex2html/latex2html-2002.2.1_pre20040108.ebuild) 1094198303: === (3 of 15) Compiling/Merging (dev-tex/latex2html-2002.2.1_pre20040108::/usr/portage/dev-tex/latex2html/latex2html-2002.2.1_pre20040108.ebuild) 1094198322: === (3 of 15) Post-Build Cleaning (dev-tex/latex2html-2002.2.1_pre20040108::/usr/portage/dev-tex/latex2html/latex2html-2002.2.1_pre20040108.ebuild) 1094198322: >>> AUTOCLEAN: dev-tex/latex2html 1094198323: --- AUTOCLEAN: Nothing unmerged. 1094198323: ::: completed emerge (3 of 15) dev-tex/latex2html-2002.2.1_pre20040108 to / 1094198323: >>> emerge (4 of 15) dev-tex/chktex-1.6.2 to / 1094198323: === (4 of 15) Cleaning (dev-tex/chktex-1.6.2::/usr/portage/dev-tex/chktex/chktex-1.6.2.ebuild) 1094198323: === (4 of 15) Compiling/Merging (dev-tex/chktex-1.6.2::/usr/portage/dev-tex/chktex/chktex-1.6.2.ebuild) 1094198337: *** terminating. 1094198961: Started emerge on: Sep 03, 2004 10:09:21 1094198961: *** emerge search tex 1094198969: *** terminating.
tetex use flag was enabled for the first time on my system before "emerge -a lyx".
k, I'll remove all of my tex stuff and try the same thing, and see what will happen.
Couldn't reproduce.... Sorry. I'll keep your bug in mind and if I come across any other bug that might help you I'll let you know, but I cannot do anything for you at the moment. I appreciate your cooperation. Thank you for the bug report and tests.
It seems that this is not only a problem on your machine. >>> Test phase [not enabled]: dev-tex/chktex-1.6.2 >>> Install chktex-1.6.2 into /var/tmp/portage/chktex-1.6.2/image/ category dev-tex /usr/bin/latex ChkTeX.tex This is TeX, Version 3.14159 (Web2C 7.4.5) kpathsea: Running mktexfmt latex.fmt running `tex -ini -jobname=latex -progname=latex latex.ini' ... This is TeX, Version 3.14159 (Web2C 7.4.5) (INITEX) (/usr/share/texmf/tex/latex/config/latex.ini (/usr/share/texmf/tex/latex/base/latex.ltx (/usr/share/texmf/tex/latex/config/texsys.cfg) ./texsys.aux found \@currdir set to: ./. Assuming \openin and \input have the same search path. Defining UNIX/DOS style filename parser. catcodes, registers, compatibility for TeX 2, parameters, LaTeX2e <2001/06/01> hacks, control, par, spacing, files, font encodings, lengths, ==================================== Local config file fonttext.cfg used ==================================== (/usr/share/texmf/tex/generic/config/fonttext.cfg (/usr/share/texmf/tex/latex/base/fonttext.ltx === Don't modify this file, use a .cfg file instead === (/usr/share/texmf/tex/latex/base/omlenc.def) (/usr/share/texmf/tex/latex/base/t1enc.def) (/usr/share/texmf/tex/latex/base/ot1enc.def) (/usr/share/texmf/tex/latex/base/omsenc.def) (/usr/share/texmf/tex/latex/base/t1cmr.fd) (/usr/share/texmf/tex/latex/base/ot1cmr.fd) (/usr/share/texmf/tex/latex/base/ot1cmss.fd) (/usr/share/texmf/tex/latex/base/ot1cmtt.fd))) ==================================== Local config file fontmath.cfg used ==================================== (/usr/share/texmf/tex/generic/config/fontmath.cfg (/usr/share/texmf/tex/latex/base/fontmath.ltx === Don't modify this file, use a .cfg file instead === (/usr/share/texmf/tex/latex/base/omlcmm.fd) (/usr/share/texmf/tex/latex/base/omscmsy.fd) (/usr/share/texmf/tex/latex/base/omxcmex.fd) (/usr/share/texmf/tex/latex/base/ucmr.fd))) ==================================== Local config file preload.cfg used ===================================== (/usr/share/texmf/tex/generic/config/preload.cfg (/usr/share/texmf/tex/latex/base/preload.ltx)) page nos., x-ref, environments, center, verbatim, math definitions, boxes, title, sectioning, contents, floats, footnotes, index, bibliography, output, =========================================== Local configuration file hyphen.cfg used =========================================== (/usr/share/texmf/tex/generic/babel/hyphen.cfg (/usr/share/texmf/tex/generic/hyphen/hyphen.tex) (/usr/share/texmf/tex/generic/hyphen/frhyph.tex frhyph.tex - French hyphenation patterns (V2.11) <2002/01/16>) (/usr/share/texmf/tex/generic/hyphen/dehypht.tex German Traditional Hyphenation Patterns `dehypht' Version 3.2a <1999/03/03> (Formerly known under the name `ghyph31' and `ghyphen'.)) (/usr/share/texmf/tex/generic/hyphen/dehyphn.tex New German Hyphenation Patterns `dehyphn' Rev.31 <2001-05-07> (WaS)) (/usr/share/texmf/tex/generic/hyphen/zerohyph.tex)) ================================= Applying patch file ltpatch.ltx ================================= (/usr/share/texmf/tex/latex/base/ltpatch.ltx) ) ) Beginning to dump on file latex.fmt (format=latex 2005.2.18) 4153 strings of total length 54052 43633 memory locations dumped; current usage is 144&41698 3034 multiletter control sequences \font\nullfont=nullfont \font\OMX/cmex/m/n/10=cmex10 \font\tenln=line10 \font\tenlnw=linew10 \font\tencirc=lcircle10 \font\tencircw=lcirclew10 \font\OT1/cmr/m/n/5=cmr5 \font\OT1/cmr/m/n/7=cmr7 \font\OT1/cmr/m/n/10=cmr10 \font\OML/cmm/m/it/5=cmmi5 \font\OML/cmm/m/it/7=cmmi7 \font\OML/cmm/m/it/10=cmmi10 \font\OMS/cmsy/m/n/5=cmsy5 \font\OMS/cmsy/m/n/7=cmsy7 \font\OMS/cmsy/m/n/10=cmsy10 3633 words of font info for 14 preloaded fonts 14 hyphenation exceptions Hyphenation trie of length 23210 has 711 ops out of 35111 235 for language 3 207 for language 2 88 for language 1 181 for language 0 No pages of output. Transcript written on latex.log. ACCESS DENIED unlink: /usr/share/texmf/web2c/latex.log rm: cannot remove `/usr/share/texmf/web2c/latex.log': Permission denied ACCESS DENIED rename: /usr/share/texmf/web2c/latex.log mv: cannot move `latex.log' to `/usr/share/texmf/web2c/latex.log': Permission denied ACCESS DENIED unlink: /usr/share/texmf/web2c/latex.fmt rm: cannot remove `/usr/share/texmf/web2c/latex.fmt': Permission denied ACCESS DENIED rename: /usr/share/texmf/web2c/latex.fmt mv: cannot move `latex.fmt' to `/usr/share/texmf/web2c/latex.fmt': Permission denied /usr/share/texmf/web2c/mktexupd: /usr/share/texmf/web2c/latex.fmt not a file. I can't find the format file `latex.fmt'! make: *** [ChkTeX.dvi] Error 1 !!! ERROR: dev-tex/chktex-1.6.2 failed. !!! Function einstall, Line 524, Exitcode 2 !!! einstall failed !!! If you need support, post the topmost build error, NOT this status message. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-dev-tex_-_chktex-1.6.2-13366.log" unlink: /usr/share/texmf/web2c/latex.log rename: /usr/share/texmf/web2c/latex.log unlink: /usr/share/texmf/web2c/latex.fmt rename: /usr/share/texmf/web2c/latex.fmt -------------------------------------------------------------------------------- bash-2.05b# emerge info Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 9 2005, 13:24:38)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.21-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -mmmx -m3dnow -msse -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -mmmx -m3dnow -msse -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/" LC_ALL="da_DK" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X acpi alsa apache2 arts avi bash-completion berkdb bitmap-fonts bzlib crypt cscope curl dvd encode f77 fam font-server foomaticdb fortran ftp gdbm ggi gif gpm icq imagemagick imap imlib jabber java jpeg kde libedit libg++ libwww mad mikmod mmx mmx2 motif mozilla mpeg msn mysql mysqli ncurses nls nvidia oggvorbis opengl oscar pam pcntl pdflib php png qt quicktime readline samba sdl spell sse ssl svga tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb wmf xml xml2 xmms xv zlib linguas_da" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LDFLAGS, PORTDIR_OVERLAY * app-text/tetex : [ I] 2.0.2-r5 (0)