* including MPFR and GMP
@ 2008-08-27 14:43 Jerin Joy
2008-08-27 20:39 ` Brian Dessent
0 siblings, 1 reply; 3+ messages in thread
From: Jerin Joy @ 2008-08-27 14:43 UTC (permalink / raw)
To: gcc-help
Hi,
I'm trying to compile GCC 4.3.0 on a Linux x64 machine. configure
complained about MPFR and GMP which I installed. Passing in the paths
to MPFR and GMP doesn't make the error go away:
[jj155244@ gcc-4.3.0]$ ./configure
--with-mpfr=/import/dtg-data20/jj155244/tools/mpfr-2.3.1
--with-gmp=/import/dtg-data20/jj155244/tools/gmp-4.2.3
checking build system type... x86_64-unknown-linux-gnu
..
..
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.0+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
I don't know why it doesn't pick up the correct files from the path.
[jj155244@ gcc-4.3.0]$ ls -l /import/dtg-data20/jj155244/tools/mpfr-2.3.1 |less
total 7587
-rw-r----- 1 jj155244 wheel 755 Dec 31 2007 AUTHORS
-rw-r----- 1 jj155244 wheel 2915 Dec 31 2007 BUGS
-rw-r----- 1 jj155244 wheel 18013 Dec 31 2007 COPYING
-rw-r----- 1 jj155244 wheel 26440 Dec 31 2007 COPYING.LIB
[jj155244@ gcc-4.3.0]$ ls -l /import/dtg-data20/jj155244/tools/gmp-4.2.3
total 4198
-rw-r----- 1 jj155244 wheel 843 Mar 22 2006 AUTHORS
-rw-r----- 1 jj155244 wheel 35147 Aug 30 2007 COPYING
-rw-r----- 1 jj155244 wheel 7639 Aug 30 2007 COPYING.LIB
-rw-r----- 1 jj155244 wheel 709734 Aug 2 13:54 ChangeLog
JJ
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: including MPFR and GMP
2008-08-27 14:43 including MPFR and GMP Jerin Joy
@ 2008-08-27 20:39 ` Brian Dessent
2008-08-29 20:11 ` Jerin Joy
0 siblings, 1 reply; 3+ messages in thread
From: Brian Dessent @ 2008-08-27 20:39 UTC (permalink / raw)
To: Jerin Joy; +Cc: gcc-help
Jerin Joy wrote:
> configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
> Try the --with-gmp and/or --with-mpfr options to specify their locations.
Those options take the location where you installed the libraries, i.e.
the --prefix that you gave when configuring them.
> I don't know why it doesn't pick up the correct files from the path.
The paths below look like the plain source dirs of an unpacked tarball.
These options point to a built and installed copy of the libraries, not
a bare source dir.
> [jj155244@ gcc-4.3.0]$ ls -l /import/dtg-data20/jj155244/tools/mpfr-2.3.1 |less
> total 7587
> -rw-r----- 1 jj155244 wheel 755 Dec 31 2007 AUTHORS
> -rw-r----- 1 jj155244 wheel 2915 Dec 31 2007 BUGS
> -rw-r----- 1 jj155244 wheel 18013 Dec 31 2007 COPYING
> -rw-r----- 1 jj155244 wheel 26440 Dec 31 2007 COPYING.LIB
>
> [jj155244@ gcc-4.3.0]$ ls -l /import/dtg-data20/jj155244/tools/gmp-4.2.3
> total 4198
> -rw-r----- 1 jj155244 wheel 843 Mar 22 2006 AUTHORS
> -rw-r----- 1 jj155244 wheel 35147 Aug 30 2007 COPYING
> -rw-r----- 1 jj155244 wheel 7639 Aug 30 2007 COPYING.LIB
> -rw-r----- 1 jj155244 wheel 709734 Aug 2 13:54 ChangeLog
It is also possible to have gcc bootstrap these libraries with itself,
in the usual manner of a combined tree.
Brian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: including MPFR and GMP
2008-08-27 20:39 ` Brian Dessent
@ 2008-08-29 20:11 ` Jerin Joy
0 siblings, 0 replies; 3+ messages in thread
From: Jerin Joy @ 2008-08-29 20:11 UTC (permalink / raw)
To: gcc-help
Brian,
I had built the libraries but not run a make install because I didn't
have root access to the machine. The gcc configure was looking for the
'include' and 'lib' subdirectories for gmp and mpfr. I created a
softlink within the gmp and mpfr libs but gcc configure didn't like
it.
/import/dtg-data20/jj155244/tools/mpfr-2.3.1/include -> ../
Its working now that I ran a make install.
thanks,
Jerin
On Wed, Aug 27, 2008 at 1:17 AM, Brian Dessent <brian@dessent.net> wrote:
>
> Jerin Joy wrote:
>
> > configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
> > Try the --with-gmp and/or --with-mpfr options to specify their locations.
>
> Those options take the location where you installed the libraries, i.e.
> the --prefix that you gave when configuring them.
>
> > I don't know why it doesn't pick up the correct files from the path.
>
> The paths below look like the plain source dirs of an unpacked tarball.
> These options point to a built and installed copy of the libraries, not
> a bare source dir.
>
> > [jj155244@ gcc-4.3.0]$ ls -l /import/dtg-data20/jj155244/tools/mpfr-2.3.1 |less
> > total 7587
> > -rw-r----- 1 jj155244 wheel 755 Dec 31 2007 AUTHORS
> > -rw-r----- 1 jj155244 wheel 2915 Dec 31 2007 BUGS
> > -rw-r----- 1 jj155244 wheel 18013 Dec 31 2007 COPYING
> > -rw-r----- 1 jj155244 wheel 26440 Dec 31 2007 COPYING.LIB
> >
> > [jj155244@ gcc-4.3.0]$ ls -l /import/dtg-data20/jj155244/tools/gmp-4.2.3
> > total 4198
> > -rw-r----- 1 jj155244 wheel 843 Mar 22 2006 AUTHORS
> > -rw-r----- 1 jj155244 wheel 35147 Aug 30 2007 COPYING
> > -rw-r----- 1 jj155244 wheel 7639 Aug 30 2007 COPYING.LIB
> > -rw-r----- 1 jj155244 wheel 709734 Aug 2 13:54 ChangeLog
>
> It is also possible to have gcc bootstrap these libraries with itself,
> in the usual manner of a combined tree.
>
> Brian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-27 20:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-27 14:43 including MPFR and GMP Jerin Joy
2008-08-27 20:39 ` Brian Dessent
2008-08-29 20:11 ` Jerin Joy
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).