Host PC: ubuntu 14.04 64-bit, Install mips-cross compile toolchains
(1) Download source code of gcc and binutils including ld, and so on. on http://ftp.gnu.org/gnu/binutils/
(2) Building by "./configure --target=mips-linux-gnu" and "make && sudo make install"
mips-linux-gnu, mips-linux both oK.
NOTE: maybe you meet with error "configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+." while compiling GCC codes.
Download GMP lib from http://ftp.gnu.org/gnu/gmp/
Download MPFR lib from http://ftp.gnu.org/gnu/mpfr/
Download MPC lib from http://ftp.gnu.org/gnu/mpc/
Makefile:154: ../.././gcc/libgcc.mvars: No such file or directory
"
please try "make all-gcc && sudo make install-gcc"