Opened 14 years ago

Last modified 3 years ago

#24194 closed defect

gcc42, gcc43, gcc44 won't compile on Snow Leopard - Configure Error checking for correct version of mpfr.h — at Version 2

Reported by: hackdefendr (HackDefendr) Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: gcc44 gcc43

Description (last modified by jmroot (Joshua Root))

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

Change History (3)

Changed 14 years ago by hackdefendr (HackDefendr)

Attachment: gcc44_debug.txt added

Output from command: port -v -d install gcc44

comment:1 Changed 14 years ago by hackdefendr (HackDefendr)

Cc: gvibe06@… added

Cc Me!

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Cc: gvibe06@… removed
Description: modified (diff)
Keywords: gcc44 mpfr gmp configure error removed
Owner: changed from macports-tickets@… to mww@…
Port: gcc43 gcc42 added

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.

Note: See TracTickets for help on using tickets.