public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: Me Myself and I <stargate7thsymbol@live.co.uk>
To: <gcc-help@gcc.gnu.org>, <java@gcc.gnu.org>,
	<mingw-users@lists.sourceforge.net>
Subject: FW: Compiling and building vital libraries.
Date: Sun, 26 Feb 2012 05:23:00 -0000	[thread overview]
Message-ID: <BAY147-W3302F013DF0E87A1E1E60FD0680@phx.gbl> (raw)
In-Reply-To: <BAY147-W19E4BE244FBDE8D1B4243D0680@phx.gbl>

[-- Attachment #1: Type: text/plain, Size: 833 bytes --]


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; further complicated that I seem to have a working /bin/cpp already.

What changes do I need to introduce?

 		 	   		  

[-- Attachment #2: config.log --]
[-- Type: text/plain, Size: 12801 bytes --]

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

  reply	other threads:[~2012-02-26  5:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BAY147-W288FC78B943FB52BD48297D06B0@phx.gbl>
     [not found] ` <FF3C311ED8CA494BBA16BD88D8756C0C@desktop2>
     [not found]   ` <BAY147-W363C3B3100E8DF315C01CCD06B0@phx.gbl>
     [not found]     ` <418BF7963F914614B0CC31F6DF41CB6C@desktop2>
     [not found]       ` <83mx87s98f.fsf@gnu.org>
     [not found]         ` <94A2B27145A446C7ADFE1650F3742448@desktop2>
     [not found]           ` <83d393s68h.fsf@gnu.org>
     [not found]             ` <BAY147-W349EE06DED2CF3439A646FD06B0@phx.gbl>
2012-02-25  7:58               ` Compiling and building GMP library Me Myself and I
     [not found]               ` <83boons4ac.fsf@gnu.org>
     [not found]                 ` <BAY147-W5D5811BD1DDAE781EAFC3CC6B0@phx.gbl>
     [not found]                   ` <BAY147-W648ED9BABC8089D6B069D1D0680@phx.gbl>
2012-02-26  3:41                     ` [Mingw-users] Compiling and building vital libraries Sisyphus
2012-02-26  4:55                     ` Me Myself and I
2012-02-26  5:23                       ` Me Myself and I [this message]
2012-02-26 12:19                       ` Jonathan Wakely
     [not found]                     ` <BAY147-W5272C89F7640565FF4FB74CC680@phx.gbl>
     [not found]                       ` <BAY147-W867F1986291421088AE6ED0680@phx.gbl>
     [not found]                         ` <BAY147-W53ED28B35BCEEA8EED2E48CC680@phx.gbl>
2012-02-27  0:07                           ` Me Myself and I
2012-02-27  1:44                             ` Jonathan Wakely
2012-02-27  9:56                               ` Andrew Haley
     [not found]                                 ` <BAY147-W594F45667B67BA4B117FD0D0690@phx.gbl>
2012-02-29  0:03                                   ` FW: " Me Myself and I
2012-02-29  0:11                                     ` Jonathan Wakely
2012-02-29  0:58                                       ` Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY147-W3302F013DF0E87A1E1E60FD0680@phx.gbl \
    --to=stargate7thsymbol@live.co.uk \
    --cc=gcc-help@gcc.gnu.org \
    --cc=java@gcc.gnu.org \
    --cc=mingw-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).