On 11 August 2017 at 22:43, Hector E Barrios Molano wrote: > Hello gcc community! > > I'm trying to compile gcc 7.1.0 from source. I used gcc 5.1.0 and gcc 6.1.0 > and got the same error. these are the steps I'm doing: > > tar -zxvf gcc-7.1.0.tar.gz > mkdir gcc_obj > cd gcc_obj/ > CC=gcc6 CXX=g++6 ../gcc-7.1.0/configure --prefix=$HOME/installed/gcc-7.1/ > --enable-languages=c,c++,fortran --program-suffix=7 > --with-gmp=$HOME/installed/ --with-mpc=$HOME/installed/ > --with-mpfr=$HOME/installed/ Where GMP, MPC and MPFR compiled for the same hardware as you are building on? One possibility is that they were compiled for a newer x86 processor, and so use instructions that are not supported by the machine you're building on. You would avoid that kind of problem by not installing those libs separately. See https://gcc.gnu.org/wikiInstallingGCC for how to make it much easier.