http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49072
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-05-19 22:30:41 UTC --- (In reply to comment #0) > I downloaded from one of the mirror sites the following tar balls: > > gcc-4.6.0.tar.gz > gmp-4.3.2.tar.bz2 > mpc-0.8.1.tar.gz > mpfr-2.4.2.tar.bz2 > > I decompressed and untarred the files, which resulted in four directories, > respectively: gcc-4.6.0, gmp-4.3.2, mpc-0.8.1, and mpfr-2.4.2. I then created > the directory ~/gcc4 and I moved gcc-4.6.0 in it. I then changed the names of > the directories gmp-4.3.2, mpc-0.8.1, and mpfr-2.4.2 to gmp, mpc, and mpfr, > respectively. These three directories, namely gmp, mpc, and mpfr were moved it > to ~/gcc4/gcc-4.6.0. In gcc4, I created the directory objdir. So, the > directory > tree looks like the following: > > |--gcc4 > | |--objdir > | |--gcc-4.6.0 > | | |--gmp > | | |--mpc > | | |--mpfr > > I then proceeded to configure the installation. From ~/gcc4/objdir, I executed > “../gcc-4.6.0/configure”. This is all ok so far, which puts you well ahead of almost all people who report problems building gcc! > Once the Makefile was created, still from within ~/gcc4/objdir, I executed > “make bootstrap”. Just "make" is all you need, "make bootstrap" hasn't been needed for some time now. > After about 24 hours of execution, the build failed with the > following error message: > > ../../../gcc-4.6.0/libgcc/../gcc/libgcc2.c:791:1: internal compiler error: > Floating point exception > Please submit a full bug report, > With preprocessed source if appropriate. > See http://gcc.gnu.org/bugs.html for instructinos. > make [3]: *** [_popcountsi2.o] Error 1 > make [3]: Leaving directory > ‘/home/Jose.Pascual-Gutierr/gcc4/objdir/i686-pc-cygwin/libgcc’ > make [2]: *** [all-stage2-target-libgcc] Error 2 > make [2]: Leaving directory ‘/home/Jose.Pascual-Gutierr/gcc4/objdir’ > make [1]: *** [stage2-bubble] Error 2 > make [1]: Leaving directory ‘/home/Jose.Pascual-Gutierr/gcc4/objdir’ > make: *** [bootstrap] Error 2 What if you type "make" again? Does it fail at the same place? It might not be relevant, but although it's the minimum required version, MPFR 2.4.2 is a bit old now. I suspect most people building GCC 4.6 are using a newer version of MPFR. Does it help if you repeat the whole process using MPFR 3.0.1 instead?