title: "Configure: Error: Could Not Find a Working Compiler, See config.log For Details"
body: <p>I have to handle very long numbers in C++. I saw online that the easiest way to do it is install the GMP library, but I have a problem.
  When i execute the msys.bat file inside the compiler folder and when i execute the command <code>./configure --prefix=/d/Libraries_For_C_and_C++/GMP --enable-cxx</code> it gives me an error </p>
  
  <blockquote>
    <p>configure: error: could not find a working compiler,  see config.log for details</p>
  </blockquote>
  
  <p>I have tried to install the compiler several times but the error message is the same.</p>
  
  <p>The config.log file is:</p>
  
  <pre><code>&gt; This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.
  &gt; 
  &gt; It was created by GNU MP configure 6.1.2, which was generated by GNU
  &gt; Autoconf 2.69.  Invocation command line was
  &gt; 
  &gt;   $ ./configure --prefix=/d/Libraries_For_C_and_C++/GMP --enable-cxx
  &gt; 
  &gt; ## --------- ##
  &gt; ## Platform. ##
  &gt; ## --------- ##
  &gt; 
  &gt; hostname = DESKTOP-N92E9KJ uname -m = i686 uname -r = 1.0.19(0.48/3/2)
  &gt; uname -s = MINGW32_NT-6.2 uname -v = 2016-07-13 17:45
  &gt; 
  &gt; /usr/bin/uname -p = unknown /bin/uname -X     = unknown
  &gt; 
  &gt; /bin/arch              = unknown /usr/bin/arch -k       = unknown
  &gt; /usr/convex/getsysinfo = unknown /usr/bin/hostinfo      = unknown
  &gt; /bin/machine           = unknown /usr/bin/oslevel       = unknown
  &gt; /bin/universe          = unknown
  &gt; 
  &gt; PATH: . PATH: /usr/local/bin PATH: /mingw/bin PATH: /bin PATH:
  &gt; /c/Program Files (x86)/Common Files/Oracle/Java/javapath PATH:
  &gt; /c/Windows/system32 PATH: /c/Windows PATH: /c/Windows/System32/Wbem
  &gt; PATH: /c/Windows/System32/WindowsPowerShell/v1.0/ PATH:
  &gt; /c/Windows/System32/OpenSSH/ PATH: /c/Program Files (x86)/NVIDIA
  &gt; Corporation/PhysX/Common PATH: /c/Users/Novati
  &gt; Giovanni/AppData/Local/Microsoft/WindowsApps PATH: .
  &gt; 
  &gt; 
  &gt; ## ----------- ##
  &gt; ## Core tests. ##
  &gt; ## ----------- ##
  &gt; 
  &gt; configure:3055: checking build system type configure:3069: result:
  &gt; i686-pc-mingw32 configure:3089: checking host system type
  &gt; configure:3102: result: i686-pc-mingw32 configure:3139: checking for a
  &gt; BSD-compatible install configure:3207: result: /bin/install -c
  &gt; configure:3218: checking whether build environment is sane
  &gt; configure:3273: result: yes configure:3424: checking for a thread-safe
  &gt; mkdir -p configure:3463: result: /bin/mkdir -p configure:3470:
  &gt; checking for gawk configure:3486: found /bin/gawk configure:3497:
  &gt; result: gawk configure:3508: checking whether make sets $(MAKE)
  &gt; configure:3530: result: yes configure:3559: checking whether make
  &gt; supports nested variables configure:3576: result: yes configure:3705:
  &gt; checking whether to enable maintainer-specific portions of Makefiles
  &gt; configure:3714: result: no User: ABI= CC= CFLAGS=(unset)
  &gt; CPPFLAGS=(unset) MPN_PATH= GMP: abilist=32 cclist=gcc icc cc
  &gt; configure:5801: gcc 2&gt;&amp;1 | grep xlc &gt;/dev/null configure:5804: $? = 1
  &gt; configure:5858: checking compiler gcc -m32 -O2 -pedantic
  &gt; -fomit-frame-pointer  Test compile:  configure:5872: gcc -m32 -O2 -pedantic -fomit-frame-pointer  conftest.c &gt;&amp;5 ./configure: line 5873: gcc: command not found configure:5875: $? = 127 failed program was:
  &gt; 
  &gt; int main () { return 0; } configure:6962: result: no configure:5858:
  &gt; checking compiler gcc -O2 -pedantic -fomit-frame-pointer  Test
  &gt; compile:  configure:5872: gcc -O2 -pedantic -fomit-frame-pointer 
  &gt; conftest.c &gt;&amp;5 ./configure: line 5873: gcc: command not found
  &gt; configure:5875: $? = 127 failed program was:
  &gt; 
  &gt; int main () { return 0; } configure:6962: result: no configure:5779:
  &gt; icc -c conftest.c &gt;&amp;5 ./configure: line 5780: icc: command not found
  &gt; configure:5782: $? = 127 configure:5801: icc 2&gt;&amp;1 | grep xlc
  &gt; &gt;/dev/null configure:5804: $? = 1 configure:5858: checking compiler icc -no-gcc  Test compile:  configure:5872: icc -no-gcc  conftest.c
  &gt; &gt;&amp;5 ./configure: line 5873: icc: command not found configure:5875: $? = 127 failed program was:
  &gt; 
  &gt; int main () { return 0; } configure:6962: result: no configure:5779:
  &gt; cc -c conftest.c &gt;&amp;5 ./configure: line 5780: cc: command not found
  &gt; configure:5782: $? = 127 configure:5801: cc 2&gt;&amp;1 | grep xlc &gt;/dev/null
  &gt; configure:5804: $? = 1 configure:5858: checking compiler cc -O  Test
  &gt; compile:  configure:5872: cc -O  conftest.c &gt;&amp;5 ./configure: line
  &gt; 5873: cc: command not found configure:5875: $? = 127 failed program
  &gt; was:
  &gt; 
  &gt; int main () { return 0; } configure:6962: result: no configure:7200:
  &gt; error: could not find a working compiler, see config.log for details
  &gt; 
  &gt; ## ---------------- ##
  &gt; ## Cache variables. ##
  &gt; ## ---------------- ##
  &gt; 
  &gt; ac_cv_build=i686-pc-mingw32 ac_cv_env_ABI_set= ac_cv_env_ABI_value=
  &gt; ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_FOR_BUILD_set=
  &gt; ac_cv_env_CC_FOR_BUILD_value= ac_cv_env_CC_set= ac_cv_env_CC_value=
  &gt; ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set=
  &gt; ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_FOR_BUILD_set=
  &gt; ac_cv_env_CPP_FOR_BUILD_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value=
  &gt; ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set=
  &gt; ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value=
  &gt; ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set=
  &gt; ac_cv_env_LIBS_value= ac_cv_env_LT_SYS_LIBRARY_PATH_set=
  &gt; ac_cv_env_LT_SYS_LIBRARY_PATH_value= ac_cv_env_M4_set=
  &gt; ac_cv_env_M4_value= ac_cv_env_YACC_set= ac_cv_env_YACC_value=
  &gt; ac_cv_env_YFLAGS_set= ac_cv_env_YFLAGS_value=
  &gt; ac_cv_env_build_alias_set= ac_cv_env_build_alias_value=
  &gt; ac_cv_env_host_alias_set= ac_cv_env_host_alias_value=
  &gt; ac_cv_env_target_alias_set= ac_cv_env_target_alias_value=
  &gt; ac_cv_host=i686-pc-mingw32 ac_cv_path_install='/bin/install -c'
  &gt; ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=gawk
  &gt; ac_cv_prog_make_make_set=yes am_cv_make_support_nested_variables=yes
  &gt; 
  &gt; ## ----------------- ##
  &gt; ## Output variables. ##
  &gt; ## ----------------- ##
  &gt; 
  &gt; ABI='' ACLOCAL='${SHELL} /d/Libraries_For_C_and_C++/gmp-6.1.2/missing
  &gt; aclocal-1.15' AMTAR='$${TAR-tar}' AM_BACKSLASH='\'
  &gt; AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1'
  &gt; AM_V='$(V)' AR='' AS='' ASMFLAGS='' AUTOCONF='${SHELL}
  &gt; /d/Libraries_For_C_and_C++/gmp-6.1.2/missing autoconf'
  &gt; AUTOHEADER='${SHELL} /d/Libraries_For_C_and_C++/gmp-6.1.2/missing
  &gt; autoheader' AUTOMAKE='${SHELL}
  &gt; /d/Libraries_For_C_and_C++/gmp-6.1.2/missing automake-1.15' AWK='gawk'
  &gt; CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo' CC='' CCAS=''
  &gt; CC_FOR_BUILD='' CFLAGS='' CPP='' CPPFLAGS='' CPP_FOR_BUILD='' CXX=''
  &gt; CXXCPP='' CXXFLAGS='' CYGPATH_W='echo' DEFN_LONG_LONG_LIMB='' DEFS=''
  &gt; DLLTOOL='' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T=''
  &gt; EGREP='' ENABLE_STATIC_FALSE='' ENABLE_STATIC_TRUE='' EXEEXT=''
  &gt; EXEEXT_FOR_BUILD='' FGREP='' GMP_LDFLAGS='' GMP_LIMB_BITS=''
  &gt; GMP_NAIL_BITS='0' GREP='' HAVE_CLOCK_01='' HAVE_CPUTIME_01=''
  &gt; HAVE_GETRUSAGE_01='' HAVE_GETTIMEOFDAY_01=''
  &gt; HAVE_HOST_CPU_FAMILY_power='0' HAVE_HOST_CPU_FAMILY_powerpc='0'
  &gt; HAVE_SIGACTION_01='' HAVE_SIGALTSTACK_01='' HAVE_SIGSTACK_01=''
  &gt; HAVE_STACK_T_01='' HAVE_SYS_RESOURCE_H_01='' INSTALL_DATA='${INSTALL}
  &gt; -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='' LDFLAGS='' LEX=''
  &gt; LEXLIB='' LEX_OUTPUT_ROOT='' LIBCURSES='' LIBGMPXX_LDFLAGS=''
  &gt; LIBGMP_DLL='' LIBGMP_LDFLAGS='' LIBM='' LIBM_FOR_BUILD='' LIBOBJS=''
  &gt; LIBREADLINE='' LIBS='' LIBTOOL='' LIPO='' LN_S='' LTLIBOBJS=''
  &gt; LT_SYS_LIBRARY_PATH='' M4='' MAINT='#' MAINTAINER_MODE_FALSE=''
  &gt; MAINTAINER_MODE_TRUE='#' MAKEINFO='${SHELL}
  &gt; /d/Libraries_For_C_and_C++/gmp-6.1.2/missing makeinfo'
  &gt; MANIFEST_TOOL='' MKDIR_P='/bin/mkdir -p' NM='' NMEDIT='' OBJDUMP=''
  &gt; OBJEXT='' OTOOL64='' OTOOL='' PACKAGE='gmp'
  &gt; PACKAGE_BUGREPORT='gmp-bugs@gmplib.org, see
  &gt; https://gmplib.org/manual/Reporting-Bugs.html' PACKAGE_NAME='GNU MP'
  &gt; PACKAGE_STRING='GNU MP 6.1.2' PACKAGE_TARNAME='gmp'
  &gt; PACKAGE_URL='http://www.gnu.org/software/gmp/' PACKAGE_VERSION='6.1.2'
  &gt; PATH_SEPARATOR=':' RANLIB='' SED='' SET_MAKE='' SHELL='/bin/sh'
  &gt; SPEED_CYCLECOUNTER_OBJ='pentium.lo' STRIP='' TAL_OBJECT=''
  &gt; TUNE_LIBS='' TUNE_SQR_OBJ='' U_FOR_BUILD='' VERSION='6.1.2'
  &gt; WANT_CXX_FALSE='' WANT_CXX_TRUE='' WITH_READLINE_01='' YACC=''
  &gt; YFLAGS='' ac_ct_AR='' ac_ct_CC='' ac_ct_CXX='' ac_ct_DUMPBIN=''
  &gt; am__EXEEXT_FALSE='' am__EXEEXT_TRUE='' am__isrc='' am__leading_dot='.'
  &gt; am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  &gt; bindir='${exec_prefix}/bin' build='i686-pc-mingw32' build_alias=''
  &gt; build_cpu='i686' build_os='mingw32' build_vendor='pc'
  &gt; datadir='${datarootdir}' datarootdir='${prefix}/share'
  &gt; docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}'
  &gt; exec_prefix='NONE' gmp_srclinks='' host='i686-pc-mingw32'
  &gt; host_alias='' host_cpu='i686' host_os='mingw32' host_vendor='pc'
  &gt; htmldir='${docdir}' includedir='${prefix}/include'
  &gt; infodir='${datarootdir}/info' install_sh='${SHELL}
  &gt; /d/Libraries_For_C_and_C++/gmp-6.1.2/install-sh'
  &gt; libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec'
  &gt; localedir='${datarootdir}/locale' localstatedir='${prefix}/var'
  &gt; mandir='${datarootdir}/man' mkdir_p='$(MKDIR_P)' mpn_objects=''
  &gt; mpn_objs_in_libgmp='' oldincludedir='/usr/include' pdfdir='${docdir}'
  &gt; prefix='/d/Libraries_For_C_and_C++/GMP'
  &gt; program_transform_name='s,x,x,' psdir='${docdir}'
  &gt; sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com'
  &gt; sysconfdir='${prefix}/etc' target_alias=''
  &gt; 
  &gt; ## ----------- ##
  &gt; ## confdefs.h. ##
  &gt; ## ----------- ##
  &gt; 
  &gt; /* confdefs.h */
  &gt; #define PACKAGE_NAME "GNU MP"
  &gt; #define PACKAGE_TARNAME "gmp"
  &gt; #define PACKAGE_VERSION "6.1.2"
  &gt; #define PACKAGE_STRING "GNU MP 6.1.2"
  &gt; #define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html"
  &gt; #define PACKAGE_URL "http://www.gnu.org/software/gmp/"
  &gt; #define PACKAGE "gmp"
  &gt; #define VERSION "6.1.2"
  &gt; #define WANT_FFT 1
  &gt; #define HAVE_HOST_CPU_i686 1
  &gt; 
  &gt; configure: exit 1
  </code></pre>
  
  <p>What can I do?
  Thanks!</p>