public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/40833]  New: gcc configure problem with mpfr.h
@ 2009-07-23  0:30 david dot sagan at gmail dot com
  2009-07-23  3:03 ` [Bug bootstrap/40833] " kargl at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: david dot sagan at gmail dot com @ 2009-07-23  0:30 UTC (permalink / raw)
  To: gcc-bugs

I am trying to configure gcc with:

lnx498:/nfs/acc/temp/dcs/gcc/gcc_tmp> ../gcc-4.4.1/configure
--prefix=/home/dcs/dcs/usr_local --with-gmp=/home/dcs/dcs/usr_local
--with-mpfr=/home/dcs/dcs/usr_local

Which gives:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1
$$f2
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.


But mpfr.h exists and is version 4.2.1:

lnx498:/nfs/acc/temp/dcs/gcc/gcc_tmp> grep VER
/home/dcs/dcs/usr_local/include/mpfr.h
#define MPFR_VERSION_MAJOR 2
#define MPFR_VERSION_MINOR 4
#define MPFR_VERSION_PATCHLEVEL 1
#define MPFR_VERSION_STRING "2.4.1"


The log file is:

lnx498:/nfs/acc/temp/dcs/gcc/gcc_tmp> cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ../gcc-4.4.1/configure --prefix=/home/dcs/dcs/usr_local
--with-gmp=/home/dcs/dcs/usr_local --with-mpfr=/home/dcs/dcs/usr_local

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

hostname = lnx498.lns.cornell.edu
uname -m = i686
uname -r = 2.6.9-78.0.13.ELsmp
uname -s = Linux
uname -v = #1 SMP Wed Jan 14 19:07:47 CST 2009

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

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

PATH: /home/dcs/dcs/usr_local/bin
PATH: /home/dcs/dcs/dcs_local/bin
PATH: /nfs/opt/lf9562/bin
PATH: /nfs/opt/intel/fc/9.1.045/bin
PATH: /nfs/opt/intel/fc/9.1.045/bin
PATH: /nfs/opt/lf9562/bin
PATH: /home/dcs/bin/Linux
PATH: /home/dcs/bin
PATH: /usr/kerberos/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /home/cesrulib/bin
PATH: /nfs/acc/libs/Linux_i686_intel/devel/bin
PATH: /home/dcs/dcs/atf2/ATF2/control-software/epics-3.14.8/base/bin/linux-x86
PATH: /nfs/opt/totalview/bin


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

configure:1563: checking build system type
configure:1581: result: i686-pc-linux-gnu
configure:1616: checking host system type
configure:1630: result: i686-pc-linux-gnu
configure:1638: checking target system type
configure:1652: result: i686-pc-linux-gnu
configure:1696: checking for a BSD-compatible install
configure:1762: result: /usr/bin/install -c
configure:1773: checking whether ln works
configure:1795: result: yes
configure:1799: checking whether ln -s works
configure:1803: result: yes
configure:3002: checking for gcc
configure:3018: found /usr/bin/gcc
configure:3028: result: gcc
configure:3274: checking for C compiler version
configure:3277: gcc --version </dev/null >&5
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-8)
Copyright (C) 2006 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:3280: $? = 0
configure:3282: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-8)
configure:3285: $? = 0
configure:3287: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:3290: $? = 1
configure:3313: checking for C compiler default output file name
configure:3316: gcc    conftest.c  >&5
configure:3319: $? = 0
configure:3367: result: a.out
configure:3372: checking whether the C compiler works
configure:3378: ./a.out
configure:3381: $? = 0
configure:3400: result: yes
configure:3407: checking whether we are cross compiling
configure:3409: result: no
configure:3412: checking for suffix of executables
configure:3414: gcc -o conftest    conftest.c  >&5
configure:3417: $? = 0
configure:3444: result:
configure:3450: checking for suffix of object files
configure:3471: gcc -c   conftest.c >&5
configure:3474: $? = 0
configure:3498: result: o
configure:3502: checking whether we are using the GNU C compiler
configure:3526: gcc -c   conftest.c >&5
configure:3532: $? = 0
configure:3536: test -z
                         || test ! -s conftest.err
configure:3539: $? = 0
configure:3542: test -s conftest.o
configure:3545: $? = 0
configure:3558: result: yes
configure:3564: checking whether gcc accepts -g
configure:3585: gcc -c -g  conftest.c >&5
configure:3591: $? = 0
configure:3595: test -z
                         || test ! -s conftest.err
configure:3598: $? = 0
configure:3601: test -s conftest.o
configure:3604: $? = 0
configure:3615: result: yes
configure:3632: checking for gcc option to accept ANSI C
configure:3702: gcc  -c -g -O2  conftest.c >&5
configure:3708: $? = 0
configure:3712: test -z
                         || test ! -s conftest.err
configure:3715: $? = 0
configure:3718: test -s conftest.o
configure:3721: $? = 0
configure:3739: result: none needed
configure:3757: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: syntax error before "me"
configure:3763: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:3948: checking for g++
configure:3964: found /usr/bin/g++
configure:3974: result: g++
configure:3990: checking for C++ compiler version
configure:3993: g++ --version </dev/null >&5
g++ (GCC) 3.4.6 20060404 (Red Hat 3.4.6-8)
Copyright (C) 2006 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:3996: $? = 0
configure:3998: g++ -v </dev/null >&5
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-8)
configure:4001: $? = 0
configure:4003: g++ -V </dev/null >&5
g++: `-V' option must have argument
configure:4006: $? = 1
configure:4009: checking whether we are using the GNU C++ compiler
configure:4033: g++ -c   conftest.cc >&5
configure:4039: $? = 0
configure:4043: test -z
                         || test ! -s conftest.err
configure:4046: $? = 0
configure:4049: test -s conftest.o
configure:4052: $? = 0
configure:4065: result: yes
configure:4071: checking whether g++ accepts -g
configure:4092: g++ -c -g  conftest.cc >&5
configure:4098: $? = 0
configure:4102: test -z
                         || test ! -s conftest.err
configure:4105: $? = 0
configure:4108: test -s conftest.o
configure:4111: $? = 0
configure:4122: result: yes
configure:4164: g++ -c -g -O2  conftest.cc >&5
configure:4170: $? = 0
configure:4174: test -z
                         || test ! -s conftest.err
configure:4177: $? = 0
configure:4180: test -s conftest.o
configure:4183: $? = 0
configure:4209: g++ -c -g -O2  conftest.cc >&5
conftest.cc: In function `int main()':
conftest.cc:13: error: `exit' was not declared in this scope
configure:4215: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:4164: g++ -c -g -O2  conftest.cc >&5
configure:4170: $? = 0
configure:4174: test -z
                         || test ! -s conftest.err
configure:4177: $? = 0
configure:4180: test -s conftest.o
configure:4183: $? = 0
configure:4209: g++ -c -g -O2  conftest.cc >&5
configure:4215: $? = 0
configure:4219: test -z
                         || test ! -s conftest.err
configure:4222: $? = 0
configure:4225: test -s conftest.o
configure:4228: $? = 0
configure:4315: checking for gnatbind
configure:4342: result: no
configure:4395: checking for gnatmake
configure:4422: result: no
configure:4434: checking whether compiler driver understands Ada
configure:4457: result: no
configure:4466: checking how to compare bootstrapped objects
configure:4491: result: cmp --ignore-initial=16 $$f1 $$f2
configure:4612: checking for correct version of gmp.h
configure:4635: gcc -c -g -O2 -I/home/dcs/dcs/usr_local/include
-I/home/dcs/dcs/usr_local/include  conftest.c >&5
configure:4641: $? = 0
configure:4645: test -z
                         || test ! -s conftest.err
configure:4648: $? = 0
configure:4651: test -s conftest.o
configure:4654: $? = 0
configure:4656: result: yes
configure:4670: checking for correct version of mpfr.h
configure:4701: gcc -o conftest -g -O2 -I/home/dcs/dcs/usr_local/include
-I/home/dcs/dcs/usr_local/include   conftest.c  -L/home/dcs/dcs/usr_local/lib
-L/home/dcs/dcs/usr_local/lib -lmpfr -lgmp >&5
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpz_tdiv_q_2exp'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpz_fdiv_q_2exp'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_clear'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpz_urandomb'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_mul_ui'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_mod'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_add_ui'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpz_fdiv_q_ui'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpn_add_n'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpz_init_set'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpn_divrem'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_tstbit'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpn_addmul_1'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_root'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmp_randinit_default'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmp_asprintf'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpz_mul_2exp'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_fdiv_q'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_set'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpn_set_str'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_mul_si'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmp_free_func'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpn_popcount'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_addmul'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpz_divexact_ui'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpn_divrem_1'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmp_allocate_func'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_mul'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpz_addmul_ui'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_cmp_si'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_set_ui'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_sub_ui'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_cmpabs'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_cmp_ui'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_sqrt'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_init'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmp_reallocate_func'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_powm_ui'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpn_sub_n'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpn_mul_1'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmp_vasprintf'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpn_get_str'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpn_tdiv_qr'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_add'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_fdiv_qr'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_tdiv_qr'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpz_sizeinbase'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpf_set_ui'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpq_set_ui'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_realloc'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpz_cmpabs_ui'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpn_mul_n'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_scan1'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpn_perfect_square_p'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpn_rshift'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpz_tdiv_q_ui'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpn_mul'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_tdiv_q'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpz_init_set_ui'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpz_tdiv_r_2exp'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpn_lshift'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpn_scan1'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpz_ui_pow_ui'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_get_si'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpn_sqrtrem'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_sub'
collect2: ld returned 1 exit status
configure:4707: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| /* end confdefs.h.  */
| #include <gmp.h>
|     #include <mpfr.h>
| int
| main ()
| {
|
|     #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
|     choke me
|     #endif
|     mpfr_t n;
|     mpfr_t x;
|     int t;
|     mpfr_init (n);
|     mpfr_init (x);
|     mpfr_atan2 (n, n, x, GMP_RNDN);
|     mpfr_erfc (n, x, GMP_RNDN);
|     mpfr_subnormalize (x, t, GMP_RNDN);
|
|   ;
|   return 0;
| }
configure:4780: result: no
configure:4797: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_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_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GCJ_FOR_TARGET_set=
ac_cv_env_GCJ_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_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=
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_GNATBIND=no
ac_cv_prog_ac_ct_GNATMAKE=no
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_g=yes
ac_cv_target=i686-pc-linux-gnu
ac_cv_target_alias=i686-pc-linux-gnu
acx_cv_cc_gcc_supports_ada=no
acx_cv_prog_LN=ln
gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'

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

AR=''
AR_FOR_BUILD='$(AR)'
AR_FOR_TARGET=''
AS=''
AS_FOR_BUILD='$(AS)'
AS_FOR_TARGET=''
BISON=''
CC='gcc'
CC_FOR_BUILD='$(CC)'
CC_FOR_TARGET=''
CFLAGS='-g -O2'
CFLAGS_FOR_BUILD=''
CFLAGS_FOR_TARGET=''
COMPILER_AS_FOR_TARGET=''
COMPILER_LD_FOR_TARGET=''
COMPILER_NM_FOR_TARGET=''
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX='g++'
CXXFLAGS='-g -O2'
CXXFLAGS_FOR_BUILD=''
CXXFLAGS_FOR_TARGET=''
CXX_FOR_BUILD='$(CXX)'
CXX_FOR_TARGET=''
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS=''
DLLTOOL=''
DLLTOOL_FOR_BUILD='$(DLLTOOL)'
DLLTOOL_FOR_TARGET=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT=''
FLAGS_FOR_TARGET=''
FLEX=''
GCC_FOR_TARGET=''
GCC_SHLIB_SUBDIR=''
GCJ_FOR_BUILD='$(GCJ)'
GCJ_FOR_TARGET=''
GDB_TK=''
GFORTRAN_FOR_BUILD='$(GFORTRAN)'
GFORTRAN_FOR_TARGET=''
GNATBIND='no'
GNATMAKE='no'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD=''
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LD_FOR_BUILD='$(LD)'
LD_FOR_TARGET=''
LEX=''
LIBOBJS=''
LIBS=''
LIPO=''
LIPO_FOR_TARGET=''
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO=''
NM=''
NM_FOR_BUILD='$(NM)'
NM_FOR_TARGET=''
OBJCOPY=''
OBJDUMP=''
OBJDUMP_FOR_TARGET=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
RANLIB_FOR_BUILD='$(RANLIB)'
RANLIB_FOR_TARGET=''
RAW_CXX_FOR_TARGET=''
RPATH_ENVVAR=''
RUNTEST=''
SHELL='/bin/sh'
STRIP=''
STRIP_FOR_TARGET=''
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='../gcc-4.4.1/configure
--prefix=/home/dcs/dcs/usr_local --with-gmp=/home/dcs/dcs/usr_local
--with-mpfr=/home/dcs/dcs/usr_local'
WINDMC=''
WINDMC_FOR_BUILD='$(WINDMC)'
WINDMC_FOR_TARGET=''
WINDRES=''
WINDRES_FOR_BUILD='$(WINDRES)'
WINDRES_FOR_TARGET=''
YACC=''
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_ct_GNATBIND='no'
ac_ct_GNATMAKE='no'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_configargs=''
build_configdirs='build-libiberty build-texinfo build-byacc build-flex
build-bison build-m4 build-fixincludes'
build_cpu='i686'
build_libsubdir='build-i686-pc-linux-gnu'
build_noncanonical='i686-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-i686-pc-linux-gnu'
build_tooldir=''
build_vendor='pc'
clooginc=''
clooglibs=''
config_shell='/bin/sh'
configdirs='intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib
libcpp libdecnumber gmp mpfr ppl cloog libiconv texinfo byacc flex bison
binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc
expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils
shellutils time textutils wdiff find uudecode hello tar gzip indent recode
release sed utils guile perl gawk findutils gettext zip fastjar gnattools'
datadir='${prefix}/share'
datarootdir=''
do_compare='cmp --ignore-initial=16 $$f1 $$f2'
docdir=''
exec_prefix='NONE'
extra_mpfr_configure_flags=''
gmpinc='-I/home/dcs/dcs/usr_local/include -I/home/dcs/dcs/usr_local/include'
gmplibs='-L/home/dcs/dcs/usr_local/lib -L/home/dcs/dcs/usr_local/lib -lmpfr
-lgmp'
host='i686-pc-linux-gnu'
host_alias=''
host_configargs=''
host_cpu='i686'
host_noncanonical='i686-pc-linux-gnu'
host_os='linux-gnu'
host_subdir='.'
host_vendor='pc'
htmldir=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
pdfdir=''
pplinc=''
ppllibs=''
prefix='/home/dcs/dcs/usr_local'
program_transform_name='s,y,y,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags=''
stage1_checking=''
stage1_languages=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_configargs=''
target_cpu='i686'
target_noncanonical='i686-pc-linux-gnu'
target_os='linux-gnu'
target_subdir='i686-pc-linux-gnu'
target_vendor='pc'
tooldir=''

## ------------- ##
## Output files. ##
## ------------- ##

alphaieee_frag=''
host_makefile_frag='config/mh-x86omitfp'
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''

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

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#endif
#ifdef __cplusplus
extern "C" void std::exit (int) throw (); using std::exit;

configure: exit 1
l


-- 
           Summary: gcc configure problem with mpfr.h
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: david dot sagan at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40833


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/40833] gcc configure problem with mpfr.h
  2009-07-23  0:30 [Bug bootstrap/40833] New: gcc configure problem with mpfr.h david dot sagan at gmail dot com
@ 2009-07-23  3:03 ` kargl at gcc dot gnu dot org
  2009-07-23 10:59 ` david dot sagan at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kargl at gcc dot gnu dot org @ 2009-07-23  3:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from kargl at gcc dot gnu dot org  2009-07-23 03:03 -------
What do the following commands show

find /usr -name gmp.h
find /usr -name libgmp\*

It appears that you built mpfr against a different version of gmp.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40833


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/40833] gcc configure problem with mpfr.h
  2009-07-23  0:30 [Bug bootstrap/40833] New: gcc configure problem with mpfr.h david dot sagan at gmail dot com
  2009-07-23  3:03 ` [Bug bootstrap/40833] " kargl at gcc dot gnu dot org
@ 2009-07-23 10:59 ` david dot sagan at gmail dot com
  2009-07-23 14:56 ` kargl at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: david dot sagan at gmail dot com @ 2009-07-23 10:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from david dot sagan at gmail dot com  2009-07-23 10:59 -------
The commands show:

lnx498:/nfs/acc/temp/dcs/gcc/gcc_tmp> find /usr -name gmp.h
/usr/include/gmp.h
find: /usr/share/ssl/CA: Permission denied
[1]  + Done                          emacs -g 100x80 ~/.chsrc
lnx498:/nfs/acc/temp/dcs/gcc/gcc_tmp> find /usr -name libgmp\*
/usr/lib/libgmpxx.a
/usr/lib/libgmp.so.3
/usr/lib/libgmpxx.so.3.0.5
/usr/lib/libgmp.so
/usr/lib/libgmp.so.3.3.3
/usr/lib/sse2/libgmp.so.3
/usr/lib/sse2/libgmpxx.so.3.0.5
/usr/lib/sse2/libgmp.so.3.3.3
/usr/lib/sse2/libgmpxx.so.3
/usr/lib/libgmpxx.so
/usr/lib/libgmp.a
/usr/lib/libgmpxx.so.3
find: /usr/share/ssl/CA: Permission denied


Yes mpfr was built against a different version of gmp. 
I did not realize this would make a difference.
But how does this relate to the message that the version number in mpfr.h is
not correct when it is?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40833


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/40833] gcc configure problem with mpfr.h
  2009-07-23  0:30 [Bug bootstrap/40833] New: gcc configure problem with mpfr.h david dot sagan at gmail dot com
  2009-07-23  3:03 ` [Bug bootstrap/40833] " kargl at gcc dot gnu dot org
  2009-07-23 10:59 ` david dot sagan at gmail dot com
@ 2009-07-23 14:56 ` kargl at gcc dot gnu dot org
  2009-07-23 15:32 ` david dot sagan at gmail dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kargl at gcc dot gnu dot org @ 2009-07-23 14:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from kargl at gcc dot gnu dot org  2009-07-23 14:55 -------
(In reply to comment #2)
> The commands show:
> 
> lnx498:/nfs/acc/temp/dcs/gcc/gcc_tmp> find /usr -name gmp.h
> /usr/include/gmp.h
> find: /usr/share/ssl/CA: Permission denied
> [1]  + Done                          emacs -g 100x80 ~/.chsrc
> lnx498:/nfs/acc/temp/dcs/gcc/gcc_tmp> find /usr -name libgmp\*
> /usr/lib/libgmpxx.a
> /usr/lib/libgmp.so.3
> /usr/lib/libgmpxx.so.3.0.5
> /usr/lib/libgmp.so
> /usr/lib/libgmp.so.3.3.3
> /usr/lib/sse2/libgmp.so.3
> /usr/lib/sse2/libgmpxx.so.3.0.5
> /usr/lib/sse2/libgmp.so.3.3.3
> /usr/lib/sse2/libgmpxx.so.3
> /usr/lib/libgmpxx.so
> /usr/lib/libgmp.a
> /usr/lib/libgmpxx.so.3
> find: /usr/share/ssl/CA: Permission denied
> 
> 
> Yes mpfr was built against a different version of gmp. 
> I did not realize this would make a difference.
> But how does this relate to the message that the version number in mpfr.h is
> not correct when it is?
> 

It has nothing to do with the version number.  Read the log file you
included in your original post.  You'll find

/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpz_tdiv_q_2exp'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to
`__gmpz_fdiv_q_2exp'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_clear'
/home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to

so the mpfr test never compiled and configure assumes the mpfr
test fails.  

It of course makes a difference.  mpfr must be linked with the version
of libgmp that was used when mpfr was built.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40833


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/40833] gcc configure problem with mpfr.h
  2009-07-23  0:30 [Bug bootstrap/40833] New: gcc configure problem with mpfr.h david dot sagan at gmail dot com
                   ` (2 preceding siblings ...)
  2009-07-23 14:56 ` kargl at gcc dot gnu dot org
@ 2009-07-23 15:32 ` david dot sagan at gmail dot com
  2009-10-14  4:14 ` pinskia at gcc dot gnu dot org
  2009-10-14  4:41 ` david dot sagan at gmail dot com
  5 siblings, 0 replies; 7+ messages in thread
From: david dot sagan at gmail dot com @ 2009-07-23 15:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from david dot sagan at gmail dot com  2009-07-23 15:32 -------
> It has nothing to do with the version number.  Read the log file you
> included in your original post.  You'll find

Thanks for the information. As I see it, the problem here is that the error
message from configure: 
  checking for correct version of mpfr.h... no
  configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
is wrong in this case. I would suggest that either 1) The error message be
changed to reflect the fact that other things could be wrong or, preferably, 2)
separate the mpfr test into pieces so accurate diagnostic messages can be
generated. 

-- Again Thanks, David


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40833


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/40833] gcc configure problem with mpfr.h
  2009-07-23  0:30 [Bug bootstrap/40833] New: gcc configure problem with mpfr.h david dot sagan at gmail dot com
                   ` (3 preceding siblings ...)
  2009-07-23 15:32 ` david dot sagan at gmail dot com
@ 2009-10-14  4:14 ` pinskia at gcc dot gnu dot org
  2009-10-14  4:41 ` david dot sagan at gmail dot com
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-10-14  4:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2009-10-14 04:14 -------
>  checking for correct version of mpfr.h... no

That is correct error since mpfr cannot be used as you configured gcc so it is
not the correct version :).


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40833


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/40833] gcc configure problem with mpfr.h
  2009-07-23  0:30 [Bug bootstrap/40833] New: gcc configure problem with mpfr.h david dot sagan at gmail dot com
                   ` (4 preceding siblings ...)
  2009-10-14  4:14 ` pinskia at gcc dot gnu dot org
@ 2009-10-14  4:41 ` david dot sagan at gmail dot com
  5 siblings, 0 replies; 7+ messages in thread
From: david dot sagan at gmail dot com @ 2009-10-14  4:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from david dot sagan at gmail dot com  2009-10-14 04:40 -------
(In reply to comment #5)
> >  checking for correct version of mpfr.h... no
> 
> That is correct error since mpfr cannot be used as you configured gcc so it is
> not the correct version :).
> 

No. This is not correct. See comment #3. It has nothing to do with the version
of MPFR. The problem was that MPFR was built against a different version of GMP
than the GMP version specified on the configure line. 

So the error message is wrong.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40833


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-10-14  4:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-23  0:30 [Bug bootstrap/40833] New: gcc configure problem with mpfr.h david dot sagan at gmail dot com
2009-07-23  3:03 ` [Bug bootstrap/40833] " kargl at gcc dot gnu dot org
2009-07-23 10:59 ` david dot sagan at gmail dot com
2009-07-23 14:56 ` kargl at gcc dot gnu dot org
2009-07-23 15:32 ` david dot sagan at gmail dot com
2009-10-14  4:14 ` pinskia at gcc dot gnu dot org
2009-10-14  4:41 ` david dot sagan at gmail dot com

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).