MPFR 4.0.0-rc1 causes in-tree build of gcc to fail (error building mpc)

Using:
gcc-8-20171203
gmp 6.1.2
mpc 1.0.3
mpfr 4.0.0-rc1
isl 0.16.1

mpfr-3.1.6 works fine.

/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../gcc-8.0.0/mpc/src -I.. -I/home/aroberts/gcc/gcc-build/./gmp -I/home/aroberts/gcc/gcc-8.0.0/mpfr/src   -O2 -g   -pipe -MT pow_d.lo -MD -MP -MF .deps/pow_d.Tpo -c -o pow_d.lo ../../../gcc-8.0.0/mpc/src/pow_d.c ../../../gcc-8.0.0/mpc/src/mul.c:175:1: error: conflicting types for ‘mpfr_fmma’
 mpfr_fmma (mpfr_ptr z, mpfr_srcptr a, mpfr_srcptr b, mpfr_srcptr c,
 ^~~~~~~~~
In file included from ../../../gcc-8.0.0/mpc/src/mpc.h:25:0,
                 from ../../../gcc-8.0.0/mpc/src/mpc-impl.h:30,
                 from ../../../gcc-8.0.0/mpc/src/mul.c:22:
/home/aroberts/gcc/gcc-8.0.0/mpfr/src/mpfr.h:731:21: note: previous declaration of ‘mpfr_fmma’ was here  __MPFR_DECLSPEC int mpfr_fmma (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_srcptr,
                     ^~~~~~~~~
make[4]: *** [Makefile:532: mul.lo] Error 1

I've also sent additional info to mpfr at inria.fr, but that was possibly rejected (sent to moderators), so this is just a heads up.

And yes I know its not an officially supported combination etc etc...

Regards

Andrew

Reply via email to