public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc-4.3.0 files to find mpfr.h on osx 10.5.2
@ 2008-03-14 19:13 Bill Broadley
  2008-03-17 13:05 ` kaaposc
  0 siblings, 1 reply; 2+ messages in thread
From: Bill Broadley @ 2008-03-14 19:13 UTC (permalink / raw)
  To: gcc-help


Short story, gmp4.2.2 builds fine (including make test), mpfr-2.3.0 builds
fine.  Gcc-4.3.0 seems to fails to configure:
checking for correct version of mpfr.h... no

Both gmp and mpfr were build with xcode.  Many more details below:

# gcc -v
Using built-in specs.
Target: powerpc-apple-darwin9
gcc version 4.0.1 (Apple Inc. build 5465)


# uname -a
Darwin aleut.geology.ucdavis.edu 9.2.0 Darwin Kernel Version 9.2.0: Tue Feb  5 
16:15:19 PST 2008; root:xnu-1228.3.13~1/RELEASE_PPC Power Macintosh

gmp-4.2.2 root# ./configure --prefix=/opt/pkg/gmp-4.2.2
gmp-4.2.2 root# make
gmp-4.2.2 root# make check
...
===================
All 56 tests passed
===================
===================
All 11 tests passed
===================
===================
All 26 tests passed
===================
==================
All 7 tests passed
==================
==================
All 3 tests passed
==================

(I might have missed some)


gmp-4.2.2 root# make install

mpfr-2.3.0 root# ./configure --prefix=/opt/pkg/mpfr-2.3.0 
--with-gmp=/opt/pkg/gmp-4.2.2/ --with-gmp-build=/opt/src/gmp-4.2.2/
mpfr-2.3.0 root# make
mpfr-2.3.0 root# make install

gcc-4.3.0 root# ./configure --prefix=/opt/pkg/gcc-4.3.0 
--with-gmp=/opt/pkg/gmp-4.2.2 --with-mpfr=/opt/pkg/mpfr-2.3.0/
checking build system type... powerpc-apple-darwin9.2.0
checking host system type... powerpc-apple-darwin9.2.0
checking target system type... powerpc-apple-darwin9.2.0
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 root# ls -al /opt/pkg/mpfr-2.3.0/
total 0
drwxr-xr-x  5 root    admin  170 Mar 13 15:11 .
drwxr-xr-x  4 root    admin  136 Mar 13 15:11 ..
drwxr-xr-x  4 root    admin  136 Mar 14 11:42 include
drwxr-xr-x  7 root    admin  238 Mar 14 11:42 lib
drwxr-xr-x  3 root    admin  102 Mar 13 15:11 share
gcc-4.3.0 root# ls -al /opt/pkg/mpfr-2.3.0/include
total 96
drwxr-xr-x  4 root  admin    136 Mar 14 11:42 .
drwxr-xr-x  5 root  admin    170 Mar 13 15:11 ..
-rw-r--r--@ 1 root  admin   6113 Mar 14 11:42 mpf2mpfr.h
-rw-r--r--@ 1 root  admin  37375 Mar 14 11:42 mpfr.h
gcc-4.3.0 root#

Any ideas?  I also tried install mpfr-2.3.1 and changing the gcc's configure 
--with-mpfr=/opt/pkg/mpfr-2.3.1/

Same thing.

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

* Re: gcc-4.3.0 files to find mpfr.h on osx 10.5.2
  2008-03-14 19:13 gcc-4.3.0 files to find mpfr.h on osx 10.5.2 Bill Broadley
@ 2008-03-17 13:05 ` kaaposc
  0 siblings, 0 replies; 2+ messages in thread
From: kaaposc @ 2008-03-17 13:05 UTC (permalink / raw)
  To: gcc-help

Bill Broadley <bill <at> cse.ucdavis.edu> writes:

> Short story, gmp4.2.2 builds fine (including make test), mpfr-2.3.0 builds
> fine.  Gcc-4.3.0 seems to fails to configure:
> checking for correct version of mpfr.h... no
<skipped>
> Any ideas?  I also tried install mpfr-2.3.1 and changing the gcc's configure 
> --with-mpfr=/opt/pkg/mpfr-2.3.1/
> 
> Same thing.


Try doing something with C_INCLUDE_PATH, LIBRARY_PATH, LD_LIBRARY_PATH and
LD_RUN_PATH (as noted in mpfr README file). For me it did NOT work
(segmentation fault), but installing gmp and mpfr with "--prefix=/tools
--with-local-prefix=/tools" for mpfr's configure (I'm trying LFS with all the
latest packages, that's why /tools) did the thing - gcc 4.3.0 now found
libmpfr.so.1 and compiles.

kpsc

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

end of thread, other threads:[~2008-03-17 13:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-14 19:13 gcc-4.3.0 files to find mpfr.h on osx 10.5.2 Bill Broadley
2008-03-17 13:05 ` kaaposc

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