[MacPorts] #24194: gcc42, gcc43, gcc44 won't compile on Snow Leopard - Configure Error checking for correct version of mpfr.h

MacPorts noreply at macports.org
Thu Mar 25 08:29:28 PDT 2010


#24194: gcc42, gcc43, gcc44 won't compile on Snow Leopard - Configure Error
checking for correct version of mpfr.h
-------------------------------+--------------------------------------------
 Reporter:  gvibe06@…          |       Owner:  mww@…            
     Type:  defect             |      Status:  new              
 Priority:  Normal             |   Milestone:                   
Component:  ports              |     Version:  1.8.2            
 Keywords:                     |        Port:  gcc44 gcc43 gcc42
-------------------------------+--------------------------------------------
Changes (by jmr@…):

 * cc: gvibe06@… (removed)
  * keywords:  gcc44 mpfr gmp configure error =>
  * owner:  macports-tickets@… => mww@…
  * port:  gcc44 => gcc44 gcc43 gcc42


Old description:

> I've tried and tried and tried .. nothing I do works.  GCC 4.2, 4.3, nor
> 4.4 will build on my Snow Leopard.  I have even resorted to starting
> over, freshly installed Macports 1.8.2.  No luck.
>
> I've searched all over the web...not one single educated post about this
> error.  I found a really lazy patch, that did nothing for the Stable
> branch of Ports.
>
> Attached is the output from: port -v -d install gcc44
>
> checking build system type... i386-apple-darwin10
> checking host system type... i386-apple-darwin10
> checking target system type... i386-apple-darwin10
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether ln works... yes
> checking whether ln -s works... yes
> checking for gcc... /usr/bin/gcc-4.2
> 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 /usr/bin/gcc-4.2 accepts -g... yes
> checking for /usr/bin/gcc-4.2 option to accept ANSI C... none needed
> checking whether we are using the GNU C++ compiler... yes
> checking whether /usr/bin/g++-4.2 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.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.
> 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.
> Error: Target org.macports.configure returned: configure failure: shell
> command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/work/build"
> && ../gcc-4.4.3/configure --prefix=/opt/local --build=i386-apple-darwin10
> --enable-languages=c,c++,objc,obj-c++,java,fortran
> --libdir=/opt/local/lib/gcc44 --includedir=/opt/local/include/gcc44
> --infodir=/opt/local/share/info --mandir=/opt/local/share/man --with-
> system-zlib --disable-nls --program-suffix=-mp-4.4 --with-gxx-include-
> dir=/opt/local/include/gcc44/c++/ --with-gmp=/opt/local --with-
> mpfr=/opt/local --enable-stage1-checking " returned error 1
> DEBUG: Backtrace: configure failure: shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/work/build"
> && ../gcc-4.4.3/configure --prefix=/opt/local --build=i386-apple-darwin10
> --enable-languages=c,c++,objc,obj-c++,java,fortran
> --libdir=/opt/local/lib/gcc44 --includedir=/opt/local/include/gcc44
> --infodir=/opt/local/share/info --mandir=/opt/local/share/man --with-
> system-zlib --disable-nls --program-suffix=-mp-4.4 --with-gxx-include-
> dir=/opt/local/include/gcc44/c++/ --with-gmp=/opt/local --with-
> mpfr=/opt/local --enable-stage1-checking " returned error 1

New description:

 I've tried and tried and tried .. nothing I do works.  GCC 4.2, 4.3, nor
 4.4 will build on my Snow Leopard.  I have even resorted to starting over,
 freshly installed Macports 1.8.2.  No luck.

 I've searched all over the web...not one single educated post about this
 error.  I found a really lazy patch, that did nothing for the Stable
 branch of Ports.

 Attached is the output from: port -v -d install gcc44
 {{{
 checking build system type... i386-apple-darwin10
 checking host system type... i386-apple-darwin10
 checking target system type... i386-apple-darwin10
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether ln works... yes
 checking whether ln -s works... yes
 checking for gcc... /usr/bin/gcc-4.2
 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 /usr/bin/gcc-4.2 accepts -g... yes
 checking for /usr/bin/gcc-4.2 option to accept ANSI C... none needed
 checking whether we are using the GNU C++ compiler... yes
 checking whether /usr/bin/g++-4.2 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.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.
 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.
 Error: Target org.macports.configure returned: configure failure: shell
 command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/work/build"
 && ../gcc-4.4.3/configure --prefix=/opt/local --build=i386-apple-darwin10
 --enable-languages=c,c++,objc,obj-c++,java,fortran
 --libdir=/opt/local/lib/gcc44 --includedir=/opt/local/include/gcc44
 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --with-
 system-zlib --disable-nls --program-suffix=-mp-4.4 --with-gxx-include-
 dir=/opt/local/include/gcc44/c++/ --with-gmp=/opt/local --with-
 mpfr=/opt/local --enable-stage1-checking " returned error 1
 DEBUG: Backtrace: configure failure: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/work/build"
 && ../gcc-4.4.3/configure --prefix=/opt/local --build=i386-apple-darwin10
 --enable-languages=c,c++,objc,obj-c++,java,fortran
 --libdir=/opt/local/lib/gcc44 --includedir=/opt/local/include/gcc44
 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --with-
 system-zlib --disable-nls --program-suffix=-mp-4.4 --with-gxx-include-
 dir=/opt/local/include/gcc44/c++/ --with-gmp=/opt/local --with-
 mpfr=/opt/local --enable-stage1-checking " returned error 1
 }}}

--

Comment:

 Please remember to preview and use WikiFormatting and cc the maintainer,
 and note you do not need to be in cc when you are the reporter.

-- 
Ticket URL: <http://trac.macports.org/ticket/24194#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list