Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466912 - dev-texlive/texlive-basic-2012 does not compile
Summary: dev-texlive/texlive-basic-2012 does not compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
: 470924 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-23 18:17 UTC by Jan Hrabe
Modified: 2015-07-16 14:05 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Hrabe 2013-04-23 18:17:08 UTC
...

###############################################################################
fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
  /var/tmp/portage/dev-texlive/texlive-basic-2012/work/texmf-var/web2c
for details.
###############################################################################

This is a summary of all `failed' messages:
`luatex -ini  -jobname=dviluatex -progname=dviluatex dviluatex.ini' failed
`luatex -ini  -jobname=luatex -progname=luatex luatex.ini' failed
 * ERROR: dev-texlive/texlive-basic-2012 failed (compile phase):
 *   failed to build format texmf/fmtutil/format.texlive-basic.cnf
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 2178:  Called texlive-module_src_compile
 *   environment, line 2817:  Called die
 * The specific snippet of code:
 *               VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var" env -u TEXINPUTS fmtutil --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all || die "failed to build format ${i}";

=========

emerge --info '=dev-texlive/texlive-basic-2012' 

Portage 2.1.11.55 (default/linux/x86/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.7.10-gentoo-i686-Intel-R-_Xeon-R-_CPU_E5345_@_2.33GHz-with-gentoo-2.2
KiB Mem:    16629256 total,  14851440 free
KiB Swap:   15631240 total,  15631240 free
Timestamp of tree: Tue, 23 Apr 2013 17:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs candy ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi afs alsa berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emacs emboss encode exif fam firefox flac foomaticdb fortran gcj gdbm gif gpm gtk iconv imagemagick jpeg kerberos latex lcms libnotify lock mad mng modules mp3 mp4 mpeg mudflap ncurses nis nls nptl nvidia ogg opengl openmp pam pango pcre pdf pic png policykit ppds qt3support qt4 readline sasl sdl session spell ssl startup-notification svg tcpd thunar tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 x86 xcb xml xscreensaver xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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" 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="evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau vesa" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

==============

emerge -pqv '=dev-texlive/texlive-basic-2012'

[ebuild     U ] dev-texlive/texlive-basic-2012 [2011-r1] USE="-doc -source"
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-24 06:44:45 UTC
I am having the same issue today.
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-24 07:24:25 UTC
scarabeus@bugaboo: ~ $ luatex -ini  -jobname=dviluatex -progname=dviluatex dviluatex.ini
luatex: Symbol `kpse_def_inst' has different size in shared object, consider re-linking
FontForge does not support your encoding (utf8), it will pretend the local encoding is latin1
Neoprávněný přístup do paměti (SIGSEGV)
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-24 07:32:21 UTC
There is discussion about this on -dev ml http://www.gossamer-threads.com/lists/gentoo/dev/257885.

But sadly it does not resolve the issue.

Another attempt to fix the problem was to recompile lua and luatex in this order and the problem disappeared.

So maybe there is some bug with interaction between the bundled fontforge in luatex, dunno.
Comment 4 Stefano 2013-04-24 12:30:51 UTC
emerge -1 luatex solved the issue for me (was suggested in a bug marked as a duplicate of this one)
Comment 5 Ivan Boldyrev 2013-04-24 12:37:29 UTC
Same for me, emerge -1 luatex.
Comment 6 Alexis Ballier gentoo-dev 2013-04-24 13:57:27 UTC
(In reply to comment #2)
> scarabeus@bugaboo: ~ $ luatex -ini  -jobname=dviluatex -progname=dviluatex
> dviluatex.ini
> luatex: Symbol `kpse_def_inst' has different size in shared object, consider
> re-linking

that's the 2nd bug like that (see bug #466740 ), that's weird it never showed up before; updating kpathsea breaks sizeof(kpse_def_inst), I'm not sure what to do yet.
Comment 7 Jan Hrabe 2013-04-24 14:26:14 UTC
Interestingly, this bug did not show up on my 64-bit machine with an almost identical setup to the x86 one.
Comment 8 Alexis Ballier gentoo-dev 2013-04-25 12:33:48 UTC
(In reply to comment #7)

really weird, and even more:
diff -u texlive-20110705-source/texk/kpathsea/types.h texlive-20120701-source/texk/kpathsea/types.h

(where  struct kpathsea_instance, ie, kpse_def_inst is defined)
does not show up anything that could break the size of this struct...
Comment 9 Alexis Ballier gentoo-dev 2013-04-25 12:35:37 UTC
if it affects only 32bit systems this could be the return of largefile support hell though...
Comment 10 Daniel Arvesen 2013-04-28 19:18:03 UTC
emerge -1 luatex fixed it for me as well on my x86 laptop.

I did not run into this issue on my amd64 desktop.
Comment 11 Alexis Ballier gentoo-dev 2013-05-17 17:57:55 UTC
anyone hitting this bug could tell me the dates when they installed dev-libs/kpathsea ? and if downgrading kpathsea to 6.0.1_p20110705, rebuilding luatex, and then updating kpathsea to 6.1.0_p20120701 makes the bug appear again.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-24 16:11:40 UTC
*** Bug 470924 has been marked as a duplicate of this bug. ***
Comment 13 Sumit Khanna 2013-05-26 22:08:12 UTC
I've had this same problem, but it's on an 64-bit system. "emerge -1 luatex" fixed it for me as well. I made before and after tar files for the luatex binaries (too large to attach to the bugzilla; links provided):

http://penguindreams.org/files/gentoo/luatex-segfault.tar.bz2

http://penguindreams.org/files/gentoo/luatex-rebuilt.tar.bz2
Comment 14 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-06-23 04:09:52 UTC
(In reply to Alexis Ballier from comment #11)
> anyone hitting this bug could tell me the dates when they installed
> dev-libs/kpathsea ?

Tue Sep 18 17:28:06 2012 >>> dev-libs/kpathsea-6.0.1_p20110705
Sun Sep 30 16:10:31 2012 >>> dev-libs/kpathsea-6.0.1_p20110705
Fri Oct 12 20:04:09 2012 >>> dev-libs/kpathsea-6.0.1_p20110705
Mon Dec  3 18:00:04 2012 >>> dev-libs/kpathsea-6.0.1_p20110705
Thu Mar 14 06:15:23 2013 >>> dev-libs/kpathsea-6.0.1_p20110705
Thu Jun 20 17:24:15 2013 >>> dev-libs/kpathsea-6.1.0_p20120701

I confirm that rebuilding luatex after kpathsea is a workaround for this bug.

> and if downgrading kpathsea to 6.0.1_p20110705,
> rebuilding luatex, and then updating kpathsea to 6.1.0_p20120701 makes the
> bug appear again.

Yes, that makes the bug reliably appear again.
Comment 15 Sumit Khanna 2013-06-23 22:00:22 UTC
grep kpathsea /var/log/emerge.log | grep emerge
1352160485:  >>> emerge (1 of 29) dev-libs/kpathsea-6.0.1_p20110705 to /
1352161059:  ::: completed emerge (1 of 29) dev-libs/kpathsea-6.0.1_p20110705 to /
1366892901:  >>> emerge (3 of 71) dev-libs/kpathsea-6.1.0_p20120701 to /
1366898623:  ::: completed emerge (3 of 71) dev-libs/kpathsea-6.1.0_p20120701 to /

So converted from timestamps:

Nov / 05 / 12 @ 6:08:05pm EST -> kpathsea-6.0.1_p20110705
Apr / 25 / 13 @ 7:28:21am EST -> kpathsea-6.1.0_p20120701
Comment 16 John L. Poole 2013-07-25 14:13:41 UTC
I had the same problem, was about to file a bug and found this bug.
My problem was solved with:
  emerge -1 luatex
and  dev-texlive/texlive-basic successfully installed.
Comment 17 Vasiliy 2014-01-20 22:20:56 UTC
Same issue on x86_64. emerge -1 luatex didn't help.
Comment 18 Allan Gottlieb 2014-02-08 20:12:55 UTC
(In reply to Vasiliy from comment #17)
> Same issue on x86_64. emerge -1 luatex didn't help.

emerge -1 luatex   wasn't enough for me either.
But I read another bug and removing /etc/texmf
(together with emerge -= luatex) fixed it for me

Also x86_64.
Comment 19 Alexis Ballier gentoo-dev 2015-07-16 14:05:18 UTC
this should be fixed with texlive 2014/2015