How to build GNU Compiler Collection

The official document is here.

The prerequisites GMP, MPFR, and MPC can als be obtained here.

Also see here and here at LinuxFromScratch.org.