On 10 August 2014 12:58, Kirill Voronin wrote: > > Yes, the symbolic links called "gmp", "mpfr" and > "mpc" in the gcc-4.9.0 source directory are present. > > I foolowed instructions from the installation guide > > https://gcc.gnu.org/wiki/InstallingGCC > > directly, but nevertheless got the following error (in config.log) when > doing make (after successful configure) > > configure:4970: checking whether g++ accepts -static-libstdc++ -static-libgcc > configure:4987: g++ -o conftest -g -O2 -static-libstdc++ -static-libgcc > conftest.cpp >&5 > g++: unrecognized option '-static-libstdc++' > conftest.cpp:11:2: error: #error -static-libstdc++ not implemented > configure:4987: $? = 1 > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "" > | #define PACKAGE_TARNAME "" > | #define PACKAGE_VERSION "" > | #define PACKAGE_STRING "" > | #define PACKAGE_BUGREPORT "" > | #define PACKAGE_URL "" > | /* end confdefs.h. */ > | > | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) > | #error -static-libstdc++ not implemented > | #endif > | int main() {} At the http://gcc.gnu.org/wiki/FAQ#configure_suffix page I've linked to several times it says "There might be several test programs that failed during the configuration, but some of these failures are non-critical. Check for the last error entry in the file." > The configure coomand was like > > ./contrib/download_prerequisites > $PWD/../gcc-4.9.0/configure > --prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0 > --enable-shared If those are really the exact the commands you ran then you're building in the source directory which can cause problems: http://gcc.gnu.org/wiki/FAQ#configure If that's the case then delete the build and source directories and start again from scratch. If you're trying to build in the same directory as your earlier failed attempts then that will cause problems too, so you need to build in a clean directory.