public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Bill Broadley <bill@cse.ucdavis.edu>
To: gcc-help@gcc.gnu.org
Subject: gcc-4.3.0 fails to find mpfr.h on centos-4.5 (using gcc3 and gcc4)
Date: Sat, 15 Mar 2008 02:18:00 -0000	[thread overview]
Message-ID: <47DB31B3.7000906@cse.ucdavis.edu> (raw)


Identical experience to my previous attempt on osx-10.5.2:

[root@amala gcc-4.3.0]# gcc -v
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
gcc version 3.4.6 20060404 (Red Hat 3.4.6-8)
[root@amala gcc-4.3.0]#

Built gmp-4.2.2 from scratch, ./configure --prefix=/opt/pkg/gmp-4.2.2; make; 
make install

Built mpfr-2.3.1 from scratch, ./configure --prefix=/opt/pkg/mpfr-2.3.1 
--with-gmp=/opt/pkg/gmp-4.2.2/ --with-gmp-build=/opt/src/gmp-4.2.2/

Tried to configure 4.3.0:
[root@amala gcc-4.3.0]# ./configure --prefix=/opt/pkg/gcc-4.3.0 
--with-gmp=/opt/pkg/gmp-4.2.2 --with-mpft=/opt/pkg/mpfr-2.3.1
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-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.0+.
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.
gcc-4.3.0]# ls -al /opt/pkg/mpfr-2.3.1 /opt/pkg/mpfr-2.3.1/include
/opt/pkg/mpfr-2.3.1:
total 20
drwxr-xr-x  5 root root 4096 Mar 14 18:54 .
drwxr-xr-x  4 root root 4096 Mar 14 18:54 ..
drwxr-xr-x  2 root root 4096 Mar 14 18:54 include
drwxr-xr-x  2 root root 4096 Mar 14 18:54 lib
drwxr-xr-x  3 root root 4096 Mar 14 18:54 share

/opt/pkg/mpfr-2.3.1/include:
total 56
drwxr-xr-x  2 root root  4096 Mar 14 18:54 .
drwxr-xr-x  5 root root  4096 Mar 14 18:54 ..
-rw-r--r--  1 root root  6119 Mar 14 18:54 mpf2mpfr.h
-rw-r--r--  1 root root 37381 Mar 14 18:54 mpfr.h
[root@amala gcc-4.3.0]#

gcc-4.3.0]# cat /opt/pkg/mpfr-2.3.1/include/mpfr.h  | grep -i version
the Free Software Foundation; either version 2.1 of the License, or (at your
option) any later version.
/* Define MPFR version number */
#define MPFR_VERSION_MAJOR 2
#define MPFR_VERSION_MINOR 3
#define MPFR_VERSION_PATCHLEVEL 1
#define MPFR_VERSION_STRING "2.3.1"
/* Macros dealing with MPFR VERSION */
#define MPFR_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
#define MPFR_VERSION \
MPFR_VERSION_NUM(MPFR_VERSION_MAJOR,MPFR_VERSION_MINOR,MPFR_VERSION_PATCHLEVEL)
__MPFR_DECLSPEC __gmp_const char * mpfr_get_version _MPFR_PROTO ((void));
/* Macro version of mpfr_stack interface for fast access */
#define mpfr_version (mpfr_get_version())
[root@amala gcc-4.3.0]#

BTW, I tried gcc4:
gcc version 4.1.1 20070105 (Red Hat 4.1.1-53)

To compile gmp and mpfr with gcc4 and then try again, same thing.




             reply	other threads:[~2008-03-15  2:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-15  2:18 Bill Broadley [this message]
2008-03-15  2:52 ` gcc-4.3.0 fails to find mpfr.h on (centos and osx) Bill Broadley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47DB31B3.7000906@cse.ucdavis.edu \
    --to=bill@cse.ucdavis.edu \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).