See ${subject}. I will attach full build log containing tests' output. [ebuild U ] dev-vcs/mercurial-1.7 [1.4.1] USE="bash-completion test -bugzilla -emacs -gpg -tk -zsh-completion" 0 kB Reproducible: Always Portage 2.1.9.24 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r12-stable x86_64) ================================================================= System uname: Linux-2.6.34-gentoo-r12-stable-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-gentoo-2.0.1 Timestamp of tree: Thu, 16 Dec 2010 07:45:03 +0000 app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11-r1 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.3 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.4-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA dlj-1.1 PUEL cadsoft skype-eula AdobeFlash-10 AdobeFlash-10.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=core2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/bin/mygenkernel /usr/sbin/run-crons /usr/share/X11/xkb /usr/share/cairo-dock/plug-ins/wifi/wifi /usr/share/openvpn/easy-rsa /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=core2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--ask --buildpkg" FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://de-mirror.org/distro/gentoo/ ftp://mirror.netcologne.de/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,relro -Wl,-z,now" LINGUAS="en de" MAKEOPTS="-j5" PKGDIR="/var/lib/portage/binpkg" PORTAGE_COMPRESS="" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/DuPol /var/lib/layman/sping /var/lib/layman/science /var/lib/layman/sunrise /var/lib/layman/alon-barlev /usr/local/portage/g-ctan /usr/local/portage/modified /usr/local/portage/own" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="X X509 Xaw3d a52 aac aalib accessibility acl acpi alsa amd64 amr amrnb amrr amrwb apm async audacious audiofile bash-completion battery berkdb bindist bl bluetooth branding bzip2 cairo cardbus cdaudio cdda cdinstall cjk cli consolekit cracklib crypt css ctype cups curl cxx dbus devil dga directfb dri dts dv dvd dvdr eds encode evo exchange exif fam fame fbcon fbcondecor fbsplash ffmpeg flac fontforge foomaticdb fortran ftp gd gdbm gif gimp git glade glitz gmp gphoto2 gs gsm gstreamer gtk gtkhtml guile hal hddtemp hdf5 iconv icq icu idn ieee1394 imagemagick imap imlib iproute2 jack java javascript jpeg jpeg2k kerberos keyscrub kino kpathsea lame lapack laptop latex lcms libcaca libnotify libsamplerate libsexy libv4l2 libwww live lm_sensors logrotate loop-aes lzma lzo mad memlimit mikmod mime mjpeg mmx mmxext mng modules mono motif mp2 mp3 mp4 mpeg mplayer mudflap multilib musepack ncurses nls nntp nowin nptl nptlonly nsplugin ntp nuv nvidia ods ogg opengl openmp opensslcrypt pam pch pcmcia pcre pda pdf perl plotutils png posix ppds pppd print python qt3support quicktime readline rtsp ruby rubytests samba sasl schroedinger sdl server session simplexml slang sndfile soap sockets sou speex spell sse sse2 sse3 sse4.1 ssl ssse3 startup-notification stream subversion svg swat sysfs syslog system-sqlite tcpd tga theora threads tiff tordns truetype unicode usb userlocales v4l v4l2 vcd vdpau vim-syntax vim-with-x vorbis wcwidth wifi winbind wma wmf wxwindows x264 xanim xcomposite xfce xinetd xls xml xmp xorg xpm xsl xterm-color xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel mpu401" 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="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" CAMERAS="fuji 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" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS
Created attachment 257288 [details] build.log
Same for both cases: ERROR: /var/tmp/portage/dev-vcs/mercurial-1.7/work/mercurial-1.7/tests/test-mq.t output changed and returned error code -15 --- /var/tmp/portage/dev-vcs/mercurial-1.7/work/mercurial-1.7/tests/test-mq.t +++ /var/tmp/portage/dev-vcs/mercurial-1.7/work/mercurial-1.7/tests/test-mq.t.err @@ -1,1368 +1,8 @@ + + ### Abort: timeout after 180 seconds. Dirkjan: any hint about why it times out?
Maybe we should replace -j4 with the -j we extract from MAKEOPTS? This could apparently be due to running with a -j that's too high.
I'm getting timeouts with -j4 on dual core system where I normally use -j4. Maybe we should drop to -j1 entirely (ie. drop the -jX argument)? It's better to be slower but correct than faster but wrong.
(In reply to comment #4) > I'm getting timeouts with -j4 on dual core system where I normally use -j4. > Maybe we should drop to -j1 entirely (ie. drop the -jX argument)? It's better > to be slower but correct than faster but wrong. I'm getting timeouts even with -j1...
It should be possible to extract from the MAKEOPTS whatever it has for -j, using some clever shell-script? I think I've seen it before...
One way of doing it: for i in ${MAKEOPTS}; do case "${i}" in -j*|--jobs=*) our_j="${i}" ;; *) # Ignore ;; esac done Dustin: have you removed -j4 from the ebuild or from MAKEOPTS? Currently we're using -j4 regardless of your MAKEOPTS settings -- check mercurial-1.7.2.ebuild file.
(In reply to comment #7) > Dustin: have you removed -j4 from the ebuild or from MAKEOPTS? Currently we're > using -j4 regardless of your MAKEOPTS settings -- check mercurial-1.7.2.ebuild > file. I just lowered -j in my MAKEOPTS. Generally, it is a bad idea to hardcode -j greater than 1 in the ebuild, IMO. I will hardcode -j1 in the ebuild and test tomorrow.
(In reply to comment #8) > I will hardcode -j1 in the ebuild and test tomorrow. Hardcoding -j1 in the ebuild prevents the time-out. However, I ran now in bug #339670. As far as I read there, this has been fixed in portage-2.2.0_alpha8, but not sure whether this fix has been included into stable portage. Could you please check with zmedico?
(In reply to comment #9) > (In reply to comment #8) > > I will hardcode -j1 in the ebuild and test tomorrow. > Hardcoding -j1 in the ebuild prevents the time-out. However, I ran now in bug > #339670. Cool, thank you for testing this. Dirkjan: I think that keeping it safe and sticking with -j1 (or no -j option at all) is the best bet. > As far as I read there, this has been fixed in portage-2.2.0_alpha8, but not > sure whether this fix has been included into stable portage. Could you please > check with zmedico? Now it has not been integrated with <2.2.0_alpha8. Zac: could we get the fix for recursion limit with symlinks in 2.1.9.26? It affects stable dev-vcs/mercurial.
(In reply to comment #10) > Now it has not been integrated with <2.2.0_alpha8. Zac: could we get the fix > for recursion limit with symlinks in 2.1.9.26? It affects stable > dev-vcs/mercurial. Yes, it's already merged in the 2.1.9 branch and I plan to release it just after 2.1.9.25 is stabilized.
Okay. I applied the patch attached to bug #339670 to portage and with -j1, I was able to successfully emerge mercurial-1.7.
I've removed -j4 from 1.7, 1.7.1 and 1.7.2.