Compiling GMP on Windows

Sam Rawlins sam.rawlins at gmail.com
Tue Jul 13 18:39:15 CEST 2010


Hi Lavesh

On Mon, Jul 12, 2010 at 3:28 AM, lavesh dixit <lavesh.dixit at oracle.com>wrote:

> Hi All,
> I am having issues compiling GMP on Windows.
> The environment details are as follows.
>
> GMP 4.3.2
> OS - MS Windows 2003 Server x64 SP2
> Using Cygwin to do the compilation.
>

OK


> On running configure, it is not able to find any compiler (gcc, cc )
>
> Here is the output
> $ ./configure --prefix /cygdrive/d/gmp
> checking build system type... i686-pc-cygwin
> checking host system type... i686-pc-cygwin
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking ABI=32
> checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
> checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... no
> checking compiler icc -no-gcc ... no
> checking compiler cc -O ... no
> configure: error: could not find a working compiler, see config.log for
> details
>
> We want to use MS VS 2008 to do the compilation of GMP for binary
> compatibility reasons.
> All all other C/C++ code has been built using MS VS 2008.
>

I thought you wanted to compile using Cygwin? Which one?
I'm not sure if Cygwin comes with gcc so you will need to run the cygwin
package installer again and add "gcc", and make sure other things like
"make" are included.

In the cygwin env window, you should get a result when typing `which gcc'
and `which make'.


>
> What can we do to use MS VS compiler to do the compilation.
> config.log is attached.
>
>
> Thanks for the help
> Lavesh
>
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by GNU MP configure 4.3.2, which was
> generated by GNU Autoconf 2.61.  Invocation command line was
>
>  $ ./configure --prefix /cygdrive/d/gmp
>
> ## --------- ##
> ## Platform. ##
> ## --------- ##
>
> hostname = RTDC79488VMC
> uname -m = i686
> uname -r = 1.5.25(0.156/4/2)
> uname -s = CYGWIN_NT-5.2-WOW64
> uname -v = 2008-06-12 19:34
>
> /usr/bin/uname -p = unknown
> /bin/uname -X     = unknown
>
> /bin/arch              = i686
> /usr/bin/arch -k       = unknown
> /usr/convex/getsysinfo = unknown
> /usr/bin/hostinfo      = unknown
> /bin/machine           = unknown
> /usr/bin/oslevel       = unknown
> /bin/universe          = unknown
>
> PATH: /usr/local/bin
> PATH: /usr/bin
> PATH: /bin
> PATH: /usr/X11R6/bin
> PATH: /cygdrive/d/apps/db/sybase15/DataAccess64/ADONET/dll
> PATH: /cygdrive/d/apps/db/sybase15/DataAccess64/OLEDB/dll
> PATH: /cygdrive/d/apps/db/sybase15/DataAccess64/ODBC/dll
> PATH: /cygdrive/d/apps/db/sybase15/DataAccess/ADONET/dll
> PATH: /cygdrive/d/apps/db/sybase15/DataAccess/OLEDB/dll
> PATH: /cygdrive/d/apps/db/sybase15/DataAccess/ODBC/dll
> PATH: /cygdrive/d/apps/db/sybase15/OCS-15_0/lib3p64
> PATH: /cygdrive/d/apps/db/sybase15/OCS-15_0/lib3p
> PATH: /cygdrive/d/apps/db/sybase15/OCS-15_0/dll
> PATH: /cygdrive/d/apps/db/sybase15/OCS-15_0/bin
> PATH: /cygdrive/c/oracle/product/11.1.0/db_1/bin
> PATH: /cygdrive/c/oracle/product/10.2.0/db_1/bin
> PATH: /cygdrive/c/WINDOWS/system32
> PATH: /cygdrive/c/WINDOWS
> PATH: /cygdrive/c/WINDOWS/System32/Wbem
> PATH: /cygdrive/c/Apps/Rational/ClearCase/bin
> PATH: /cygdrive/c/Apps/Perl/bin/
> PATH: /cygdrive/c/bea/tuxedo8.1/bin
> PATH: /cygdrive/c/Apps/Rational/common
> PATH: /cygdrive/c/apps/db/DB2UDB95/BIN
> PATH: /cygdrive/c/apps/db/DB2UDB95/FUNCTION
> PATH: /cygdrive/c/apps/db/DB2UDB95/SAMPLES/REPL
> PATH: /cygdrive/c/Program Files (x86)/Microsoft SQL Server/80/Tools/Binn/
> PATH: /cygdrive/c/Program Files (x86)/Microsoft SQL Server/90/Tools/binn/
> PATH: /cygdrive/c/oracle/tuxedo10gR3_VS2005/bin
> PATH: /cygdrive/c/oracle/tuxedo10gR3_VS2005/jre/bin/server
> PATH: /cygdrive/c/oracle/tuxedo10gR3_VS2005/jre/bin
> PATH: /cygdrive/c/WINDOWS/system32/WindowsPowerShell/v1.0
> PATH: /cygdrive/c/gnuwin32/bin
> PATH: /cygdrive/c/Apps/Dvlp/WinVi
> PATH: /cygdrive/c/WINDOWS/system32/WindowsPowerShell/v1.0
> PATH: /cygdrive/c/Program Files (x86)/FastSum
> PATH: /cygdrive/c/bea/Tuxedo9.1/bin
> PATH: /cygdrive/d/apps/db/sybase15/DBISQL/bin
>
>
> ## ----------- ##
> ## Core tests. ##
> ## ----------- ##
>
> configure:2123: checking build system type
> configure:2141: result: i686-pc-cygwin
> configure:2163: checking host system type
> configure:2178: result: i686-pc-cygwin
> configure:2215: checking for a BSD-compatible install
> configure:2271: result: /usr/bin/install -c
> configure:2282: checking whether build environment is sane
> configure:2325: result: yes
> configure:2382: checking for gawk
> configure:2398: found /usr/bin/gawk
> configure:2409: result: gawk
> configure:2420: checking whether make sets $(MAKE)
> configure:2441: result: yes
> configure:2623: checking whether to enable maintainer-specific portions of
> Makefiles
> configure:2632: result: no
> User:
> ABI=
> CC=
> CFLAGS=(unset)
> CPPFLAGS=(unset)
> MPN_PATH=
> GMP:
> abilist=32
> cclist=gcc icc cc
> configure:4346: gcc 2>&1 | grep xlc >/dev/null
> configure:4349: $? = 1
> configure:4403: checking compiler gcc -m32 -O2 -pedantic
> -fomit-frame-pointer
> Test compile:
> configure:4417: gcc -m32 -O2 -pedantic -fomit-frame-pointer  conftest.c >&5
> ./configure: line 4418: gcc: command not found
> configure:4420: $? = 127
> failed program was:
>
> int main () { return 0; }
> configure:5443: result: no
> configure:4403: checking compiler gcc -O2 -pedantic -fomit-frame-pointer
> Test compile:
> configure:4417: gcc -O2 -pedantic -fomit-frame-pointer  conftest.c >&5
> ./configure: line 4418: gcc: command not found
> configure:4420: $? = 127
> failed program was:
>
> int main () { return 0; }
> configure:5443: result: no
> configure:4324: icc -c conftest.c >&5
> ./configure: line 4325: icc: command not found
> configure:4327: $? = 127
> configure:4346: icc 2>&1 | grep xlc >/dev/null
> configure:4349: $? = 1
> configure:4403: checking compiler icc -no-gcc
> Test compile:
> configure:4417: icc -no-gcc  conftest.c >&5
> ./configure: line 4418: icc: command not found
> configure:4420: $? = 127
> failed program was:
>
> int main () { return 0; }
> configure:5443: result: no
> configure:4324: cc -c conftest.c >&5
> ./configure: line 4325: cc: command not found
> configure:4327: $? = 127
> configure:4346: cc 2>&1 | grep xlc >/dev/null
> configure:4349: $? = 1
> configure:4403: checking compiler cc -O
> Test compile:
> configure:4417: cc -O  conftest.c >&5
> ./configure: line 4418: cc: command not found
> configure:4420: $? = 127
> failed program was:
>
> int main () { return 0; }
> configure:5443: result: no
> configure:5681: error: could not find a working compiler, see config.log
> for details
>
> ## ---------------- ##
> ## Cache variables. ##
> ## ---------------- ##
>
> ac_cv_build=i686-pc-cygwin
> ac_cv_env_ABI_set=
> ac_cv_env_ABI_value=
> ac_cv_env_CCC_set=
> ac_cv_env_CCC_value=
> ac_cv_env_CC_FOR_BUILD_set=
> ac_cv_env_CC_FOR_BUILD_value=
> ac_cv_env_CC_set=
> ac_cv_env_CC_value=
> ac_cv_env_CFLAGS_set=
> ac_cv_env_CFLAGS_value=
> ac_cv_env_CPPFLAGS_set=
> ac_cv_env_CPPFLAGS_value=
> ac_cv_env_CPP_FOR_BUILD_set=
> ac_cv_env_CPP_FOR_BUILD_value=
> ac_cv_env_CPP_set=
> ac_cv_env_CPP_value=
> ac_cv_env_CXXCPP_set=
> ac_cv_env_CXXCPP_value=
> ac_cv_env_CXXFLAGS_set=
> ac_cv_env_CXXFLAGS_value=
> ac_cv_env_CXX_set=
> ac_cv_env_CXX_value=
> ac_cv_env_LDFLAGS_set=
> ac_cv_env_LDFLAGS_value=
> ac_cv_env_LIBS_set=
> ac_cv_env_LIBS_value=
> ac_cv_env_M4_set=
> ac_cv_env_M4_value=
> ac_cv_env_YACC_set=
> ac_cv_env_YACC_value=
> ac_cv_env_YFLAGS_set=
> ac_cv_env_YFLAGS_value=
> ac_cv_env_build_alias_set=
> ac_cv_env_build_alias_value=
> ac_cv_env_host_alias_set=
> ac_cv_env_host_alias_value=
> ac_cv_env_target_alias_set=
> ac_cv_env_target_alias_value=
> ac_cv_host=i686-pc-cygwin
> ac_cv_path_install='/usr/bin/install -c'
> ac_cv_prog_AWK=gawk
> ac_cv_prog_make_make_set=yes
>
> ## ----------------- ##
> ## Output variables. ##
> ## ----------------- ##
>
> ABI=''
> ACLOCAL='${SHELL} /cygdrive/d/temp/gmp-4.3.2/missing --run aclocal-1.8'
> AMTAR='${SHELL} /cygdrive/d/temp/gmp-4.3.2/missing --run tar'
> ANSI2KNR=''
> AR=''
> AS=''
> ASMFLAGS=''
> AUTOCONF='${SHELL} /cygdrive/d/temp/gmp-4.3.2/missing --run autoconf'
> AUTOHEADER='${SHELL} /cygdrive/d/temp/gmp-4.3.2/missing --run autoheader'
> AUTOMAKE='${SHELL} /cygdrive/d/temp/gmp-4.3.2/missing --run automake-1.8'
> AWK='gawk'
> BITS_PER_MP_LIMB=''
> CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
> CC=''
> CCAS=''
> CC_FOR_BUILD=''
> CFLAGS=''
> CPP=''
> CPPFLAGS=''
> CPP_FOR_BUILD=''
> CXX=''
> CXXCPP=''
> CXXFLAGS=''
> CYGPATH_W='cygpath -w'
> DEFN_LONG_LONG_LIMB=''
> DEFS=''
> DLLTOOL=''
> ECHO='echo'
> ECHO_C=''
> ECHO_N='-n'
> ECHO_T=''
> EGREP=''
> ENABLE_STATIC_FALSE=''
> ENABLE_STATIC_TRUE=''
> EXEEXT=''
> EXEEXT_FOR_BUILD=''
> GMP_LDFLAGS=''
> GMP_NAIL_BITS='0'
> GREP=''
> HAVE_CLOCK_01=''
> HAVE_CPUTIME_01=''
> HAVE_GETRUSAGE_01=''
> HAVE_GETTIMEOFDAY_01=''
> HAVE_HOST_CPU_FAMILY_power='0'
> HAVE_HOST_CPU_FAMILY_powerpc='0'
> HAVE_SIGACTION_01=''
> HAVE_SIGALTSTACK_01=''
> HAVE_SIGSTACK_01=''
> HAVE_STACK_T_01=''
> HAVE_SYS_RESOURCE_H_01=''
> INSTALL_DATA='${INSTALL} -m 644'
> INSTALL_PROGRAM='${INSTALL}'
> INSTALL_SCRIPT='${INSTALL}'
> INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
> LDFLAGS=''
> LEX=''
> LEXLIB=''
> LEX_OUTPUT_ROOT=''
> LIBCURSES=''
> LIBGMPXX_LDFLAGS=''
> LIBGMP_DLL=''
> LIBGMP_LDFLAGS=''
> LIBM=''
> LIBM_FOR_BUILD=''
> LIBOBJS=''
> LIBREADLINE=''
> LIBS=''
> LIBTOOL=''
> LN_S=''
> LTLIBOBJS=''
> M4=''
> MAINT='#'
> MAINTAINER_MODE_FALSE=''
> MAINTAINER_MODE_TRUE='#'
> MAKEINFO='${SHELL} /cygdrive/d/temp/gmp-4.3.2/missing --run makeinfo'
> OBJDUMP=''
> OBJEXT=''
> PACKAGE='gmp'
> PACKAGE_BUGREPORT='gmp-bugs at gmplib.org'
> PACKAGE_NAME='GNU MP'
> PACKAGE_STRING='GNU MP 4.3.2'
> PACKAGE_TARNAME='gmp'
> PACKAGE_VERSION='4.3.2'
> PATH_SEPARATOR=':'
> RANLIB=''
> SED=''
> SET_MAKE=''
> SHELL='/bin/sh'
> SPEED_CYCLECOUNTER_OBJ='pentium.lo'
> STRIP=''
> TAL_OBJECT=''
> TUNE_SQR_OBJ=''
> U=''
> U_FOR_BUILD=''
> VERSION='4.3.2'
> WANT_CXX_FALSE=''
> WANT_CXX_TRUE=''
> WANT_MPBSD_FALSE=''
> WANT_MPBSD_TRUE='#'
> WITH_READLINE_01=''
> YACC=''
> YFLAGS=''
> ac_ct_CC=''
> ac_ct_CXX=''
> am__leading_dot='.'
> bindir='${exec_prefix}/bin'
> build='i686-pc-cygwin'
> build_alias=''
> build_cpu='i686'
> build_os='cygwin'
> build_vendor='pc'
> datadir='${datarootdir}'
> datarootdir='${prefix}/share'
> docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
> dvidir='${docdir}'
> exec_prefix='NONE'
> gmp_srclinks=''
> host='i686-pc-cygwin'
> host_alias=''
> host_cpu='i686'
> host_os='cygwin'
> host_vendor='pc'
> htmldir='${docdir}'
> includedir='${prefix}/include'
> infodir='${datarootdir}/info'
> install_sh='/cygdrive/d/temp/gmp-4.3.2/install-sh'
> libdir='${exec_prefix}/lib'
> libexecdir='${exec_prefix}/libexec'
> localedir='${datarootdir}/locale'
> localstatedir='${prefix}/var'
> mandir='${datarootdir}/man'
> mkdir_p='mkdir -p -- .'
> mpn_objects=''
> mpn_objs_in_libgmp=''
> mpn_objs_in_libmp=''
> oldincludedir='/usr/include'
> pdfdir='${docdir}'
> prefix='/cygdrive/d/gmp'
> program_transform_name='s,x,x,'
> psdir='${docdir}'
> sbindir='${exec_prefix}/sbin'
> sharedstatedir='${prefix}/com'
> sysconfdir='${prefix}/etc'
> target_alias=''
>
> ## ----------- ##
> ## confdefs.h. ##
> ## ----------- ##
>
> #define PACKAGE_NAME "GNU MP"
> #define PACKAGE_TARNAME "gmp"
> #define PACKAGE_VERSION "4.3.2"
> #define PACKAGE_STRING "GNU MP 4.3.2"
> #define PACKAGE_BUGREPORT "gmp-bugs at gmplib.org"
> #define PACKAGE "gmp"
> #define VERSION "4.3.2"
> #define WANT_FFT 1
> #define HAVE_HOST_CPU_i686 1
>
> configure: exit 1
>
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-discuss
>
>


-- 
Sam Rawlins


More information about the gmp-discuss mailing list