http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57087
--- Comment #1 from Ellis N. Thomas <ExtraLeveLInSoftware at ntlworld dot com> 2013-04-27 08:10:58 UTC --- Comment on attachment 29950 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29950 Notes on installation of gcc-4.7.2 > Notes on installation of gcc-4.7.2 > >To: gcc-bugs > >1. Introduction > > Trying to build gcc-4.7.2. > > Running Mac OS X: > > System Version: Mac OS X 10.5.8 (9L30) > Kernel Version: Darwin 9.8.0 > >uname -mpv > Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; > root:xnu-1228.15.4~1/RELEASE_I386 i386 i386 > > This bug report concerns the following points. > > - Incomplete information provided in the INSTALL HTML files > > - An error reported by make > > >2. Information in the INSTALL HTML files > > The prerequisites.html states: >"Newer versions may work in some cases, but it's safer to use the exact >versions >documented. We appreciate bug reports about problems with newer versions, >though." > > and lists: > >GNU Multiple Precision Library (GMP) version 4.3.2 (or later) >MPFR Library version 2.4.2 (or later) >MPC Library version 0.8.1 (or later) > > The download.html states: > >"Likewise the GMP, MPFR and MPC libraries can be automatically built together >with GCC. Unpack the GMP, MPFR and/or MPC source distributions in the directory >containing the GCC sources and rename their directories to gmp, mpfr and mpc, >respectively (or use symbolic links with the same name)." > > >3. Report from configure > > The command was gcc-4.7.2/configure --enable-languages=ada,c,c++ > > When gcc-4.7.2/configure was run, it responded : >"configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+ >..." > > The latest sources were obtained from >ftp://www.mirrorservice.org/sites/ftp.gnu.org/gnu/ > >gmp-5.1.0a.tar.bz2 >mpc-1.0.1.tar.gz >mpfr-3.1.1.tar.gz > > These were used for starting the gcc build. >Directories: > >/Gnu/gcc/src/gcc-4.7.2/ Sources preparing for installation >/Gnu/gcc/obj/ Area for building > >/Gnu/gmp/gmp-5.1.0 Sources preparing for installation >/Gnu/mpfr/mpfr-3.1.1 Ditto >/Gnu/mpc/mpc-1.0.1 Ditto > >The gcc directory includes links for gmp, mpfr, and mpc > >/Gnu/gcc/src/gcc-4.7.2/gmp -> /Gnu/gmp/gmp-5.1.0 >/Gnu/gcc/src/gcc-4.7.2/mpc -> /Gnu/mpc/mpc-1.0.1 >/Gnu/gcc/src/gcc-4.7.2/mpfr -> /Gnu/mpfr/mpfr-3.1.1 > > >4. An error reported by make > > The make failed, with last few messages: >configure: error: libmpfr not found or uses a different ABI (including static >vs shared). >make[2]: *** [configure-stage1-mpc] Error 1 >make[1]: *** [stage1-bubble] Error 2 >make: *** [all] Error 2 > > Help was sought from the gcc-help mailing list (see: >March 21, 2013, Error in make building gcc-4.7.2) > > A response from Tim Prince suggested using the exact versions cited in >the INSTALL HTML files. This referred to: gcc/contrib/download_prerequisites >However, there is no mention of this in the INSTALL HTML files. > > >5. Repeat with cited versions > > To eliminate any side-effects from previous failed runs, the > directories were cleared, and files re-extracted from ../gcc-4.7.2.tar.gz. > > Then downloaded the versions of mpfr, mpc, and gmp listed in >src/gcc-4.7.2/contrib/download_prerequisites, using ftp rather than wget (wget >not available, but ftp seems to operate the same). > >MPFR=mpfr-2.4.2 >GMP=gmp-4.3.2 >MPC=mpc-0.8.1 > >/Gnu/mpfr/mpfr-2.4.2 >/Gnu/gmp/gmp-4.3.2 >/Gnu/mpc/mpc-0.8.1 > > Changed links in /Gnu/gcc/src/gcc-4.7.2 for mpfr, mpc, and gmp >to the new ones. > > Redid configure and make. This ran much further than previous attempts. >So these versions of gmp, mpc, and mpfr seem to be better. > > (The ultimate failure of this build seems unrelated to this libmpfr >problem, but remains unexplained at present.) > > >6. Summary of Bugs > >6.1 Incomplete information provided in the INSTALL HTML files > > There is no mention of contrib/download_prerequisites. There seem to be >many other things in contrib/ which are also not explained. > > These should be included in the INSTALL files, and the point about >"safer to use the exact versions" could be stressed or qualified with known >problems. This specially applies to use of "(or later)". > > Commands like download_prerequisites need care not to use commands like >wget, which is not available on my platform (however ftp seems to operate the >same). > >6.2 An error reported by make > > Building failed as in section 4 above using: > >gmp-5.1.0 >mpfr-3.1.1 >mpc-1.0.1 > > Possibly this only concerns libmpfr, but it is not clear whether or >not the other two have proceeded correctly. > > It is also not clear whether this is a problem specific to my platform. > >6.3 If extra information about the matters reported above would be of value >please contact: > ExtraLeveLInSoftware at ntlworld dot com > >Ellis N. Thomas/26-Apr-2013