[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
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:
tar -xf gcc-4.8.1.tar
make -j2 >logfile 2>errlog
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.
"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
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
-bash-4.3$ gcc -v
Using built-in specs.
Configured with: ../gcc-4.8.1/configure --with-as=/usr/bin/as
--disable-nls --enable-decimal-float=dpd --host=powerpc-ibm-aix188.8.131.52
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.
More information about the cfarm-users