OK, thanks for you responses. Can you please make it a bit more clear about how to build gcc after using download_prerequisites script ? Running ../gcc-4.9.0/configure --prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_install --enable-shared fails with the error checking for the correct version of gmp.h... no configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify their locations. since there is no gmp, mpc and mpfr built. As far as i understand, the download_prerequisites script just downloads the source files. How should I build it? > On 8 August 2014 11:22, Kirill Voronin <kvoronin@xxxxxxxxxxxxxxx> wrote: >> >> Actually, the version doesn't matter except it should be greater than >> 4.8. >> >> I've already read >> >> https://gcc.gnu.org/wiki/FAQ#configure_suffix >> >> but actually there is no answer for my case since I do have mpc, gmp and >> mpfr installed (correctly at least as make check claimed for each of >> these >> three). > > Then you failed to understand the FAQ. It does answer your case. > >> If it didn't find some libs, I understand that I would have checked the >> option --with-... and check the paths but now it seems like installing >> one >> of the internal (for gcc) packages stdc++ failed. > > Wrong. > >> So, you recommend to install mpc, gmp and mpfr once again using >> prerequisites? > > Don't install them separately if you don't know what you're doing. > > See http://gcc.gnu.org/wiki/InstallingGCC > --