Bug 30753 - [4.3 Regression] checking for correct version of gmp.h... no
Summary: [4.3 Regression] checking for correct version of gmp.h... no
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: 4.3.0
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2007-02-10 00:31 UTC by John David Anglin
Modified: 2007-02-13 13:40 UTC (History)
3 users (show)

See Also:
Host: hppa-unknown-linux-gnu
Target: hppa-unknown-linux-gnu
Build: hppa-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2007-02-10 00:31:32 UTC
checking for correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
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.

dave@hiauly6:~/gnu/gcc-4.3/objdir$ dpkg -l 'libgmp*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
pn  libgmp-ocaml   <none>         (no description available)
pn  libgmp-ocaml-d <none>         (no description available)
un  libgmp2        <none>         (no description available)
un  libgmp2-dev    <none>         (no description available)
pn  libgmp3        <none>         (no description available)
ii  libgmp3-dev    4.2.1+dfsg-4   Multiprecision arithmetic library developers
ii  libgmp3-doc    4.2.1+dfsg-4   Multiprecision arithmetic library example co
ii  libgmp3c2      4.2.1+dfsg-4   Multiprecision arithmetic library
pn  libgmpxx3      <none>         (no description available)
ii  libgmpxx4      4.2.1+dfsg-4   Multiprecision arithmetic library (C++ bindi

dave@hiauly6:~/gnu/gcc-4.3/gcc$ cat LAST_UPDATED
Fri Feb  9 19:18:57 EST 2007
Sat Feb 10 00:18:57 UTC 2007 (revision 121786)
Comment 1 Daniel Jacobowitz 2007-02-10 00:41:52 UTC
What's in config.log?
Comment 2 dave 2007-02-10 00:53:09 UTC
Subject: Re:  [4.3 Regression] checking for correct version of gmp.h... no

> What's in config.log?
configure:3902: checking for correct version of gmp.h
configure:3925: gcc -c -g -O2   conftest.c >&5
configure:3931: $? = 0
configure:3935: test -z
                         || test ! -s conftest.err
configure:3938: $? = 0
configure:3941: test -s conftest.
configure:3944: $? = 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.  */
| #include "gmp.h"
| int
| main ()
| {
|
|   #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
|   choke me
|   #endif
|
|   ;
|   return 0;
| }
configure:3952: result: no

Dave
Comment 3 Daniel Jacobowitz 2007-02-10 01:01:04 UTC
Check earlier?  Something must have gone wrong with AC_OBJEXT.
Comment 4 dave 2007-02-10 01:17:19 UTC
Subject: Re:  [4.3 Regression] checking for correct version of gmp.h... no

> Check earlier?  Something must have gone wrong with AC_OBJEXT.

Here's the whole log.  The result of the check at configure:3725
appears wrong but I don't see anything else.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

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/configure --with-gnu-as --with-gnu-ld --enable-shared --prefix=/home/dave/opt/gnu/gcc/gcc-4.3.0 --with-local-prefix=/home/dave/opt/gnu --enable-threads=posix --enable-__cxa_atexit --host=hppa-linux --enable-clocale=gnu --enable-java-gc=boehm --enable-java-awt=xlib --enable-languages=c,c++,objc,fortran,ada,obj-c++

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

hostname = hiauly6
uname -m = parisc
uname -r = 2.6.18-rc5-pa3
uname -s = Linux
uname -v = #3 Sun Sep 10 18:18:25 EDT 2006

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

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

PATH: /home/dave/opt/gnu/gcc/gcc-4.1.1/bin
PATH: /home/dave/opt/gnu/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/bin/X11


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

configure:1334: checking build system type
configure:1352: result: hppa2.0-unknown-linux-gnu
configure:1387: checking host system type
configure:1401: result: hppa-unknown-linux-gnu
configure:1409: checking target system type
configure:1423: result: hppa-unknown-linux-gnu
configure:1466: checking for a BSD-compatible install
configure:1521: result: /usr/bin/install -c
configure:1532: checking whether ln works
configure:1554: result: yes
configure:1558: checking whether ln -s works
configure:1562: result: yes
configure:3568: checking for hppa-linux-gnatbind
configure:3597: result: no
configure:3606: checking for gnatbind
configure:3622: found /home/dave/opt/gnu/gcc/gcc-4.1.1/bin/gnatbind
configure:3633: result: gnatbind
configure:3648: checking for hppa-linux-gnatmake
configure:3677: result: no
configure:3686: checking for gnatmake
configure:3702: found /home/dave/opt/gnu/gcc/gcc-4.1.1/bin/gnatmake
configure:3713: result: gnatmake
configure:3725: checking whether compiler driver understands Ada
configure:3748: result: no
configure:3757: checking how to compare bootstrapped objects
configure:3782: result: cmp --ignore-initial=16 $$f1 $$f2
configure:3902: checking for correct version of gmp.h
configure:3925: gcc -c -g -O2   conftest.c >&5
configure:3931: $? = 0
configure:3935: test -z 
			 || test ! -s conftest.err
configure:3938: $? = 0
configure:3941: test -s conftest.
configure:3944: $? = 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.  */
| #include "gmp.h"
| int
| main ()
| {
| 
|   #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
|   choke me
|   #endif
| 
|   ;
|   return 0;
| }
configure:3952: result: no
configure:4085: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
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=hppa2.0-unknown-linux-gnu
ac_cv_build_alias=hppa2.0-unknown-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=hppa-linux
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=hppa-unknown-linux-gnu
ac_cv_host_alias=hppa-linux
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_ac_ct_GNATBIND=gnatbind
ac_cv_prog_ac_ct_GNATMAKE=gnatmake
ac_cv_target=hppa-unknown-linux-gnu
ac_cv_target_alias=hppa-linux
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_TARGET=''
AS=''
AS_FOR_TARGET=''
BISON=''
CC='gcc'
CC_FOR_BUILD='gcc'
CC_FOR_TARGET=''
CFLAGS='-g -O2'
CFLAGS_FOR_BUILD=''
COMPILER_AS_FOR_TARGET=''
COMPILER_LD_FOR_TARGET=''
COMPILER_NM_FOR_TARGET=''
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX='hppa-linux-c++'
CXXFLAGS='-g -O2'
CXX_FOR_TARGET=''
DEFS=''
DLLTOOL=''
DLLTOOL_FOR_TARGET=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT='/home/dave/opt/gnu/bin/expect'
FLAGS_FOR_TARGET=''
FLEX=''
GCC_FOR_TARGET=''
GCJ_FOR_TARGET=''
GDB_TK=''
GFORTRAN_FOR_TARGET=''
GNATBIND='gnatbind'
GNATMAKE='gnatmake'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD=''
LDFLAGS=''
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_TARGET=''
OBJCOPY=''
OBJDUMP=''
OBJDUMP_FOR_TARGET=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
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/configure --with-gnu-as --with-gnu-ld --enable-shared --prefix=/home/dave/opt/gnu/gcc/gcc-4.3.0 --with-local-prefix=/home/dave/opt/gnu --enable-threads=posix --enable-__cxa_atexit --host=hppa-linux --enable-clocale=gnu --enable-java-gc=boehm --enable-java-awt=xlib --enable-languages=c,c++,objc,fortran,ada,obj-c++'
WINDRES=''
WINDRES_FOR_TARGET=''
YACC=''
ac_ct_CC=''
ac_ct_GNATBIND='gnatbind'
ac_ct_GNATMAKE='gnatmake'
bindir='${exec_prefix}/bin'
build='hppa2.0-unknown-linux-gnu'
build_alias=''
build_configargs=''
build_configdirs='build-libiberty build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes'
build_cpu='hppa2.0'
build_libsubdir='build-hppa2.0-unknown-linux-gnu'
build_noncanonical='hppa2.0-unknown-linux-gnu'
build_os='linux-gnu'
build_subdir='build-hppa2.0-unknown-linux-gnu'
build_tooldir=''
build_vendor='unknown'
config_shell='/bin/sh'
configdirs='intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr 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'
gmpinc=''
gmplibs='-lmpfr -lgmp'
host='hppa-unknown-linux-gnu'
host_alias='hppa-linux'
host_configargs=''
host_cpu='hppa'
host_noncanonical='hppa-linux'
host_os='linux-gnu'
host_subdir='.'
host_vendor='unknown'
htmldir=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/home/dave/opt/gnu/gcc/gcc-4.3.0'
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='hppa-unknown-linux-gnu'
target_alias=''
target_configargs=''
target_cpu='hppa'
target_noncanonical='hppa-linux'
target_os='linux-gnu'
target_subdir='hppa-linux'
target_vendor='unknown'
tooldir=''

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

alphaieee_frag=''
host_makefile_frag='/dev/null'
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''

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

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 1
Comment 5 Daniel Jacobowitz 2007-02-10 01:36:54 UTC
OK, I see it.  The problem is that AC_PROG_CC is invoked inside an if statement; objext doesn't get set before that point, so it's expanded inside the if.

If this is covered in the autoconf documentation I don't know where...

You can certainly work around the problem for now by not using --host.  To accomplish the same thing as that used to, you may want --build=hppa-linux.

I'm not going to have time to fix this properly for a day or two, sorry!
Comment 6 dave 2007-02-10 01:53:14 UTC
Subject: Re:  [4.3 Regression] checking for correct version of gmp.h... no

> You can certainly work around the problem for now by not using --host.  To
> accomplish the same thing as that used to, you may want --build=hppa-linux.

Thanks, that appears to work.  There's another report of this problem
on the gcc list:
http://gcc.gnu.org/ml/gcc/2007-02/msg00179.html

Dave
Comment 7 Daniel Jacobowitz 2007-02-13 13:39:36 UTC
Subject: Bug 30753

Author: drow
Date: Tue Feb 13 13:39:19 2007
New Revision: 121882

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121882
Log:
	PR bootstrap/30753
	* configure.ac: Remove obsolete build / host tests.  Use AC_PROG_CC
	unconditionally.  Use AC_PROG_CXX.  Use ACX_TOOL_DIRS to find $prefix.
	* configure: Regenerated.

Modified:
    trunk/ChangeLog
    trunk/configure
    trunk/configure.ac

Comment 8 Daniel Jacobowitz 2007-02-13 13:40:30 UTC
Should be better now.