gcc 3.1 installation guide: 1. su 2. enter root password 3. export CVSROOT=":pserver:anoncvs@subversions.gnu.org:/cvsroot/gcc" (download the latest release from http://mirrors.rcn.net/pub/sourceware/gcc/releases/ if you don't want cvs) 4. cvs login 5. press Enter when at password prompt 6. cd /home/satya/software/gcc 7. cvs -z 9 co gcc 8. cd gcc 9. mkdir MyObj 10. cd MyObj 11. ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-languages=c,c++,f77 12. make bootstrap-lean MAKE='make -j 2' CFLAGS='-O3' LIBCFLAGS='-g -O3' LIBCXXFLAGS='-g -O3 -fno-implicit-templates' 13. if the above gives error (especially in CVS) there are few options: a. fall back to the previous workable gcc compiler (maybe compile the release version from http://mirrors.rcn.net/pub/sourceware/gcc/releases/) and install it (once successfully installed, dont clean, keep it as a backup copy of working gcc) b. after falling back compile it again, if the configure script uses gcc3 automatically instead of gcc, then: export CC=gcc 14. make install 15. gcc -v 16. g++ -v 17. g77 -v 18. to update gcc again, cd /home/satya/software/gcc and start from (7.)