I tried to update gcc to gcc 3.2 using spider's howto as posted on gentoo-dev (actually I found about it on gentoo forums: http://forums.gentoo.org/viewtopic.php?t=11963&postdays=0&postorder=asc&start=50 ) the instructions make use of the emerge --usepkg feature like so: <start paste> 2) build an replacement gcc systems change the profile to default-x86-2.0 export USE="-* build" emerge --buildpkg gcc emerge --buildpkg binutils gettext texinfo glibc unset USE This will now replace your gcc with one without c++ and other such things.. "oops" gcc is now gcc 3.2.. thats good. Now, We remove all traces of gcc, *shudder* emerge -C gcc and install the binary again: emerge --usepkg gcc <end paste, more stuff after here> after removing gcc emerge fails with: # emerge --usepkg gcc Calculating dependencies ...done! >>> emerge sys-devel/gcc-3.2 to / >>> md5 ;-) gcc-3.2.tar.bz2 >>> Unpacking source... >>> Unpacking gcc-3.2.tar.bz2 * Working directory: /var/tmp/portage/gcc-3.2/work/gcc-3.2... * Applying libtool-test.patch... * Applying libtool-tmp.patch... * Applying libtool-portage.patch... patching file gcc/config/i386/i386.c >>> Source unpacked. /usr/sbin/ebuild.sh: gcc: command not found Created "Makefile" in /var/tmp/portage/gcc-3.2/work/build using "mh-frag" and "mt-frag" /var/tmp/portage/gcc-3.2/work/gcc-3.2/configure: cc: command not found *** The command 'cc -o conftest -march=i686 -pipe conftest.c' failed. *** You must set the environment variable CC to a working compiler. I have a gcc-3.2.tbz2 binary package in the /usr/portage/packages/All directory but emerge refuses to use it even if I export PKGDIR=/usr/portage/packages or PKGDIR=/usr/portage/packages/ALL
*** This bug has been marked as a duplicate of 4508 ***