[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

Jonathan Wakely jwakely.gcc at gmail.com
Thu Oct 12 21:14:00 CEST 2017


On 12 October 2017 at 19:16, 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.

Because you didn't tell GCC how to find the installed versions.

> 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.

See https://gcc.gnu.org/wiki/CompileFarm#Building_GCC_on_AIX


More information about the cfarm-users mailing list