There's a complete example of configuring and building GCC at the bottom of the page: http://gcc.gnu.org/wiki/InstallingGCC Why are you doing different things like building in the $PREFIX dir, and running the contrib script in the wrong dir, and passing the --with-gmp options? Did you not bother to read to the end of the page, where the example is? Do you think the page is wrong and you're smarter and know better, so don't need to follow the instructions? Did you not read the part that says "If building GCC fails when using any of the --with-gmp or --with-mpfr or --with-mpc options then you probably shouldn't be using them" ? Are you sure you really need a later version of GCC? Maybe you should give up and have a nice cup of tea and stop sending repetitive emails and misinterpreting the help offered.