To clarify, when I try to run emerge -eav system, the first package which fails is sandbox.
It advises me to try FEATURES=-sandbox emerge sandbox in response to the cannot run C compiled programs, but I still get the same error. My research on the web points me back towards gcc not being compiled correctly, which brings me back to the glibc sanity check problem :-( Calculating dependencies... done! >>> Verifying ebuild Manifests... >>> Emerging (1 of 1) sys-apps/sandbox-1.2.18.1-r2 to / * sandbox-1.2.18.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking sandbox-1.2.18.1.tar.bz2 ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking sandbox-1.2.18.1.tar.bz2 to /var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work * Applying sandbox-1.2.18.1-open-normal-fail.patch ... [ ok ] * Applying sandbox-1.2.18.1-open-cloexec.patch ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work/sandbox-1.2.18.1 ... * If configure fails with a 'cannot run C compiled programs' error, try this: * FEATURES=-sandbox emerge sandbox * Configuring sandbox for ABI=x86... * econf: updating sandbox-1.2.18.1/config.guess with /usr/share/gnuconfig/config.guess * econf: updating sandbox-1.2.18.1/config.sub with /usr/share/gnuconfig/config.sub ../sandbox-1.2.18.1//configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib32 --enable-multilib --build=i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for i686-pc-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. !!! Please attach the following file when seeking support: !!! /var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work/build-x86-x86_64-pc-linux-gnu/config.log * * ERROR: sys-apps/sandbox-1.2.18.1-r2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2471: Called econf 'src_compile' 'src_compile' * ebuild.sh, line 519: Called die * The specific snippet of code: * die "econf failed" * The die message: * econf failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/temp/environment'. * On Sunday 21 December 2008 03:03:59 pm Jeff Cranmer wrote: > OK - accepting that my system is broken, I've tried emerge -eav system, and > it is failing due to several errors. Other than reformatting the hard > drive, how do I reinstall everything? > > Where do I change the accept keywords variable? It isn't in my make.conf, > and if I put an accept keywords line in there, it simply adds to the list > of keywords, rather than replacing the amd64 with ~amd64 > > Jeff > > On Sunday 21 December 2008 02:49:46 pm Justin wrote: > > Jeff Cranmer schrieb: > > > On Sunday 21 December 2008 02:35:56 pm Justin wrote: > > >>> However, did you notice that the parent poster mentioned glib and you > > >>> have attempted to downgrade glibc? > > >> > > >> My fault missed the c. > > >> @Jeff > > >> Please provide a emerge --info so that we can comment on it. Perhaps > > >> this will protect you from some more headache when reinstalling. > > > > > > there ya go :-) > > > > > > Portage 2.1.4.5 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, > > > glibc-2.9_p20081201-r0, 2.6.24-gentoo-r4 x86_64) > > > ================================================================= > > > System uname: 2.6.24-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core > > > Processor > > > > definitely a 64bit kernel. If you ever switched to a 32bit profile you > > system is broken and you better reinstall everything. > > > > > 3800+ > > > Timestamp of tree: Sun, 21 Dec 2008 08:00:01 +0000 > > > app-shells/bash: 3.2_p33 > > > dev-java/java-config: 1.3.7-r1, 2.1.6-r1 > > > dev-lang/python: 2.4.4-r13, 2.5.2-r7 > > > dev-python/pycrypto: 2.0.1-r6 > > > dev-util/cmake: 2.4.6-r1 > > > sys-apps/baselayout: 1.12.11.1 > > > sys-apps/sandbox: 1.2.18.1-r2 > > > sys-devel/autoconf: 2.13, 2.61-r2 > > > sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, > > > 1.10.1-r1 > > > sys-devel/binutils: 2.18-r3 > > > sys-devel/gcc-config: 1.4.0-r4 > > > sys-devel/libtool: 1.5.26 > > > virtual/os-headers: 2.6.23-r3 > > > ACCEPT_KEYWORDS="amd64" > > > > You should use ACCEPT_KEYWORDS="~amd64" as long as you don't have alot > > experience. You can manually enable the usage of masked packages. > > > > > CBUILD="x86_64-pc-linux-gnu" > > > CFLAGS="-O2 -pipe -march=athlon64" > > > CHOST="x86_64-pc-linux-gnu" > > > CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config > > > /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" > > > CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d > > > /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf > > > /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ > > > /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo > > > /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -pipe > > > -march=athlon64" DISTDIR="/usr/portage/distfiles" > > > FEATURES="distlocks metadata-transfer sandbox sfperms strict > > > unmerge-orphans userfetch" > > > GENTOO_MIRRORS="http://distfiles.gentoo.org > > > http://distro.ibiblio.org/pub/linux/distributions/gentoo" > > > LDFLAGS="-Wl,-O1" > > > MAKEOPTS="-j3" > > > PKGDIR="/usr/portage/packages" > > > 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" > > > SYNC="rsync://rsync.gentoo.org/gentoo-portage" > > > USE="X a52 aac acl acpi alsa amd64 asf berkdb bluetooth branding bzip2 > > > cairo cdr cli cracklib crypt cups dar64 dbus doc dri dv dvd dvdr > > > dvdread eds emboss encode esd evo fam firefox foomaticdb fortran gdbm > > > gif gimpprint gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde > > > ldap libnotify mad midi mikmod mjpeg mmx mp3 mpeg mudflap multilib > > > ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds > > > pppd python qt3 qt3support qt4 quicktime readline realmedia reflection > > > scanner sdl session smp spell spl sse sse2 ssl startup-notification svg > > > symlink sysfs tcpd tiff truetype unicode usb vorbis wmf xinerama xml > > > xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" > > > 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 auth_digest authn_anon authn_dbd authn_dbm > > > authn_default authn_file authz_dbm authz_default authz_groupfile > > > authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock > > > dbd deflate dir disk_cache env expires ext_filter file_cache filter > > > headers ident imagemap include info log_config logio mem_cache mime > > > mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect > > > proxy_http rewrite setenvif so speling status unique_id userdir > > > usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse > > > joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk > > > hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" > > > VIDEO_CARDS="nvidia" > > > Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, > > > LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, > > > PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY