Error handling when building gcc
1, Can not find GMP 4.1+ or mpfr?
if(your don't have it)
Download them and install. it is straightforward.
else
Try the --with-gmp and/or --with-mpfr options to specify their locations
2, configure: error: cannot compute suffix of object files: cannot compile gcc
Configure file can't find mpfr libs
export LD_LIBRARY_PATH=/usr/local/lib (if your mpfr is intalled in it)
if(your don't have it)
Download them and install. it is straightforward.
else
Try the --with-gmp and/or --with-mpfr options to specify their locations
2, configure: error: cannot compute suffix of object files: cannot compile gcc
Configure file can't find mpfr libs
export LD_LIBRARY_PATH=/usr/local/lib (if your mpfr is intalled in it)