To is now problem, but i can find fix (Ubuntu 14.04) (gcc old version 4.x.x, need upgrade)
First step: download gcc last version on site https://gcc.gnu.org/ (7.2) (use wget on server)
For setup requested other components (GMP, MPFR, MPC):
apt-get install libgmp3-dev libmpfr-dev libmpfr-doc libmpfr4 libmpfr4-dbg
MPC download: http://www.multiprecision.org/?prog=mpc&page=download (ftp://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz) and unpack (configure, make, make install)
Is now... If server x64, use command: ./configure --disable-multilib, not simple ./configure.
Result if everything was correct
..... Okay. After use make, make install (cmd). Done.
Check GCC version: gcc -v (should be to work more > 6.x.x).