[cfarm-users] gcc111 running AIX wtth gcc-4.8.1 does not have versions of mpfr, mpc of gmp capable of rebuilding gcc-4.8.1

CM Graff cm0graff at gmail.com
Thu Oct 12 20:16:09 CEST 2017


gcc111 uses gcc-4.8.1 so as an experiment I performed the following test:


wget http://ftp.gnu.org/gnu/gcc/gcc-4.8.1/gcc-4.8.1.tar.gz
gunzip gcc-4.8.1.tar.gz
tar -xf gcc-4.8.1.tar
cd gcc-4.8.1
./configure --prefix="${HOME}/testarea"
make -j2 >logfile 2>errlog
make install

  configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
  Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify [..]

Gcc recommends that the local libraries libgmp, libmpfr and libmpc be
installed on the development machine, which they are, but they do not
coordinate with gcc-4.8.1.

https://gcc.gnu.org/wiki/InstallingGCC

"The difficult way, which is not recommended, is to download the
sources for GMP, MPFR and MPC, then configure and install each of them
in non-standard locations, then configure GCC with
--with-gmp=/some/silly/path/gmp [...]"

I have no problem with both techniques of installing gcc, however many
modern guides, scripts and cross build systems assume the presence of
working gmp, mpfr and mpc as per the gcc documentation provided above.

One option might be to update the gcc version, another to update the
mpc/mpfr/gmp versions. Either way the canonical test of compiler +
standard C library + gmp/mpfr/mpc efficacy is that it can rebuild
itself.

-bash-4.3$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix7.1.0.0/4.8.1/lto-wrapper
Target: powerpc-ibm-aix7.1.0.0
Configured with: ../gcc-4.8.1/configure --with-as=/usr/bin/as
--with-ld=/usr/bin/ld --enable-languages=c,c++,fortran
--prefix=/opt/freeware --mandir=/opt/freeware/man
--infodir=/opt/freeware/info --enable-version-specific-runtime-libs
--disable-nls --enable-decimal-float=dpd --host=powerpc-ibm-aix7.1.0.0
Thread model: aix
gcc version 4.8.1 (GCC)

No such problems were encountered when performing a control test with
gcc75 which has gcc-4.9.2. If I am not mistaken, the development
headers in /opt/freeware were installed independently and likely never
coordinated with the original build of gcc-4.8.1.


Graff


More information about the cfarm-users mailing list