tank ~ $ sudo emerge gcc glibc -pv These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] sys-devel/gcc-3.3.2-r7 [3.3.2-r2] +X -bootstrap* -build -debug -gcj (-java) -multilib +nls -static 317 kB [ebuild U ] sys-libs/glibc-2.3.4.20040619-r2 [2.3.2-r11] -build -debug -erandom -hardened -makecheck -multilib -n32 -n64 -nptl -pic -userlocales 2,471 kB Total size of downloads: 2,788 kB (chroot) 0 tank ~ $ sudo emerge gcc glibc Calculating dependencies ...done! >>> emerge (1 of 2) sys-devel/gcc-3.3.2-r7 to / ~ia64 >>> Downloading http://kant.zk3.dec.com/gentoo/mirror/sources/distfiles/gcc-3.3.2-branch-update-20040119.patch.bz2 --14:07:37-- http://kant.zk3.dec.com/gentoo/mirror/sources/distfiles/gcc-3.3.2-branch-update-20040119.patch.bz2 => `/usr/portage/distfiles/gcc-3.3.2-branch-update-20040119.patch.bz2' Resolving kant.zk3.dec.com... 16.140.32.128 Connecting to kant.zk3.dec.com[16.140.32.128]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 299,556 [text/plain] 100%[================================================================================================================================>] 299,556 777.04K/s 14:07:37 (775.80 KB/s) - `/usr/portage/distfiles/gcc-3.3.2-branch-update-20040119.patch.bz2' saved [299556/299556] >>> Downloading http://kant.zk3.dec.com/gentoo/mirror/sources/distfiles/protector-3.3-7.tar.gz --14:07:37-- http://kant.zk3.dec.com/gentoo/mirror/sources/distfiles/protector-3.3-7.tar.gz => `/usr/portage/distfiles/protector-3.3-7.tar.gz' Resolving kant.zk3.dec.com... 16.140.32.128 Connecting to kant.zk3.dec.com[16.140.32.128]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 25,068 [application/x-tar] 100%[================================================================================================================================>] 25,068 --.--K/s 14:07:37 (945.37 KB/s) - `/usr/portage/distfiles/protector-3.3-7.tar.gz' saved [25068/25068] >>> md5 src_uri ;-) gcc-3.3.2.tar.bz2 >>> md5 src_uri ;-) gcc-3.3.2-patches-1.0.tar.bz2 >>> md5 src_uri ;-) gcc-3.3.2-branch-update-20040119.patch.bz2 >>> md5 src_uri ;-) protector-3.3-7.tar.gz >>> md5 src_uri ;-) gcc-3.3.2-manpages.tar.bz2 ~ia64 tank tmp # tank tmp # tank tmp # tank tmp # ps --forest PID TTY TIME CMD 16963 pts/2 00:00:01 emerge 17013 pts/2 00:00:00 \_ sandbox 17014 pts/2 00:00:00 \_ bash 17056 pts/2 00:00:00 \_ ps ------- # emerge --info Portage 2.0.51_rc9 (!/usr/portage/profiles/default-ia64-1.4, gcc-3.3.2, glibc-2.3.2-r11, 2.6.8-gentoo-r7 ia64) ================================================================= System uname: 2.6.8-gentoo-r7 ia64 Gentoo Base System version 1.6.2 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 Binutils: sys-devel/binutils-2.14.90.0.7-r4 Headers: sys-kernel/linux26-headers-2.6.7-r4 Libtools: sys-devel/libtool-1.4.3-r4 ACCEPT_KEYWORDS="ia64 ~ia64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe" CHOST="ia64-unknown-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache cvs distlocks sandbox" GENTOO_MIRRORS="http://kant.zk3.dec.com/gentoo/mirror/sources/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/home/agriffis/portage" PORTDIR_OVERLAY="" SYNC="false" USE="X arts berkdb crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 ia64 imlib jpeg kde libg++ libwww mikmod motif mozilla ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl tcltk tcpd truetype xml2 xmms xv zlib"
The problem is sandbox-related and is not specifically gcc. It happens for other packages as well since I updated to this version of portage. Once at the root prompt (under sandbox), if I hit ctrl-d then it will drop back to a prompt again, indicating it's in a loop. Here is a comparison of the bash variables for you: tank tmp # set > set.1 tank tmp # exit tank tmp # set > set.2 tank tmp # diff -u set.1 set.2 --- set.1 2004-10-21 14:26:44.813075911 -0400 +++ set.2 2004-10-21 14:26:48.542568052 -0400 @@ -94,7 +94,7 @@ PORTAGE_RESTRICT=nostrip PORTAGE_TMPDIR=/var/tmp PORTDIR=/home/agriffis/portage -PPID=17404 +PPID=17408 PR=r2 PRELINK_PATH= PRELINK_PATH_MASK= @@ -122,7 +122,7 @@ SANDBOX_DENY=/etc/ld.so.preload SANDBOX_DIR=/usr/lib/portage/bin/ SANDBOX_LIB=/lib/libsandbox.so -SANDBOX_LOG=/tmp/sandbox-sys-libs_-_glibc-2.3.4.20040619-r2-17404.log +SANDBOX_LOG=/tmp/sandbox-sys-libs_-_glibc-2.3.4.20040619-r2-17408.log SANDBOX_ON=1 SANDBOX_PREDICT=/var/tmp/portage/homedir/.:/usr/lib/python2.0/:/usr/lib/python2.1/:/usr/lib/python2.2/:/usr/lib/python2.3/:/usr/lib/python2.4/:/usr/lib/python2.5/:/usr/lib/python3.0/: SANDBOX_READ=/
slightly different on alpha (same version of portage). Instead of getting a bash prompt under sandbox, emerge just exits: $ sudo emerge gnumeric Calculating dependencies ...done! >>> emerge (1 of 2) gnome-extra/libgsf-1.10.0 to / >>> md5 src_uri ;-) libgsf-1.10.0.tar.bz2 >>> Unpacking source... >>> Unpacking libgsf-1.10.0.tar.bz2 to /usr/local/tmp/portage/libgsf-1.10.0/work >>> Source unpacked. $
Running with FEATURES=-sandbox doesn't exhibit the problem, btw
Only happens on 64-bit machines. This is fixed for _rc10.
*** This bug has been marked as a duplicate of 67189 ***