This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: build failure, GMP not available
- From: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: Joe Buck <Joe dot Buck at synopsys dot COM>, Mark Mitchell <mark at codesourcery dot com>, Geoffrey Keating <geoffk at apple dot com>, GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Mon, 6 Nov 2006 22:34:23 -0500 (EST)
- Subject: Re: build failure, GMP not available
- References: <76B13B3C-DB38-4D40-9DEE-B1ADC71379FC@apple.com> <Pine.GSO.4.58.0610301610520.13143@caipclassic.rutgers.edu> <m3ac3d9srs.fsf@dhcp-172-18-118-195.corp.google.com> <4546E82B.2080703@codesourcery.com> <20061031173739.GG32316@synopsys.com> <Pine.GSO.4.58.0610311922450.27214@caipclassic.rutgers.edu> <m3slh4576b.fsf@dhcp-172-18-118-195.corp.google.com>
On Tue, 31 Oct 2006, Ian Lance Taylor wrote:
> "Kaveh R. GHAZI" <ghazi@caip.rutgers.edu> writes:
>
> > Should that message refer to this:
> > ftp://gcc.gnu.org/pub/gcc/infrastructure/
> >
> > or this:
> > ftp://ftp.gnu.org/gnu/gmp/
> > http://www.mpfr.org/mpfr-current/
> >
> > or this (perhaps with more details):
> > http://gcc.gnu.org/install/prerequisites.html
>
> The first, I think.
>
> > I prefer the latter one of avoid duplicating the info in more than one
> > place. If prerequisites needs more info, I'll fill in there better.
>
> I think the primary goal should be making it as simple and obvious as
> possible for people to build gcc. If that can be done without
> duplicating information, that is good. But the primary goal should be
> making it very very easy to build gcc.
>
> If we encounter the problem whose solution is "download mpfr from
> gcc.gnu.org and untar it," then I don't think it helps to point people
> to the long list at http://gcc.gnu.org/install/prerequisites.html,
> which is irrelevant for most people.
> Ian
I ended up including both your preference and mine. Hopefully one or
other other (or both) end up being useful to users.
Tested on sparc-sun-solaris2.10 via configure, with and without specifying
the gmp/mpfr location to see the error message and to pass it.
Okay for mainline?
--Kaveh
2006-11-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* configure.in: Robustify error message for missing GMP/MPFR.
* configure: Regenerate.
diff -rup orig/egcc-SVN20061105/configure.in egcc-SVN20061105/configure.in
--- orig/egcc-SVN20061105/configure.in 2006-10-21 10:02:13.000000000 -0400
+++ egcc-SVN20061105/configure.in 2006-11-06 22:28:49.178608073 -0500
@@ -1118,7 +1118,11 @@ fi
CFLAGS="$saved_CFLAGS"
if test x$have_gmp != xyes; then
- AC_MSG_ERROR([Building GCC requires GMP 4.1+ and MPFR 2.2+. Try the --with-gmp and/or --with-mpfr options.])
+ AC_MSG_ERROR([Building GCC requires GMP 4.1+ and MPFR 2.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.])
fi
# Flags needed for both GMP and/or MPFR