gettext-0.14.2 fails to emerge, due to a temporary file "elc-temp" not found. Reproducible: Always Steps to Reproduce: 1. emerge gettext 2. 3. Actual Results: failed build, see below. Expected Results: successful build. make[3]: Entering directory `/var/tmp/portage/gettext-0.14.2/work/gettext-0.14.2/gettext-tools/po' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.2/work/gettext-0.14.2/gettext-tools/po' Making all in projects make[3]: Entering directory `/var/tmp/portage/gettext-0.14.2/work/gettext-0.14.2/gettext-tools/projects' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.2/work/gettext-0.14.2/gettext-tools/projects' Making all in misc make[3]: Entering directory `/var/tmp/portage/gettext-0.14.2/work/gettext-0.14.2/gettext-tools/misc' WARNING: Warnings can be ignored. :-) if test "no" != no; then \ set x; \ list='po-mode.el po-compat.el'; for p in $list; do \ if test -f "$p"; then d=; else d="./"; fi; \ set x "$@" "$d$p"; shift; \ done; \ shift; \ EMACS="no" /bin/sh ../../config/elisp-comp "$@" || exit 1; \ else : ; fi make[4]: Entering directory `/var/tmp/portage/gettext-0.14.2/work/gettext-0.14.2/gettext-tools/misc' make[4]: Entering directory `/var/tmp/portage/gettext-0.14.2/work/gettext-0.14.2/gettext-tools/misc' WARNING: Warnings can be ignored. :-) WARNING: Warnings can be ignored. :-) if test "no" != no; then \ set x; \ list='po-mode.el po-compat.el'; for p in $list; do \ if test -f "$p"; then d=; else d="./"; fi; \ set x "$@" "$d$p"; shift; \ done; \ shift; \ EMACS="no" /bin/sh ../../config/elisp-comp "$@" || exit 1; \ else : ; fi make[4]: Leaving directory `/var/tmp/portage/gettext-0.14.2/work/gettext-0.14.2/gettext-tools/misc' if test "no" != no; then \ set x; \ list='po-mode.el po-compat.el'; for p in $list; do \ if test -f "$p"; then d=; else d="./"; fi; \ set x "$@" "$d$p"; shift; \ done; \ shift; \ EMACS="no" /bin/sh ../../config/elisp-comp "$@" || exit 1; \ else : ; fi mv: cannot stat `elc-temp': No such file or directory make[4]: *** [elc-stamp] Error 1 make[4]: Leaving directory `/var/tmp/portage/gettext-0.14.2/work/gettext-0.14.2/gettext-tools/misc' make[3]: *** [po-compat.elc] Error 2 make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.2/work/gettext-0.14.2/gettext-tools/misc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gettext-0.14.2/work/gettext-0.14.2/gettext-tools' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/gettext-0.14.2/work/gettext-0.14.2/gettext-tools' make: *** [all-recursive] Error 1 !!! ERROR: sys-devel/gettext-0.14.2 failed. !!! Function src_compile, Line 60, Exitcode 2 !!! (no error message) ---------------------------------------------------- Portage 2.0.51.19 (selinux/2004.1/x86, gcc-3.4.3, glibc-2.3.4.20050125-r0, 2.6.10-hardened-r3 i686) ================================================================= System uname: 2.6.10-hardened-r3 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 20 2005, 13:28:54)] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.9.5, 1.4_p6, 1.6.3, 1.7.9-r1, 1.8.5-r3 sys-devel/binutils: 2.15.92.0.2-r6 sys-devel/libtool: 1.5.10-r5 virtual/os-headers: 2.4.22-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -fforce-addr" CHOST="i386-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages loadpolicy nostrip sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirror.isp.net.au/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 bash-completion berkdb cpdflib crypt cups curl dba debug dvd exif fam ftp gd gdbm hardened hardenedphp imap innodb ipv6 jabber jpeg ldap mad maildir mcal mhash mmx mysql ncurses nls oggvorbis pam pcntl pcre perl pic pie png postgres python readline samba selinux session simplexml slang snmp sockets spell sqlite ssl tcpd tidy tiff tokenizer truetype usb vhosts wddx x86 xml xml2 xmlrpc zaptel zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
*** Bug 85056 has been marked as a duplicate of this bug. ***
strange but emerge gettext works on second time :(
The same here o_0
Same problem here on amd64. Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r0, 2.6.11-gentoo-r3 x86_64) ================================================================= System uname: 2.6.11-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Mar 6 2005, 16:22:42)] ccache version 2.4 [enabled] dev-lang/python: 2.3.5 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.5 sys-devel/binutils: 2.15.92.0.2-r6 sys-devel/libtool: 1.5.10-r5 virtual/os-headers: 2.6.8.1-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -pipe -O2 -fomit-frame-pointer -frename-registers" CHOST="x86_64-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/lib/mozilla/defaults/pref /usr/share/config /usr/share/cursors/xorg-x11/default /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -pipe -O2 -fomit-frame-pointer -frename-registers" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="sl_SI" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/root/portageoverlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi alsa amd64 apm arts avi berkdb bitmap-fonts cdr crypt cups curl dvd dvdr encode esd exif fam fbcon flac font-server foomaticdb fortran ftp gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jabber jp2 jpeg kde libwww lzw lzw-tiff mad mikmod motif mozilla mp3 mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png posix ppds python qt quicktime readline samba scanner sdl slang slp speex spell ssl tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales videos xml xml2 xmms xosd xpm xprint xrandr xv xvid zlib linguas_en linguas_sl" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
With MAKEOPTS=-j3 it fails on pentium4; but add "-j 1" to the emake command and it works.
Same here on amd64 and works with MAKEOPTS="-j1"
Same here. MAKEOPTS="-j1" emerge gettext and it works.
No, this is due to the lack of USE=emacs. It failed consistently for me without emacs, and worked with emacs.
Did you have emacs installed, but not in USE ?
I got this error too on my ~x86 box. Temporarily setting MAKEOPTS="-j1" (instead o f the "-j2" I normally keep it at) seems to fix it for me. I do not have Emacs installed and I have '-emacs' in my USE flags.
Created attachment 53366 [details, diff] gettext-0.14.2-fix-race.patch Seems like it is a race condition in the Makefile - can anybody try this patch?
the patch provided fixes the issue, successful ebuild.
Fixed in cvs.
I still got this bug today. It was using distcc. Without using distcc gettext compiled just fine. Maybe you want to disable distcc in the ebuild.
Right, if you use distcc, it fails with the same error as reported. The correct solution when building with distcc, is to supply MAKEOPTS="-j1" when emerging gettext. The patch given does not work in this situation.