Emerging the updated groff failed 3 out of 4 times: - it failed the first time, when resuming an emerge -avuDN world - it succeeded the second time - it failed the 3rd (when resuming an emerge -av1e system) - and failed the 4th time (on emerge -av1 groff) Reproducible: Sometimes Steps to Reproduce: 1. emerge groff among other packages and abort? (I'm not sure if resuming an emerge is part of the problem.) 2. emerge -1 groff Actual Results: The following error appears: Making groff_mom.n from groff_mom.man GROFF_COMMAND_PREFIX= GROFF_BIN_PATH="`echo /var/tmp/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/src/roff/groff /var/tmp/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/src/roff/troff /var/tmp/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/src/devices/grops /var/tmp/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/src/devices/gropdf | sed -e 's| *|:|g'`" PDFMOM_BIN_PATH="/var/tmp/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/src/devices/gropdf" /var/tmp/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/src/devices/gropdf/pdfmom -F/var/tmp/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/font -F/var/tmp/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/font -M/var/tmp/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/tmac -M/var/tmp/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/tmac -M. examples/letter.mom >examples/letter.pdf /bin/sh: /var/tmp/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/src/devices/gropdf/pdfmom: No such file or directory Expected Results: groff successfully emerges # emerge --info '=sys-apps/groff-1.22.2::gentoo' Portage 2.2.1 (hardened/linux/amd64/selinux, gcc-4.7.3, glibc-2.15-r3, 3.10.1-hardened-r1-2013Sep08 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.10.1-hardened-r1-2013Sep08-x86_64-Intel-R-_Core-TM-2_Duo_CPU_U9400_@_1.40GHz-with-gentoo-2.2 KiB Mem: 8059056 total, 5045628 free KiB Swap: 8388604 total, 8388604 free Timestamp of tree: Mon, 07 Oct 2013 00:45:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p45 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.5-r2, 3.2.5-r2 dev-util/cmake: 2.8.10.2-r2 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.10.3, 1.11.6, 1.13.4 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.7.3-r1 sys-devel/gcc-config: 1.7.3 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.15-r3 Repositories: gentoo x-portage ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA @BINARY-REDISTRIBUTABLE AdobeFlash-11.x Google-TOS PUEL" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe -msse4.1" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/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="-march=core2 -O2 -pipe -msse4.1" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.netnitco.net http://gentoo.mirrors.tds.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="--jobs=4 --load-average=2" 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" SYNC="" USE="X aac alsa amd64 berkdb bluetooth bzip2 cairo caps cjk cli consolekit cracklib crypt cups cxx dbus dri dvd exif ffmpeg flac gdbm gnutls gstreamer hal hardened iconv ipv6 jpeg justify laptop lcms mmx modules mp3 mudflap multilib ncurses nls nptl ogg open_perms opengl openmp pam pax_kernel pcre png ppds readline sdl selinux session spell sse sse2 ssl ssse3 system-sqlite tcpd theora threads truetype unicode urandom v4l vaapi vorbis xinerama xv xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel usb-audio" 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="evdev synaptics" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby20 ruby19" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= sys-apps/groff-1.22.2 was built with the following: USE="X (multilib) (selinux) -examples" ABI_X86="64" LINGUAS="-ja" emerge -pqv '=sys-apps/groff-1.22.2::gentoo' [ebuild R ] sys-apps/groff-1.22.2 USE="X -examples" LINGUAS="-ja"
Created attachment 360376 [details] The build log from the last failed emerge groff attempt
Created attachment 360378 [details] The build log from the successful emerge (for comparison)
Confirmed here ~amd64 GROFF_COMMAND_PREFIX= GROFF_BIN_PATH="`echo /mnt/h/portage-tmpdir/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/src/roff/groff /mnt/h/portage-tmpdir/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/src/roff/troff /mnt/h/portage-tmpdir/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/src/devices/grops /mnt/h/portage-tmpdir/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/src/devices/gropdf | sed -e 's| *|:|g'`" PDFMOM_BIN_PATH="/mnt/h/portage-tmpdir/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/src/devices/gropdf" /mnt/h/portage-tmpdir/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/src/devices/gropdf/pdfmom -F/mnt/h/portage-tmpdir/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/font -F/mnt/h/portage-tmpdir/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/font -M/mnt/h/portage-tmpdir/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/tmac -M/mnt/h/portage-tmpdir/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/tmac -M. examples/letter.mom >examples/letter.pdf /bin/sh: /mnt/h/portage-tmpdir/portage/sys-apps/groff-1.22.2/work/groff-1.22.2/src/devices/gropdf/pdfmom: No such file or directory make[2]: *** [examples/letter.pdf] Error 127
(parallel make?) indeed! With /etc/portage/package.env/groff sys-apps/groff j1.conf I get a clean build. I should have thought of paralle make problems without your hint; but thanks for the hint. PS /etc/portage/env/j1.conf MAKEOPTS="--jobs=1" thank you, neil bothwick
Seems likely that parallel make may be contributing to this problem. 2 out of 2 emerge attempts using MAKEOPTS="--jobs=1" have been successful.
Created attachment 360522 [details] failed build.log Reproduced here with MAKEOPTS="-j8 -l5.0".
should be all set now in the tree; thanks for the report! Commit message: Fix parallel build with gropdf http://sources.gentoo.org/sys-apps/groff/files/groff-1.22.2-parallel-mom.patch?rev=1.1 http://sources.gentoo.org/sys-apps/groff/groff-1.22.2.ebuild?r1=1.10&r2=1.11
The groff-1.22.2-parallel-mom.patch, committed upstream as 290eaaac6cfc, broke installation of the two man pages in the mom directory. Upstream fixed that with commit 681919b36d47. So that commit should be added to the ebuild as another patch.
(In reply to James Cloos from comment #8) > The groff-1.22.2-parallel-mom.patch, committed upstream as 290eaaac6cfc, > broke installation of the two man pages in the mom directory. Thank you, James. Bug 516732 has been opened to track the missing man pages, so further discussion should probably go there.