As mentioned
Whenever the code listings suggest running the emerge command, it is always a good idea to make a test run of the command using the -p or --pretend option to make sure that the command will do what you expect it to do.
Some of the syntax of current ebuilds is unreadable by older versions of Portage. If you don't have at least Portage 2.0.44, try upgrading Portage.
#emerge --sync #emerge -u portage
You will be installing a newer version of GCC during this upgrade. Versions of GCC older than 2.95.3-r8 are not designed to have multiple versions of GCC installed. You must therefore upgrade GCC to at least version 2.95.3-r8. This will also have the beneficial side-effect of installing the
# emerge -u gcc
You can now check to see if gcc-config is working properly:
# gcc-config --get-current-profile
This should return i686-pc-linux-gnu-2.95.3 on most x86 systems. Older systems may return i586-pc-linux-gnu-2.95.3.
Edit
# vim /usr/portage/sys-devel/gcc/gcc-3.2.2.ebuild
install the latest GCC version on your system: # USE="-java" emerge /usr/portage/sys-devel/gcc/gcc-3.2.2.ebuild
Now you need to change two sets of profiles: your gcc-config profile and your Portage profile.
# cd /etc # rm make.profile # ln -s ../usr/portage/profiles/default-x86-1.4 make.profile(Replace "x86" with your architecture)
# gcc-config --list-profiles(Note the one for the version you just emerged, use it below) # gcc-config i686-pc-linux-gnu-3.2.2(Replace with the version you noted above)
During the meeting: