Compiling and building vital libraries.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have installed mingw32 on 64 bit Windows 7 using

mingw-get-inst-20110530.exe

I have been referred to http://sourceforge.net/projects/gmpmingw/
for a mingw32 binary version of GMP.

I have the following in my etc/profile file:

export PATH="/home/User/nano":$PATH;
export PATH="/home/User/":$PATH;
export PATH="/home/User/gmp-5.0.2":$PATH;

I need to get the following working:

GMP
MPFR
MPC

I am finding now that 

"C preprocessor /lib/cpp  is failing a sanity check." when I attempt to compile MPFR, with the aforementioned binary GMP.

Are there any mingw32 people who know what I need to do to my /lib/cpp to get it behaving better?

The advice I have so far doesn't help, and I have also installed the default C++ which comes with the exe installer I have.

I'm about to try the cpp from source, but apart from that, is there anyone out there with advice to solve the problem?
 		 	   		  
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by MPFR configure 3.1.0, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = User-PC
uname -m = i686
uname -r = 1.0.17(0.48/3/2)
uname -s = MINGW32_NT-6.1
uname -v = 2011-04-24 23:39

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/User/gmp-5.0.2
PATH: /home/User/
PATH: /home/User/nano
PATH: .
PATH: /usr/local/bin
PATH: /mingw/bin
PATH: /bin
PATH: /c/Windows/system32
PATH: /c/Windows
PATH: /c/Windows/System32/Wbem
PATH: /c/Windows/System32/WindowsPowerShell/v1.0/
PATH: /c/Program Files (x86)/Common Files/Ulead Systems/MPEG
PATH: /c/Program Files (x86)/QuickTime/QTSystem/
PATH: /c/Program Files (x86)/Microsoft SQL Server/110/Tools/Binn/ManagementStudio/
PATH: /c/Program Files (x86)/Microsoft SQL Server/110/Tools/Binn/
PATH: /c/Program Files (x86)/Microsoft SQL Server/110/DTS/Binn/
PATH: /c/Program Files (x86)/SlikSvn/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2534: checking for a BSD-compatible install
configure:2602: result: /bin/install -c
configure:2613: checking whether build environment is sane
configure:2663: result: yes
configure:2804: checking for a thread-safe mkdir -p
configure:2843: result: /bin/mkdir -p
configure:2856: checking for gawk
configure:2872: found /bin/gawk
configure:2883: result: gawk
configure:2894: checking whether make sets $(MAKE)
configure:2916: result: yes
configure:2988: checking whether to disable maintainer-specific portions of Makefiles
configure:2997: result: yes
configure:3020: checking build system type
configure:3034: result: i686-pc-mingw32
configure:3054: checking host system type
configure:3067: result: i686-pc-mingw32
configure:3088: checking for grep that handles long lines and -e
configure:3146: result: /bin/grep
configure:3151: checking for egrep
configure:3213: result: /bin/grep -E
configure:3218: checking for a sed that does not truncate output
configure:3282: result: /bin/sed
configure:3452: checking for CC and CFLAGS in gmp.h
configure:3476: result: no
configure:3553: checking for gcc
configure:3569: found /mingw/bin/gcc
configure:3580: result: gcc
configure:3809: checking for C compiler version
configure:3818: gcc --version >&5
gcc.exe (GCC) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3829: $? = 0
configure:3818: gcc -v >&5
Using built-in specs.
COLLECT_GCC=C:\MinGW\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.2/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.5.2/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --disable-werror --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.5.2 (GCC) 
configure:3829: $? = 0
configure:3818: gcc -V >&5
gcc.exe: '-V' option must have argument
configure:3829: $? = 1
configure:3818: gcc -qversion >&5
gcc.exe: unrecognized option '-qversion'
gcc.exe: no input files
configure:3829: $? = 1
configure:3849: checking whether the C compiler works
configure:3871: gcc    conftest.c  >&5
configure:3875: $? = 0
configure:3923: result: yes
configure:3926: checking for C compiler default output file name
configure:3928: result: a.exe
configure:3934: checking for suffix of executables
configure:3941: gcc -o conftest.exe    conftest.c  >&5
configure:3945: $? = 0
configure:3967: result: .exe
configure:3989: checking whether we are cross compiling
configure:3997: gcc -o conftest.exe    conftest.c  >&5
configure:4001: $? = 0
configure:4008: ./conftest.exe
configure:4012: $? = 0
configure:4027: result: no
configure:4032: checking for suffix of object files
configure:4054: gcc -c   conftest.c >&5
configure:4058: $? = 0
configure:4079: result: o
configure:4083: checking whether we are using the GNU C compiler
configure:4102: gcc -c   conftest.c >&5
configure:4102: $? = 0
configure:4111: result: yes
configure:4120: checking whether gcc accepts -g
configure:4140: gcc -c -g  conftest.c >&5
configure:4140: $? = 0
configure:4181: result: yes
configure:4198: checking for gcc option to accept ISO C89
configure:4262: gcc  -c -g -O2  conftest.c >&5
configure:4262: $? = 0
configure:4275: result: none needed
configure:4306: checking for style of include used by make
configure:4334: result: GNU
configure:4359: checking dependency style of gcc
configure:4469: result: gcc3
configure:4489: checking how to run the C preprocessor
configure:4520: gcc -E  conftest.c
configure:4520: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MPFR"
| #define PACKAGE_TARNAME "mpfr"
| #define PACKAGE_VERSION "3.1.0"
| #define PACKAGE_STRING "MPFR 3.1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:4520: gcc -E  conftest.c
configure:4520: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MPFR"
| #define PACKAGE_TARNAME "mpfr"
| #define PACKAGE_VERSION "3.1.0"
| #define PACKAGE_STRING "MPFR 3.1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:4520: gcc -E -traditional-cpp  conftest.c
configure:4520: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MPFR"
| #define PACKAGE_TARNAME "mpfr"
| #define PACKAGE_VERSION "3.1.0"
| #define PACKAGE_STRING "MPFR 3.1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:4520: gcc -E -traditional-cpp  conftest.c
configure:4520: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MPFR"
| #define PACKAGE_TARNAME "mpfr"
| #define PACKAGE_VERSION "3.1.0"
| #define PACKAGE_STRING "MPFR 3.1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:4520: /lib/cpp  conftest.c
./configure: line 1608: /lib/cpp: No such file or directory
configure:4520: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MPFR"
| #define PACKAGE_TARNAME "mpfr"
| #define PACKAGE_VERSION "3.1.0"
| #define PACKAGE_STRING "MPFR 3.1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:4520: /lib/cpp  conftest.c
./configure: line 1608: /lib/cpp: No such file or directory
configure:4520: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MPFR"
| #define PACKAGE_TARNAME "mpfr"
| #define PACKAGE_VERSION "3.1.0"
| #define PACKAGE_STRING "MPFR 3.1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:4559: result: /lib/cpp
configure:4579: /lib/cpp  conftest.c
./configure: line 1608: /lib/cpp: No such file or directory
configure:4579: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MPFR"
| #define PACKAGE_TARNAME "mpfr"
| #define PACKAGE_VERSION "3.1.0"
| #define PACKAGE_STRING "MPFR 3.1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:4579: /lib/cpp  conftest.c
./configure: line 1608: /lib/cpp: No such file or directory
configure:4579: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MPFR"
| #define PACKAGE_TARNAME "mpfr"
| #define PACKAGE_VERSION "3.1.0"
| #define PACKAGE_STRING "MPFR 3.1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:4609: error: in `/home/User/mpfr-3.1.0':
configure:4611: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-mingw32
ac_cv_c_compiler_gnu=yes
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_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_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_exeext=.exe
ac_cv_host=i686-pc-mingw32
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
ac_cv_path_SED=/bin/sed
ac_cv_path_install='/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP=/lib/cpp
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=gcc3

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/User/mpfr-3.1.0/missing --run aclocal-1.11'
ALLOCA=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/User/mpfr-3.1.0/missing --run tar'
ANSI2KNR=''
AR=''
AS=''
AUTOCONF='${SHELL} /home/User/mpfr-3.1.0/missing --run autoconf'
AUTOHEADER='${SHELL} /home/User/mpfr-3.1.0/missing --run autoheader'
AUTOMAKE='${SHELL} /home/User/mpfr-3.1.0/missing --run automake-1.11'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='/lib/cpp'
CPPFLAGS=''
CYGPATH_W='echo'
DATAFILES=''
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT='.exe'
FGREP=''
GREP='/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LIBMPFR_LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE='#'
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} /home/User/mpfr-3.1.0/missing --run makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/bin/mkdir -p'
MPFR_LDFLAGS=''
MPFR_LIBM=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT='o'
OTOOL64=''
OTOOL=''
PACKAGE='mpfr'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='MPFR'
PACKAGE_STRING='MPFR 3.1.0'
PACKAGE_TARNAME='mpfr'
PACKAGE_URL=''
PACKAGE_VERSION='3.1.0'
PATH_SEPARATOR=':'
RANLIB=''
SED='/bin/sed'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
U=''
VERSION='3.1.0'
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-mingw32'
build_alias=''
build_cpu='i686'
build_os='mingw32'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-mingw32'
host_alias=''
host_cpu='i686'
host_os='mingw32'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/User/mpfr-3.1.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "MPFR"
#define PACKAGE_TARNAME "mpfr"
#define PACKAGE_VERSION "3.1.0"
#define PACKAGE_STRING "MPFR 3.1.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 1

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux