Question on installing GMP 5.0.3 on MacOS

Frank Thorne thornef at mailbox.sc.edu
Wed Feb 8 22:37:13 CET 2012


Hello all --

I'd be very grateful for any help from any of you!

I attempted to install GMP 5.0.3 on my MacBook, details:

Darwin lc073.math.sc.edu 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
frank-thornes-macbook-2:gmp-5.0.3 frankthorne$ ./config.guess
core2-apple-darwin9.8.0

I encountered the error described here:

http://gmplib.org/list-archives/gmp-bugs/2010-January/001837.html

I attempted to use the workaround there, namely, to make gmp with the 
command

CC=gcc-4.2 CXX=g++4.2 ./configure

However, I got the following error:

configure: error: in `/Users/frankthorne/Downloads/gmp-5.0.3':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

I copied the contents of config.log below.

I might mention that I'm rather in over my head; I know basically nothing 
about Linux/Unix C compliation or system administration, this is a 
dependency of another program (PARI/GP), which in turn is a dependency of 
another program (Karim Belabas's cubic) which I am attempting to compile 
so I can run it.

If anyone can suggest what I might do, please let me know. I have read the 
documentation and searched the internet to the extent of my ability.

THANK YOU VERY MUCH.

Kind regards,
Frank Thorne



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 5.0.3, which was
generated by GNU Autoconf 2.65.  Invocation command line was

   $ ./configure

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

hostname = lc073.math.sc.edu
uname -m = i386
uname -r = 9.8.0
uname -s = Darwin
uname -v = Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; 
root:xnu-1228.15.4~1/RELEASE_I386

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

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
 	 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; 
root:xnu-1228.15.4~1/RELEASE_I386
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 1.00 gigabytes
Default processor set: 76 tasks, 336 threads, 2 processors
Load average: 0.27, Mach factor: 1.72
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/texbin
PATH: /usr/X11/bin


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

configure:3024: checking build system type
configure:3038: result: core2-apple-darwin9.8.0
configure:3058: checking host system type
configure:3071: result: core2-apple-darwin9.8.0
configure:3108: checking for a BSD-compatible install
configure:3176: result: /usr/bin/install -c
configure:3187: checking whether build environment is sane
configure:3237: result: yes
configure:3378: checking for a thread-safe mkdir -p
configure:3417: result: ./install-sh -c -d
configure:3430: checking for gawk
configure:3460: result: no
configure:3430: checking for mawk
configure:3460: result: no
configure:3430: checking for nawk
configure:3460: result: no
configure:3430: checking for awk
configure:3446: found /usr/bin/awk
configure:3457: result: awk
configure:3468: checking whether make sets $(MAKE)
configure:3490: result: yes
configure:3573: checking whether to enable maintainer-specific portions of 
Makefiles
configure:3582: result: no
User:
ABI=
CC=gcc-4.2
CFLAGS=(unset)
CPPFLAGS=(unset)
MPN_PATH=
GMP:
abilist=64 32
cclist=gcc icc cc
configure:5361: gcc-4.2 -c conftest.c >&5
configure:5364: $? = 0
configure:5367: checking whether gcc-4.2 is gcc
configure:5369: result: yes
configure:5383: gcc-4.2 2>&1 | grep xlc >/dev/null
configure:5386: $? = 1
configure:5440: checking compiler gcc-4.2 -O2 -pedantic -m64
Test compile:
configure:5454: gcc-4.2 -O2 -pedantic -m64  conftest.c >&5
configure:5457: $? = 0
configure:5462: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5465: $? = 0
Test compile: function pointer return
configure:5508: gcc-4.2 -O2 -pedantic -m64  conftest.c >&5
configure:5511: $? = 0
configure:5516: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5519: $? = 0
Test compile: cmov instruction
configure:5564: gcc-4.2 -O2 -pedantic -m64  conftest.c >&5
configure:5567: $? = 0
configure:5572: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5575: $? = 0
Test compile: double -> ulong conversion
configure:5621: gcc-4.2 -O2 -pedantic -m64  conftest.c >&5
configure:5624: $? = 0
configure:5629: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5632: $? = 0
Test compile: double negation
configure:5676: gcc-4.2 -O2 -pedantic -m64  conftest.c >&5
configure:5679: $? = 0
configure:5684: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5687: $? = 0
Test compile: double -> float conversion
configure:5732: gcc-4.2 -O2 -pedantic -m64  conftest.c >&5
configure:5735: $? = 0
configure:5740: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5743: $? = 0
Test compile: gnupro alpha ev6 char spilling
configure:5817: gcc-4.2 -O2 -pedantic -m64  conftest.c >&5
configure:5820: $? = 0
configure:5825: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5828: $? = 0
Test compile: __builtin_alloca availability
configure:5868: gcc-4.2 -O2 -pedantic -m64  conftest.c >&5
Undefined symbols:
   "_main", referenced from:
       start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
configure:5871: $? = 1
failed program was:
int k; int foo () { __builtin_alloca (k); }
Test compile: abs int -> double conversion
configure:5992: gcc-4.2 -O2 -pedantic -m64  conftest.c >&5
configure:5995: $? = 0
configure:6000: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:6003: $? = 0
Test compile: long long reliability test 1
configure:6056: gcc-4.2 -O2 -pedantic -m64  conftest.c >&5
conftest.c:6: warning: ISO C90 does not support 'long long'
configure:6059: $? = 0
configure:6064: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:6067: $? = 0
Test compile: long long reliability test 2
configure:6116: gcc-4.2 -O2 -pedantic -m64  conftest.c >&5
conftest.c: In function 'f':
conftest.c:6: warning: ISO C90 does not support 'long long'
configure:6119: $? = 0
configure:6124: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:6127: $? = 0
Test compile: mpn_lshift_com optimization
configure:6215: gcc-4.2 -O2 -pedantic -m64  conftest.c >&5
configure:6218: $? = 0
configure:6223: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:6226: $? = 0
Test compile: mpn_lshift_com optimization 2
configure:6323: gcc-4.2 -O2 -pedantic -m64  conftest.c >&5
configure:6326: $? = 0
configure:6331: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:6334: $? = 0
configure:6480: result: yes
configure:6983: checking compiler gcc-4.2 -O2 -pedantic -m64  -mtune=core2
Test compile:
configure:6997: gcc-4.2 -O2 -pedantic -m64  -mtune=core2 conftest.c >&5
configure:7000: $? = 0
configure:7005: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7008: $? = 0
Test compile: function pointer return
configure:7051: gcc-4.2 -O2 -pedantic -m64  -mtune=core2 conftest.c >&5
configure:7054: $? = 0
configure:7059: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7062: $? = 0
Test compile: cmov instruction
configure:7107: gcc-4.2 -O2 -pedantic -m64  -mtune=core2 conftest.c >&5
configure:7110: $? = 0
configure:7115: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7118: $? = 0
Test compile: double -> ulong conversion
configure:7164: gcc-4.2 -O2 -pedantic -m64  -mtune=core2 conftest.c >&5
configure:7167: $? = 0
configure:7172: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7175: $? = 0
Test compile: double negation
configure:7219: gcc-4.2 -O2 -pedantic -m64  -mtune=core2 conftest.c >&5
configure:7222: $? = 0
configure:7227: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7230: $? = 0
Test compile: double -> float conversion
configure:7275: gcc-4.2 -O2 -pedantic -m64  -mtune=core2 conftest.c >&5
configure:7278: $? = 0
configure:7283: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7286: $? = 0
Test compile: gnupro alpha ev6 char spilling
configure:7360: gcc-4.2 -O2 -pedantic -m64  -mtune=core2 conftest.c >&5
configure:7363: $? = 0
configure:7368: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7371: $? = 0
Test compile: __builtin_alloca availability
configure:7411: gcc-4.2 -O2 -pedantic -m64  -mtune=core2 conftest.c >&5
Undefined symbols:
   "_main", referenced from:
       start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
configure:7414: $? = 1
failed program was:
int k; int foo () { __builtin_alloca (k); }
Test compile: abs int -> double conversion
configure:7535: gcc-4.2 -O2 -pedantic -m64  -mtune=core2 conftest.c >&5
configure:7538: $? = 0
configure:7543: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7546: $? = 0
Test compile: long long reliability test 1
configure:7599: gcc-4.2 -O2 -pedantic -m64  -mtune=core2 conftest.c >&5
conftest.c:6: warning: ISO C90 does not support 'long long'
configure:7602: $? = 0
configure:7607: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7610: $? = 0
Test compile: long long reliability test 2
configure:7659: gcc-4.2 -O2 -pedantic -m64  -mtune=core2 conftest.c >&5
conftest.c: In function 'f':
conftest.c:6: warning: ISO C90 does not support 'long long'
configure:7662: $? = 0
configure:7667: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7670: $? = 0
Test compile: mpn_lshift_com optimization
configure:7758: gcc-4.2 -O2 -pedantic -m64  -mtune=core2 conftest.c >&5
configure:7761: $? = 0
configure:7766: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7769: $? = 0
Test compile: mpn_lshift_com optimization 2
configure:7866: gcc-4.2 -O2 -pedantic -m64  -mtune=core2 conftest.c >&5
configure:7869: $? = 0
configure:7874: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7877: $? = 0
configure:8023: result: yes
configure:6983: checking compiler gcc-4.2 -O2 -pedantic -m64 -mtune=core2 
-march=core2
Test compile:
configure:6997: gcc-4.2 -O2 -pedantic -m64 -mtune=core2  -march=core2 
conftest.c >&5
configure:7000: $? = 0
configure:7005: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7008: $? = 0
Test compile: function pointer return
configure:7051: gcc-4.2 -O2 -pedantic -m64 -mtune=core2  -march=core2 
conftest.c >&5
configure:7054: $? = 0
configure:7059: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7062: $? = 0
Test compile: cmov instruction
configure:7107: gcc-4.2 -O2 -pedantic -m64 -mtune=core2  -march=core2 
conftest.c >&5
configure:7110: $? = 0
configure:7115: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7118: $? = 0
Test compile: double -> ulong conversion
configure:7164: gcc-4.2 -O2 -pedantic -m64 -mtune=core2  -march=core2 
conftest.c >&5
configure:7167: $? = 0
configure:7172: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7175: $? = 0
Test compile: double negation
configure:7219: gcc-4.2 -O2 -pedantic -m64 -mtune=core2  -march=core2 
conftest.c >&5
configure:7222: $? = 0
configure:7227: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7230: $? = 0
Test compile: double -> float conversion
configure:7275: gcc-4.2 -O2 -pedantic -m64 -mtune=core2  -march=core2 
conftest.c >&5
configure:7278: $? = 0
configure:7283: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7286: $? = 0
Test compile: gnupro alpha ev6 char spilling
configure:7360: gcc-4.2 -O2 -pedantic -m64 -mtune=core2  -march=core2 
conftest.c >&5
configure:7363: $? = 0
configure:7368: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7371: $? = 0
Test compile: __builtin_alloca availability
configure:7411: gcc-4.2 -O2 -pedantic -m64 -mtune=core2  -march=core2 
conftest.c >&5
Undefined symbols:
   "_main", referenced from:
       start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
configure:7414: $? = 1
failed program was:
int k; int foo () { __builtin_alloca (k); }
Test compile: abs int -> double conversion
configure:7535: gcc-4.2 -O2 -pedantic -m64 -mtune=core2  -march=core2 
conftest.c >&5
configure:7538: $? = 0
configure:7543: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7546: $? = 0
Test compile: long long reliability test 1
configure:7599: gcc-4.2 -O2 -pedantic -m64 -mtune=core2  -march=core2 
conftest.c >&5
conftest.c:6: warning: ISO C90 does not support 'long long'
configure:7602: $? = 0
configure:7607: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7610: $? = 0
Test compile: long long reliability test 2
configure:7659: gcc-4.2 -O2 -pedantic -m64 -mtune=core2  -march=core2 
conftest.c >&5
conftest.c: In function 'f':
conftest.c:6: warning: ISO C90 does not support 'long long'
configure:7662: $? = 0
configure:7667: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7670: $? = 0
Test compile: mpn_lshift_com optimization
configure:7758: gcc-4.2 -O2 -pedantic -m64 -mtune=core2  -march=core2 
conftest.c >&5
configure:7761: $? = 0
configure:7766: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7769: $? = 0
Test compile: mpn_lshift_com optimization 2
configure:7866: gcc-4.2 -O2 -pedantic -m64 -mtune=core2  -march=core2 
conftest.c >&5
configure:7869: $? = 0
configure:7874: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:7877: $? = 0
configure:8023: result: yes
configure:8172: checking for gcc
configure:8199: result: gcc-4.2
configure:8428: checking for C compiler version
configure:8437: gcc-4.2 --version >&5
i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5574)
Copyright (C) 2007 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:8448: $? = 0
configure:8437: gcc-4.2 -v >&5
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc_42/gcc_42-5574~1/src/configure 
--disable-checking --enable-werror --prefix=/usr --mandir=/usr/share/man 
--enable-languages=c,objc,c++,obj-c++ 
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib 
--build=i686-apple-darwin9 --with-gxx-include-dir=/usr/include/c++/4.0.0 
--host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5574)
configure:8448: $? = 0
configure:8437: gcc-4.2 -V >&5
gcc-4.2: argument to `-V' is missing
configure:8448: $? = 1
configure:8437: gcc-4.2 -qversion >&5
i686-apple-darwin9-gcc-4.2.1: no input files
configure:8448: $? = 1
configure:8468: checking whether the C compiler works
configure:8490: gcc-4.2 -O2 -pedantic -m64 -mtune=core2 -march=core2 
conftest.c  >&5
configure:8494: $? = 0
configure:8543: result: yes
configure:8546: checking for C compiler default output file name
configure:8548: result: a.out
configure:8554: checking for suffix of executables
configure:8561: gcc-4.2 -o conftest -O2 -pedantic -m64 -mtune=core2 
-march=core2   conftest.c  >&5
configure:8565: $? = 0
configure:8587: result:
configure:8609: checking whether we are cross compiling
configure:8617: gcc-4.2 -o conftest -O2 -pedantic -m64 -mtune=core2 
-march=core2   conftest.c  >&5
configure:8621: $? = 0
configure:8628: ./conftest
configure:8632: $? = 0
configure:8647: result: no
configure:8652: checking for suffix of object files
configure:8674: gcc-4.2 -c -O2 -pedantic -m64 -mtune=core2 -march=core2 
conftest.c >&5
configure:8678: $? = 0
configure:8699: result: o
configure:8703: checking whether we are using the GNU C compiler
configure:8722: gcc-4.2 -c -O2 -pedantic -m64 -mtune=core2 -march=core2 
conftest.c >&5
configure:8722: $? = 0
configure:8731: result: yes
configure:8740: checking whether gcc-4.2 accepts -g
configure:8760: gcc-4.2 -c -g  conftest.c >&5
configure:8760: $? = 0
configure:8801: result: yes
configure:8818: checking for gcc-4.2 option to accept ISO C89
configure:8882: gcc-4.2  -c -O2 -pedantic -m64 -mtune=core2 -march=core2 
conftest.c >&5
configure:8882: $? = 0
configure:8895: result: none needed
configure:8919: checking for gcc-4.2 option to accept ISO C99
configure:9068: gcc-4.2  -c -O2 -pedantic -m64 -mtune=core2 -march=core2 
conftest.c >&5
conftest.c:21:1: warning: C++ style comments are not allowed in ISO C90
conftest.c:21:1: warning: (this will be reported only once per input file)
conftest.c:22:15: warning: anonymous variadic macros were introduced in 
C99
conftest.c:23:18: warning: anonymous variadic macros were introduced in 
C99
conftest.c:24:21: warning: anonymous variadic macros were introduced in 
C99
conftest.c:40:6: warning: use of C99 long long integer constant
conftest.c:40:6: warning: use of C99 long long integer constant
conftest.c:40:6: warning: use of C99 long long integer constant
conftest.c:43:5: warning: use of C99 long long integer constant
conftest.c:43:5: warning: use of C99 long long integer constant
conftest.c:43:5: warning: use of C99 long long integer constant
conftest.c:47: warning: ISO C90 does not support 'long long'
conftest.c:47:32: warning: use of C99 long long integer constant
conftest.c:48: warning: ISO C90 does not support 'long long'
conftest.c:48:41: warning: use of C99 long long integer constant
conftest.c:53: warning: ISO C90 does not support flexible array members
conftest.c:65: error: expected ';', ',' or ')' before 'text'
conftest.c: In function 'test_varargs':
conftest.c:81: warning: ISO C90 forbids mixed declarations and code
conftest.c:84: warning: ISO C90 forbids mixed declarations and code
conftest.c: In function 'main':
conftest.c:119: warning: ISO C forbids nested functions
conftest.c:119: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'newvar'
conftest.c:119: warning: ISO C90 forbids mixed declarations and code
conftest.c:119: error: 'newvar' undeclared (first use in this function)
conftest.c:119: error: (Each undeclared identifier is reported only once
conftest.c:119: error: for each function it appears in.)
conftest.c:126: warning: ISO C90 forbids mixed declarations and code
conftest.c:129: error: 'for' loop initial declaration used outside C99 
mode
conftest.c:134: warning: ISO C90 forbids specifying subobject to 
initialize
conftest.c:135: warning: ISO C90 forbids specifying subobject to 
initialize
conftest.c:136: warning: ISO C90 forbids specifying subobject to 
initialize
conftest.c:133: warning: ISO C90 forbids mixed declarations and code
conftest.c:141: warning: ISO C90 forbids variable-size array 
'dynamic_array'
conftest.c:141: warning: ISO C90 forbids mixed declarations and code
conftest.c:145:33: warning: use of C99 long long integer constant
conftest.c:145:51: warning: use of C99 long long integer constant
configure:9068: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU MP"
| #define PACKAGE_TARNAME "gmp"
| #define PACKAGE_VERSION "5.0.3"
| #define PACKAGE_STRING "GNU MP 5.0.3"
| #define PACKAGE_BUGREPORT "gmp-bugs at gmplib.org, see 
http://gmplib.org/manual/Reporting-Bugs.html"
| #define PACKAGE_URL "http://www.gnu.org/software/gmp/"
| #define PACKAGE "gmp"
| #define VERSION "5.0.3"
| #define WANT_FFT 1
| #define HAVE_HOST_CPU_core2 1
| #define HAVE_SPEED_CYCLECOUNTER 2
| #define HAVE_CALLING_CONVENTIONS 1
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdbool.h>
| #include <stdlib.h>
| #include <wchar.h>
| #include <stdio.h>
|
| // Check varargs macros.  These examples are taken from C99 6.10.3.5.
| #define debug(...) fprintf (stderr, __VA_ARGS__)
| #define showlist(...) puts (#__VA_ARGS__)
| #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
| static void
| test_varargs_macros (void)
| {
|   int x = 1234;
|   int y = 5678;
|   debug ("Flag");
|   debug ("X = %d\n", x);
|   showlist (The first, second, and third items.);
|   report (x>y, "x is %d but y is %d", x, y);
| }
|
| // Check long long types.
| #define BIG64 18446744073709551615ull
| #define BIG32 4294967295ul
| #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
| #if !BIG_OK
|   your preprocessor is broken;
| #endif
| #if BIG_OK
| #else
|   your preprocessor is broken;
| #endif
| static long long int bignum = -9223372036854775807LL;
| static unsigned long long int ubignum = BIG64;
|
| struct incomplete_array
| {
|   int datasize;
|   double data[];
| };
|
| struct named_init {
|   int number;
|   const wchar_t *name;
|   double average;
| };
|
| typedef const char *ccp;
|
| static inline int
| test_restrict (ccp restrict text)
| {
|   // See if C++-style comments work.
|   // Iterate through items via the restricted pointer.
|   // Also check for declarations in for loops.
|   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
|     continue;
|   return 0;
| }
|
| // Check varargs and va_copy.
| static void
| test_varargs (const char *format, ...)
| {
|   va_list args;
|   va_start (args, format);
|   va_list args_copy;
|   va_copy (args_copy, args);
|
|   const char *str;
|   int number;
|   float fnumber;
|
|   while (*format)
|     {
|       switch (*format++)
| 	{
| 	case 's': // string
| 	  str = va_arg (args_copy, const char *);
| 	  break;
| 	case 'd': // int
| 	  number = va_arg (args_copy, int);
| 	  break;
| 	case 'f': // float
| 	  fnumber = va_arg (args_copy, double);
| 	  break;
| 	default:
| 	  break;
| 	}
|     }
|   va_end (args_copy);
|   va_end (args);
| }
|
| int
| main ()
| {
|
|   // Check bool.
|   _Bool success = false;
|
|   // Check restrict.
|   if (test_restrict ("String literal") == 0)
|     success = true;
|   char *restrict newvar = "Another string";
|
|   // Check varargs.
|   test_varargs ("s, d' f .", "string", 65, 34.234);
|   test_varargs_macros ();
|
|   // Check flexible array members.
|   struct incomplete_array *ia =
|     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
|   ia->datasize = 10;
|   for (int i = 0; i < ia->datasize; ++i)
|     ia->data[i] = i * 1.234;
|
|   // Check named initializers.
|   struct named_init ni = {
|     .number = 34,
|     .name = L"Test wide string",
|     .average = 543.34343,
|   };
|
|   ni.number = 58;
|
|   int dynamic_array[ni.number];
|   dynamic_array[ni.number - 1] = 543;
|
|   // work around unused variable warnings
|   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 
'x'
| 	  || dynamic_array[ni.number - 1] != 543);
|
|   ;
|   return 0;
| }
configure:9068: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:9068: $? = 0
configure:9088: result: -std=gnu99
configure:9190: checking for gcc-4.2 -std=gnu99 option to accept ISO 
Standard C
configure:9204: result: -std=gnu99
configure:9213: checking how to run the C preprocessor
configure:9244: gcc-4.2 -std=gnu99 -E  conftest.c
configure:9244: $? = 0
configure:9258: gcc-4.2 -std=gnu99 -E  conftest.c
conftest.c:15:28: error: ac_nonexistent.h: No such file or directory
configure:9258: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU MP"
| #define PACKAGE_TARNAME "gmp"
| #define PACKAGE_VERSION "5.0.3"
| #define PACKAGE_STRING "GNU MP 5.0.3"
| #define PACKAGE_BUGREPORT "gmp-bugs at gmplib.org, see 
http://gmplib.org/manual/Reporting-Bugs.html"
| #define PACKAGE_URL "http://www.gnu.org/software/gmp/"
| #define PACKAGE "gmp"
| #define VERSION "5.0.3"
| #define WANT_FFT 1
| #define HAVE_HOST_CPU_core2 1
| #define HAVE_SPEED_CYCLECOUNTER 2
| #define HAVE_CALLING_CONVENTIONS 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:9283: result: gcc-4.2 -std=gnu99 -E
configure:9303: gcc-4.2 -std=gnu99 -E  conftest.c
configure:9303: $? = 0
configure:9317: gcc-4.2 -std=gnu99 -E  conftest.c
conftest.c:15:28: error: ac_nonexistent.h: No such file or directory
configure:9317: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU MP"
| #define PACKAGE_TARNAME "gmp"
| #define PACKAGE_VERSION "5.0.3"
| #define PACKAGE_STRING "GNU MP 5.0.3"
| #define PACKAGE_BUGREPORT "gmp-bugs at gmplib.org, see 
http://gmplib.org/manual/Reporting-Bugs.html"
| #define PACKAGE_URL "http://www.gnu.org/software/gmp/"
| #define PACKAGE "gmp"
| #define VERSION "5.0.3"
| #define WANT_FFT 1
| #define HAVE_HOST_CPU_core2 1
| #define HAVE_SPEED_CYCLECOUNTER 2
| #define HAVE_CALLING_CONVENTIONS 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:9371: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:9371: $? = 0
configure:9451: checking build system compiler gcc-4.2 -std=gnu99
configure:9464: gcc-4.2 -std=gnu99 conftest.c
conftest.c: In function 'main':
conftest.c:4: warning: implicit declaration of function 'exit'
conftest.c:4: warning: incompatible implicit declaration of built-in 
function 'exit'
configure:9467: $? = 0
configure:9474: result: yes
configure:9493: checking for build system preprocessor
configure:9504: gcc-4.2 -std=gnu99 -E conftest.c
# 1 "conftest.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "conftest.c"
configure:9507: $? = 0
configure:9522: result: gcc-4.2 -std=gnu99 -E
configure:9529: checking for build system executable suffix
configure:9543: gcc-4.2 -std=gnu99 conftest.c -o conftest.exe
conftest.c: In function 'main':
conftest.c:4: warning: implicit declaration of function 'exit'
conftest.c:4: warning: incompatible implicit declaration of built-in 
function 'exit'
configure:9546: $? = 0
./configure: line 9548: ./conftest: No such file or directory
configure:9543: gcc-4.2 -std=gnu99 conftest.c -o conftest,ff8
conftest.c: In function 'main':
conftest.c:4: warning: implicit declaration of function 'exit'
conftest.c:4: warning: incompatible implicit declaration of built-in 
function 'exit'
configure:9546: $? = 0
./configure: line 9548: ./conftest: No such file or directory
configure:9543: gcc-4.2 -std=gnu99 conftest.c -o conftest
conftest.c: In function 'main':
conftest.c:4: warning: implicit declaration of function 'exit'
conftest.c:4: warning: incompatible implicit declaration of built-in 
function 'exit'
configure:9546: $? = 0
configure:9560: result:
configure:9566: checking whether build system compiler is ANSI
configure:9579: gcc-4.2 -std=gnu99 conftest.c
conftest.c: In function 'main':
conftest.c:4: warning: implicit declaration of function 'exit'
conftest.c:4: warning: incompatible implicit declaration of built-in 
function 'exit'
configure:9582: $? = 0
configure:9591: result: yes
configure:9601: checking for build system compiler math library
configure:9620: gcc-4.2 -std=gnu99 conftest.c -lm
conftest.c: In function 'main':
conftest.c:4: warning: implicit declaration of function 'exit'
conftest.c:4: warning: incompatible implicit declaration of built-in 
function 'exit'
conftest.c: In function 'foo':
conftest.c:10: warning: implicit declaration of function 'log'
conftest.c:10: warning: incompatible implicit declaration of built-in 
function 'log'
configure:9623: $? = 0
configure:9632: result: -lm
configure:10243: checking for grep that handles long lines and -e
configure:10301: result: /usr/bin/grep
configure:10306: checking for egrep
configure:10368: result: /usr/bin/grep -E
Decided:
ABI=64
CC=gcc-4.2 -std=gnu99
CFLAGS=-O2 -pedantic -m64 -mtune=core2 -march=core2
CPPFLAGS=
GMP_LDFLAGS=
CXX=g++4.2
CXXFLAGS=
path= x86_64/core2 x86_64 generic
configure:10638: checking for function prototypes
configure:10641: result: yes
configure:10654: checking for ANSI C header files
configure:10674: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:10674: $? = 0
configure:10747: gcc-4.2 -std=gnu99 -o conftest -O2 -pedantic -m64 
-mtune=core2 -march=core2   conftest.c  >&5
configure:10747: $? = 0
configure:10747: ./conftest
configure:10747: $? = 0
configure:10758: result: yes
configure:10771: checking for sys/types.h
configure:10771: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:10771: $? = 0
configure:10771: result: yes
configure:10771: checking for sys/stat.h
configure:10771: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:10771: $? = 0
configure:10771: result: yes
configure:10771: checking for stdlib.h
configure:10771: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:10771: $? = 0
configure:10771: result: yes
configure:10771: checking for string.h
configure:10771: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:10771: $? = 0
configure:10771: result: yes
configure:10771: checking for memory.h
configure:10771: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:10771: $? = 0
configure:10771: result: yes
configure:10771: checking for strings.h
configure:10771: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:10771: $? = 0
configure:10771: result: yes
configure:10771: checking for inttypes.h
configure:10771: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:10771: $? = 0
configure:10771: result: yes
configure:10771: checking for stdint.h
configure:10771: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:10771: $? = 0
configure:10771: result: yes
configure:10771: checking for unistd.h
configure:10771: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:10771: $? = 0
configure:10771: result: yes
configure:10794: checking for string.h
configure:10794: result: yes
configure:10807: checking whether assembler supports --noexecstack option
configure:10817: gcc-4.2 -std=gnu99 -O2 -pedantic -m64 -mtune=core2 
-march=core2
                      -S -o conftest.s conftest.c >/dev/null
configure:10820: $? = 0
configure:10837: result: no
configure:10890: checking for ar
configure:10906: found /usr/bin/ar
configure:10917: result: ar
configure:10958: checking for BSD- or MS-compatible name lister (nm)
configure:11007: result: /usr/bin/nm -p
configure:11137: checking the name lister (/usr/bin/nm -p) interface
configure:11144: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:11147: /usr/bin/nm -p "conftest.o"
configure:11150: output
0000000000000000 D _some_variable
configure:11157: result: BSD nm
configure:11846: checking how to print strings
configure:11873: result: printf
configure:11894: checking for a sed that does not truncate output
configure:11958: result: /usr/bin/sed
configure:11976: checking for fgrep
configure:12038: result: /usr/bin/grep -F
configure:12073: checking for ld used by gcc-4.2 -std=gnu99
configure:12140: result: /usr/libexec/gcc/i686-apple-darwin9/4.2.1/ld
configure:12147: checking if the linker 
(/usr/libexec/gcc/i686-apple-darwin9/4.2.1/ld) is GNU ld
configure:12162: result: no
configure:12174: checking whether ln -s works
configure:12178: result: yes
configure:12186: checking the maximum length of command line arguments
configure:12316: result: 196608
configure:12333: checking whether the shell understands some XSI 
constructs
configure:12343: result: yes
configure:12347: checking whether the shell understands "+="
configure:12353: result: yes
configure:12388: checking how to convert core2-apple-darwin9.8.0 file 
names to core2-apple-darwin9.8.0 format
configure:12428: result: func_convert_file_noop
configure:12435: checking how to convert core2-apple-darwin9.8.0 file 
names to toolchain format
configure:12455: result: func_convert_file_noop
configure:12462: checking for /usr/libexec/gcc/i686-apple-darwin9/4.2.1/ld 
option to reload object files
configure:12469: result: -r
configure:12543: checking for objdump
configure:12570: result: objdump
configure:12599: checking how to recognize dependent libraries
configure:12801: result: pass_all
configure:12886: checking for dlltool
configure:12913: result: dlltool
configure:12943: checking how to associate runtime and link libraries
configure:12970: result: printf %s\n
configure:13094: checking for archiver @FILE support
configure:13111: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:13111: $? = 0
configure:13114: ar cq libconftest.a @conftest.lst >&5
ar: @conftest.lst: No such file or directory
configure:13117: $? = 1
configure:13137: result: no
configure:13195: checking for strip
configure:13211: found /usr/bin/strip
configure:13222: result: strip
configure:13294: checking for ranlib
configure:13310: found /usr/bin/ranlib
configure:13321: result: ranlib
configure:13423: checking command to parse /usr/bin/nm -p output from 
gcc-4.2 -std=gnu99 object
configure:13543: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:13546: $? = 0
configure:13550: /usr/bin/nm -p conftest.o \| sed -n -e 's/^.*[ 
]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | 
sed '/ __gnu_lto/d' \> conftest.nm
configure:13553: $? = 0
cannot find nm_test_var in conftest.nm
configure:13543: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:13546: $? = 0
configure:13550: /usr/bin/nm -p conftest.o \| sed -n -e 's/^.*[ 
]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' 
| sed '/ __gnu_lto/d' \> conftest.nm
configure:13553: $? = 0
configure:13619: gcc-4.2 -std=gnu99 -o conftest -O2 -pedantic -m64 
-mtune=core2 -march=core2   conftest.c conftstm.o >&5
conftest.c:29: warning: ISO C forbids conversion of function pointer to 
object pointer type
configure:13622: $? = 0
configure:13660: result: ok
configure:13697: checking for sysroot
configure:13727: result: no
configure:13983: checking for mt
configure:14013: result: no
configure:14033: checking if : is a manifest tool
configure:14039: : '-?'
configure:14047: result: no
configure:14103: checking for dsymutil
configure:14119: found /usr/bin/dsymutil
configure:14130: result: dsymutil
configure:14195: checking for nmedit
configure:14211: found /usr/bin/nmedit
configure:14222: result: nmedit
configure:14287: checking for lipo
configure:14303: found /usr/bin/lipo
configure:14314: result: lipo
configure:14379: checking for otool
configure:14395: found /usr/bin/otool
configure:14406: result: otool
configure:14471: checking for otool64
configure:14501: result: no
configure:14546: checking for -single_module linker flag
gcc-4.2 -std=gnu99 -O2 -pedantic -m64 -mtune=core2 -march=core2  -o 
libconftest.dylib -dynamiclib -Wl,-single_module conftest.c
configure:14579: result: yes
configure:14582: checking for -exported_symbols_list linker flag
configure:14602: gcc-4.2 -std=gnu99 -o conftest -O2 -pedantic -m64 
-mtune=core2 -march=core2   -Wl,-exported_symbols_list,conftest.sym 
conftest.c  >&5
configure:14602: $? = 0
configure:14612: result: yes
configure:14615: checking for -force_load linker flag
gcc-4.2 -std=gnu99 -O2 -pedantic -m64 -mtune=core2 -march=core2 -c -o 
conftest.o conftest.c
ar cru libconftest.a conftest.o
ranlib libconftest.a
gcc-4.2 -std=gnu99 -O2 -pedantic -m64 -mtune=core2 -march=core2  -o 
conftest conftest.c -Wl,-force_load,./libconftest.a
ld: unknown option: -force_load
collect2: ld returned 1 exit status
configure:14647: result: no
configure:14686: checking for dlfcn.h
configure:14686: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  conftest.c >&5
configure:14686: $? = 0
configure:14686: result: yes
configure:14902: checking for objdir
configure:14917: result: .libs
configure:15184: checking if gcc-4.2 -std=gnu99 supports -fno-rtti 
-fno-exceptions
configure:15202: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but 
not for C
configure:15206: $? = 0
configure:15219: result: no
configure:15546: checking for gcc-4.2 -std=gnu99 option to produce PIC
configure:15553: result: -fno-common -DPIC
configure:15561: checking if gcc-4.2 -std=gnu99 PIC flag -fno-common -DPIC 
works
configure:15579: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  -fno-common -DPIC -DPIC conftest.c >&5
configure:15583: $? = 0
configure:15596: result: yes
configure:15625: checking if gcc-4.2 -std=gnu99 static flag -static works
configure:15653: result: no
configure:15668: checking if gcc-4.2 -std=gnu99 supports -c -o file.o
configure:15689: gcc-4.2 -std=gnu99 -c -O2 -pedantic -m64 -mtune=core2 
-march=core2  -o out/conftest2.o conftest.c >&5
configure:15693: $? = 0
configure:15715: result: yes
configure:15723: checking if gcc-4.2 -std=gnu99 supports -c -o file.o
configure:15770: result: yes
configure:15803: checking whether the gcc-4.2 -std=gnu99 linker 
(/usr/libexec/gcc/i686-apple-darwin9/4.2.1/ld) supports shared libraries
configure:16956: result: yes
configure:17196: checking dynamic linker characteristics
configure:17929: result: darwin9.8.0 dyld
configure:18036: checking how to hardcode library paths into programs
configure:18061: result: immediate
configure:18601: checking whether stripping libraries is possible
configure:18615: result: yes
configure:18641: checking if libtool supports shared libraries
configure:18643: result: yes
configure:18646: checking whether to build shared libraries
configure:18667: result: yes
configure:18670: checking whether to build static libraries
configure:18674: result: yes
configure:18697: checking how to run the C++ preprocessor
configure:18724: g++4.2 -E  conftest.cpp
./configure: line 1738: g++4.2: command not found
configure:18724: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU MP"
| #define PACKAGE_TARNAME "gmp"
| #define PACKAGE_VERSION "5.0.3"
| #define PACKAGE_STRING "GNU MP 5.0.3"
| #define PACKAGE_BUGREPORT "gmp-bugs at gmplib.org, see 
http://gmplib.org/manual/Reporting-Bugs.html"
| #define PACKAGE_URL "http://www.gnu.org/software/gmp/"
| #define PACKAGE "gmp"
| #define VERSION "5.0.3"
| #define WANT_FFT 1
| #define HAVE_HOST_CPU_core2 1
| #define HAVE_SPEED_CYCLECOUNTER 2
| #define HAVE_CALLING_CONVENTIONS 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STRING_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:18724: g++4.2 -E  conftest.cpp
./configure: line 1738: g++4.2: command not found
configure:18724: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU MP"
| #define PACKAGE_TARNAME "gmp"
| #define PACKAGE_VERSION "5.0.3"
| #define PACKAGE_STRING "GNU MP 5.0.3"
| #define PACKAGE_BUGREPORT "gmp-bugs at gmplib.org, see 
http://gmplib.org/manual/Reporting-Bugs.html"
| #define PACKAGE_URL "http://www.gnu.org/software/gmp/"
| #define PACKAGE "gmp"
| #define VERSION "5.0.3"
| #define WANT_FFT 1
| #define HAVE_HOST_CPU_core2 1
| #define HAVE_SPEED_CYCLECOUNTER 2
| #define HAVE_CALLING_CONVENTIONS 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STRING_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:18724: /lib/cpp  conftest.cpp
./configure: line 1738: /lib/cpp: No such file or directory
configure:18724: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU MP"
| #define PACKAGE_TARNAME "gmp"
| #define PACKAGE_VERSION "5.0.3"
| #define PACKAGE_STRING "GNU MP 5.0.3"
| #define PACKAGE_BUGREPORT "gmp-bugs at gmplib.org, see 
http://gmplib.org/manual/Reporting-Bugs.html"
| #define PACKAGE_URL "http://www.gnu.org/software/gmp/"
| #define PACKAGE "gmp"
| #define VERSION "5.0.3"
| #define WANT_FFT 1
| #define HAVE_HOST_CPU_core2 1
| #define HAVE_SPEED_CYCLECOUNTER 2
| #define HAVE_CALLING_CONVENTIONS 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STRING_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:18724: /lib/cpp  conftest.cpp
./configure: line 1738: /lib/cpp: No such file or directory
configure:18724: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU MP"
| #define PACKAGE_TARNAME "gmp"
| #define PACKAGE_VERSION "5.0.3"
| #define PACKAGE_STRING "GNU MP 5.0.3"
| #define PACKAGE_BUGREPORT "gmp-bugs at gmplib.org, see 
http://gmplib.org/manual/Reporting-Bugs.html"
| #define PACKAGE_URL "http://www.gnu.org/software/gmp/"
| #define PACKAGE "gmp"
| #define VERSION "5.0.3"
| #define WANT_FFT 1
| #define HAVE_HOST_CPU_core2 1
| #define HAVE_SPEED_CYCLECOUNTER 2
| #define HAVE_CALLING_CONVENTIONS 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STRING_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:18763: result: /lib/cpp
configure:18783: /lib/cpp  conftest.cpp
./configure: line 1738: /lib/cpp: No such file or directory
configure:18783: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU MP"
| #define PACKAGE_TARNAME "gmp"
| #define PACKAGE_VERSION "5.0.3"
| #define PACKAGE_STRING "GNU MP 5.0.3"
| #define PACKAGE_BUGREPORT "gmp-bugs at gmplib.org, see 
http://gmplib.org/manual/Reporting-Bugs.html"
| #define PACKAGE_URL "http://www.gnu.org/software/gmp/"
| #define PACKAGE "gmp"
| #define VERSION "5.0.3"
| #define WANT_FFT 1
| #define HAVE_HOST_CPU_core2 1
| #define HAVE_SPEED_CYCLECOUNTER 2
| #define HAVE_CALLING_CONVENTIONS 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STRING_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:18783: /lib/cpp  conftest.cpp
./configure: line 1738: /lib/cpp: No such file or directory
configure:18783: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU MP"
| #define PACKAGE_TARNAME "gmp"
| #define PACKAGE_VERSION "5.0.3"
| #define PACKAGE_STRING "GNU MP 5.0.3"
| #define PACKAGE_BUGREPORT "gmp-bugs at gmplib.org, see 
http://gmplib.org/manual/Reporting-Bugs.html"
| #define PACKAGE_URL "http://www.gnu.org/software/gmp/"
| #define PACKAGE "gmp"
| #define VERSION "5.0.3"
| #define WANT_FFT 1
| #define HAVE_HOST_CPU_core2 1
| #define HAVE_SPEED_CYCLECOUNTER 2
| #define HAVE_CALLING_CONVENTIONS 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STRING_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:18813: error: in `/Users/frankthorne/Downloads/gmp-5.0.3':
configure:18816: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

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

ac_cv_build=core2-apple-darwin9.8.0
ac_cv_c_compiler_gnu=yes
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=set
ac_cv_env_CC_value=gcc-4.2
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=set
ac_cv_env_CXX_value=g++4.2
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_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=core2-apple-darwin9.8.0
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_FGREP='/usr/bin/grep -F'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_SED=/usr/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_CPP='gcc-4.2 -std=gnu99 -E'
ac_cv_prog_CXXCPP=/lib/cpp
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc-4.2
ac_cv_prog_ac_ct_DLLTOOL=dlltool
ac_cv_prog_ac_ct_DSYMUTIL=dsymutil
ac_cv_prog_ac_ct_LIPO=lipo
ac_cv_prog_ac_ct_NMEDIT=nmedit
ac_cv_prog_ac_ct_OBJDUMP=objdump
ac_cv_prog_ac_ct_OTOOL=otool
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_c99=-std=gnu99
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=-std=gnu99
ac_cv_prog_make_make_set=yes
cl_cv_as_noexecstack=no
gmp_cv_c_for_build_ansi=yes
gmp_cv_check_libm_for_build=-lm
gmp_cv_prog_cpp_for_build='gcc-4.2 -std=gnu99 -E'
gmp_cv_prog_exeext_for_build=
lt_cv_apple_cc_single_mod=yes
lt_cv_ar_at_file=no
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_exported_symbols_list=yes
lt_cv_ld_force_load=no
lt_cv_ld_reload_flag=-r
lt_cv_nm_interface='BSD nm'
lt_cv_objdir=.libs
lt_cv_path_LD=/usr/libexec/gcc/i686-apple-darwin9/4.2.1/ld
lt_cv_path_NM='/usr/bin/nm -p'
lt_cv_path_mainfest_tool=no
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_pic='-fno-common -DPIC'
lt_cv_prog_compiler_pic_works=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_compiler_static_works=no
lt_cv_prog_gnu_ld=no
lt_cv_sharedlib_from_linklib_cmd='printf %s\n'
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ 
]\([BCDEGRST][BCDEGRST]*\)[	 ][	 ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 
_\2 \2/p'\'' | sed '\''/ __gnu_lto/d'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\)[ 
]*$/  {\"\1\", (void *) 0},/p'\'' -e '\''s/^[BCDEGRST]* \([^ ]*\) \([^ 
]*\)$/  {"\2", (void *) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: 
\([^ ]*\)[ ]*$/  {\"\1\", (void *) 0},/p'\'' -e '\''s/^[BCDEGRST]* \([^ 
]*\) \(lib[^ ]*\)$/  {"\2", (void *) \&\2},/p'\'' -e '\''s/^[BCDEGRST]* 
\([^ ]*\) \([^ ]*\)$/  {"lib\2", (void *) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int 
\1();/p'\'' -e '\''s/^[BCDEGRST]* .* \(.*\)$/extern char \1;/p'\'''
lt_cv_sys_max_cmd_len=196608
lt_cv_to_host_file_cmd=func_convert_file_noop
lt_cv_to_tool_file_cmd=func_convert_file_noop

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

ABI='64'
ACLOCAL='${SHELL} /Users/frankthorne/Downloads/gmp-5.0.3/missing --run 
aclocal-1.11'
AMTAR='${SHELL} /Users/frankthorne/Downloads/gmp-5.0.3/missing --run tar'
ANSI2KNR=''
AR='ar'
AS='as'
ASMFLAGS=''
AUTOCONF='${SHELL} /Users/frankthorne/Downloads/gmp-5.0.3/missing --run 
autoconf'
AUTOHEADER='${SHELL} /Users/frankthorne/Downloads/gmp-5.0.3/missing --run 
autoheader'
AUTOMAKE='${SHELL} /Users/frankthorne/Downloads/gmp-5.0.3/missing --run 
automake-1.11'
AWK='awk'
CALLING_CONVENTIONS_OBJS='amd64call.lo amd64check$U.lo'
CC='gcc-4.2 -std=gnu99'
CCAS='gcc-4.2 -std=gnu99 -c'
CC_FOR_BUILD='gcc-4.2 -std=gnu99'
CFLAGS='-O2 -pedantic -m64 -mtune=core2 -march=core2'
CPP='gcc-4.2 -std=gnu99 -E'
CPPFLAGS=''
CPP_FOR_BUILD='gcc-4.2 -std=gnu99 -E'
CXX='g++4.2'
CXXCPP='/lib/cpp'
CXXFLAGS=''
CYGPATH_W='echo'
DEFN_LONG_LONG_LIMB='/* #undef _LONG_LONG_LIMB */'
DEFS=''
DLLTOOL='dlltool'
DSYMUTIL='dsymutil'
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
ENABLE_STATIC_FALSE=''
ENABLE_STATIC_TRUE=''
EXEEXT=''
EXEEXT_FOR_BUILD=''
FGREP='/usr/bin/grep -F'
GMP_LDFLAGS=''
GMP_LIMB_BITS=''
GMP_NAIL_BITS='0'
GREP='/usr/bin/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='$(install_sh) -c -s'
LD='/usr/libexec/gcc/i686-apple-darwin9/4.2.1/ld'
LDFLAGS=''
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBCURSES=''
LIBGMPXX_LDFLAGS=''
LIBGMP_DLL='0'
LIBGMP_LDFLAGS=''
LIBM=''
LIBM_FOR_BUILD='-lm'
LIBOBJS=''
LIBREADLINE=''
LIBS=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIPO='lipo'
LN_S='ln -s'
LTLIBOBJS=''
M4=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /Users/frankthorne/Downloads/gmp-5.0.3/missing --run 
makeinfo'
MANIFEST_TOOL=':'
MKDIR_P='./install-sh -c -d'
NM='/usr/bin/nm -p'
NMEDIT='nmedit'
OBJDUMP='objdump'
OBJEXT='o'
OTOOL64=':'
OTOOL='otool'
PACKAGE='gmp'
PACKAGE_BUGREPORT='gmp-bugs at gmplib.org, see 
http://gmplib.org/manual/Reporting-Bugs.html'
PACKAGE_NAME='GNU MP'
PACKAGE_STRING='GNU MP 5.0.3'
PACKAGE_TARNAME='gmp'
PACKAGE_URL='http://www.gnu.org/software/gmp/'
PACKAGE_VERSION='5.0.3'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SED='/usr/bin/sed'
SET_MAKE=''
SHELL='/bin/sh'
SPEED_CYCLECOUNTER_OBJ='x86_64.lo'
STRIP='strip'
TAL_OBJECT=''
TUNE_SQR_OBJ=''
U=''
U_FOR_BUILD=''
VERSION='5.0.3'
WANT_CXX_FALSE=''
WANT_CXX_TRUE='#'
WANT_MPBSD_FALSE=''
WANT_MPBSD_TRUE='#'
WITH_READLINE_01=''
YACC=''
YFLAGS=''
ac_ct_AR='ar'
ac_ct_CC='gcc-4.2'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__isrc=''
am__leading_dot='.'
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='core2-apple-darwin9.8.0'
build_alias=''
build_cpu='core2'
build_os='darwin9.8.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
gmp_srclinks=''
host='core2-apple-darwin9.8.0'
host_alias=''
host_cpu='core2'
host_os='darwin9.8.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Users/frankthorne/Downloads/gmp-5.0.3/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(top_builddir)/./install-sh -c -d'
mpn_objects=''
mpn_objs_in_libgmp=''
mpn_objs_in_libmp=''
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 "GNU MP"
#define PACKAGE_TARNAME "gmp"
#define PACKAGE_VERSION "5.0.3"
#define PACKAGE_STRING "GNU MP 5.0.3"
#define PACKAGE_BUGREPORT "gmp-bugs at gmplib.org, see 
http://gmplib.org/manual/Reporting-Bugs.html"
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
#define PACKAGE "gmp"
#define VERSION "5.0.3"
#define WANT_FFT 1
#define HAVE_HOST_CPU_core2 1
#define HAVE_SPEED_CYCLECOUNTER 2
#define HAVE_CALLING_CONVENTIONS 1
#define PROTOTYPES 1
#define __PROTOTYPES 1
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_STRING_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"

configure: exit 1



More information about the gmp-discuss mailing list