shadow-4.0.5 fails to compile on amd64 with gcc 3.4 with the following error: make[2]: Leaving directory `/var/tmp/portage/shadow-4.0.5/work/shadow-4.0.5/src' Making all in contrib make[2]: Entering directory `/var/tmp/portage/shadow-4.0.5/work/shadow-4.0.5/contrib' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/portage/shadow-4.0.5/work/shadow-4.0.5/contrib' Making all in doc make[2]: Entering directory `/var/tmp/portage/shadow-4.0.5/work/shadow-4.0.5/doc' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/portage/shadow-4.0.5/work/shadow-4.0.5/doc' Making all in etc make[2]: Entering directory `/var/tmp/portage/shadow-4.0.5/work/shadow-4.0.5/etc' Making all in pam.d make[3]: Entering directory `/var/tmp/portage/shadow-4.0.5/work/shadow-4.0.5/etc/pam.d' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/shadow-4.0.5/work/shadow-4.0.5/etc/pam.d' make[3]: Entering directory `/var/tmp/portage/shadow-4.0.5/work/shadow-4.0.5/etc' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/var/tmp/portage/shadow-4.0.5/work/shadow-4.0.5/etc' make[2]: Leaving directory `/var/tmp/portage/shadow-4.0.5/work/shadow-4.0.5/etc' make[2]: Entering directory `/var/tmp/portage/shadow-4.0.5/work/shadow-4.0.5' make[2]: Leaving directory `/var/tmp/portage/shadow-4.0.5/work/shadow-4.0.5' make[1]: Leaving directory `/var/tmp/portage/shadow-4.0.5/work/shadow-4.0.5' >>> Test phase [not enabled]: sys-apps/shadow-4.0.5 touch: cannot touch `.tested': Permission denied !!! ERROR: sys-apps/shadow-4.0.5 failed. !!! Function dyn_test, Line 940, Exitcode 1 !!! Failed to 'touch .tested' in /var/tmp/portage/shadow-4.0.5 !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: emerge info: Gentoo Base System version 1.4.16 Portage 2.0.51-r2 (default-linux/amd64/2004.3, gcc-3.4.2, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1-rf17 x86_64) ================================================================= System uname: 2.6.9-gentoo-r1-rf17 x86_64 4 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-g -march=k8 -mtune=k8 -O3 -pipe -fomit-frame-pointer -fstack-protector" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /home /opt/zetagrid /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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/mozilla/defaults/pref /usr/share/config /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/bind /var/freenet /var/qmail/control /var/www" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-g -march=k8 -mtune=k8 -O3 -pipe -fomit-frame-pointer -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg candy ccache distlocks nostrip sandbox userpriv usersandbox" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="amd64 X aalib acpi alsa apache2 arts berkdb bitmap-fonts bonobo canna cdr crypt cups debug divx4linux dvd esd ethereal evo f77 fam fbcon flac foomaticdb gd gdbm gif gimpprint glut gnome gpm gstreamer gtk gtkhtml guile imagemagick imap imlib innodb ipv6 jack jp2 jpeg kde kerberos libwww lzw lzw-tiff mad maildir mikmod motifmozilla multilib mysql ncurses nls nptl ntlm oav oggvorbis opengl oss pam pda pdflib perl php png postgres python qt readline ruby samba sasl sdl slang speex ssl tcltk tcpd tetex theora tiff truetype usb userlocales wmfxml xml2 xmms xpm xrandr xv zlib"
workaround: remove 'userpriv' and 'usersandbox' (you can leave 'sandbox') from FEATURES
*** Bug 70434 has been marked as a duplicate of this bug. ***
This also occurs on x86 with usersandbox and userpriv, its not just an amd64 bug
*** Bug 72627 has been marked as a duplicate of this bug. ***
*** Bug 76599 has been marked as a duplicate of this bug. ***
The cause is an old .tested file left behind from a previous emerge with ownership root:root. The clean phase was missing both the .tested and .packaged files. Those will be cleaned from now on as well as one unnecessary empty directory (temp) and the whole scratch directory as well if it is empty.
Fixed on or before 2.0.51.22-r1
Looking through the batch of bugs, I'm not sure that some of these are actually fixed in stable. Others, the requirements have possibly changed after the initial fix was committed. If you think this bug has been closed incorrectly, please reopen or ask that it be reopened.