[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

Paul Hargrove phhargrove at lbl.gov
Thu Oct 12 20:26:53 CEST 2017

For the record there is another (simple) way to satisfy the dependencies:

Between the "cd" and "configure" steps run
One gets the mpfr, gmp and mpc versions that were "blessed" for the given
gcc release.
The configure and build of these packages is then handled transparently.


On Thu, Oct 12, 2017 at 11:16 AM, CM Graff via cfarm-users <
cfarm-users at lists.tetaneutral.net> wrote:

> 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_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
> _______________________________________________
> cfarm-users mailing list
> cfarm-users at lists.tetaneutral.net
> https://lists.tetaneutral.net/listinfo/cfarm-users

Paul H. Hargrove                          PHHargrove at lbl.gov
Computer Languages & Systems Software (CLaSS) Group
Computer Science Department               Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tetaneutral.net/pipermail/cfarm-users/attachments/20171012/ce79c3ee/attachment.html>

More information about the cfarm-users mailing list