This is coming up on this list over and over.
Please see http://gcc.gnu.org/ml/gcc-help/2012-12/msg00015.html
Dennis
ps: the SunFreeware project has gone commercial and the GCC packages are
getting crusty. Follow the instructions in the message above and you will
be fine.