gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gm2 on FreeBSD 11.3


From: Ben Stuyts
Subject: Re: gm2 on FreeBSD 11.3
Date: Fri, 28 Feb 2020 21:26:20 +0100

Hi John,

> On 28 Feb 2020, at 19:05, john o goyo <address@hidden> wrote:
> 
> Greetings, Ben.
> 
> On 02/28/20 10:37, Ben Stuyts wrote (in part):
>> [...]
>> checking for gmp.h... no
>> configure: error: gmp.h can't be found, or is unusable.
>> gmake[1]: *** [Makefile:5175: configure-mpfr] Error 1
>> gmake[1]: Leaving directory '/home/ben/src/gm2/build-8.2.0'
>> gmake: *** [Makefile:922: all] Error 2
>> 
>> So it just built gmp, and next it cannot find it. Any idea what the problem 
>> could be?
> Our mileage will differ but I found that I always had to explicitly specify 
> where to find gmp (and others), despite they being in the "standard 
> locations" determined by configure:
> 
> --with-mpc-include=/usr/local/include \
> --with-mpc-lib=/usr/local/lib \
> --with-mpfr-include=/usr/local/include \
> --with-mpfr-lib=/usr/local/lib \
> --with-gmp-include=/usr/local/include \
> --with-gmp-lib=/usr/local/lib \

Thank you, that helped a bit. It defeats the purpose of auto configure but 
there you go. It now stop while building mpc:

/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. 
-I../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src -I..   
-I/usr/local/include -I/usr/local/include   -g -MT mul.lo -MD -MP -MF 
.deps/mul.Tpo -c -o mul.lo 
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mul.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. 
-I../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src -I.. 
-I/usr/local/include -I/usr/local/include -g -MT mul.lo -MD -MP -MF 
.deps/mul.Tpo -c 
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mul.c -o mul.o
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mul.c:175:1: error: 
static declaration of 'mpfr_fmma' follows non-static declaration
mpfr_fmma (mpfr_ptr z, mpfr_srcptr a, mpfr_srcptr b, mpfr_srcptr c,
^
/usr/local/include/mpfr.h:731:21: note: previous declaration is here
__MPFR_DECLSPEC int mpfr_fmma (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_srcptr,
                    ^
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mul.c:341:53: 
error: too many arguments to function call, expected 6, have 7
                               mpc_imagref (y), -1, MPC_RND_RE (rnd)),
                               ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mpc.h:78:23: note: 
expanded from macro 'MPC_RND_RE'
#define MPC_RND_RE(x) ((mpfr_rnd_t)((x) & 0x0F))
                      ^
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mpc.h:61:23: note: 
expanded from macro 'MPC_INEX'
        (MPC_INEX_POS(inex_re) | (MPC_INEX_POS(inex_im) << 2))
         ~~~~~~~~~~~~~^~~~~~~~
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mpc.h:51:31: note: 
expanded from macro 'MPC_INEX_POS'
#define MPC_INEX_POS(inex) (((inex) < 0) ? 2 : ((inex) == 0) ? 0 : 1)
                              ^~~~
/usr/local/include/mpfr.h:731:17: note: 'mpfr_fmma' declared here
__MPFR_DECLSPEC int mpfr_fmma (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_srcptr,
                ^
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mul.c:341:53: 
error: too many arguments to function call, expected 6, have 7
                               mpc_imagref (y), -1, MPC_RND_RE (rnd)),
                               ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mpc.h:78:23: note: 
expanded from macro 'MPC_RND_RE'
#define MPC_RND_RE(x) ((mpfr_rnd_t)((x) & 0x0F))
                      ^
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mpc.h:61:23: note: 
expanded from macro 'MPC_INEX'
        (MPC_INEX_POS(inex_re) | (MPC_INEX_POS(inex_im) << 2))
         ~~~~~~~~~~~~~^~~~~~~~
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mpc.h:51:50: note: 
expanded from macro 'MPC_INEX_POS'
#define MPC_INEX_POS(inex) (((inex) < 0) ? 2 : ((inex) == 0) ? 0 : 1)
                                                 ^~~~
/usr/local/include/mpfr.h:731:17: note: 'mpfr_fmma' declared here
__MPFR_DECLSPEC int mpfr_fmma (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_srcptr,
                ^
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mul.c:343:53: 
error: too many arguments to function call, expected 6, have 7
                               mpc_realref (y), +1, MPC_RND_IM (rnd)));
                               ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mpc.h:79:23: note: 
expanded from macro 'MPC_RND_IM'
#define MPC_RND_IM(x) ((mpfr_rnd_t)((x) >> 4))
                      ^
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mpc.h:61:48: note: 
expanded from macro 'MPC_INEX'
        (MPC_INEX_POS(inex_re) | (MPC_INEX_POS(inex_im) << 2))
                                  ~~~~~~~~~~~~~^~~~~~~~
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mpc.h:51:31: note: 
expanded from macro 'MPC_INEX_POS'
#define MPC_INEX_POS(inex) (((inex) < 0) ? 2 : ((inex) == 0) ? 0 : 1)
                              ^~~~
/usr/local/include/mpfr.h:731:17: note: 'mpfr_fmma' declared here
__MPFR_DECLSPEC int mpfr_fmma (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_srcptr,
                ^
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mul.c:343:53: 
error: too many arguments to function call, expected 6, have 7
                               mpc_realref (y), +1, MPC_RND_IM (rnd)));
                               ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mpc.h:79:23: note: 
expanded from macro 'MPC_RND_IM'
#define MPC_RND_IM(x) ((mpfr_rnd_t)((x) >> 4))
                      ^
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mpc.h:61:48: note: 
expanded from macro 'MPC_INEX'
        (MPC_INEX_POS(inex_re) | (MPC_INEX_POS(inex_im) << 2))
                                  ~~~~~~~~~~~~~^~~~~~~~
../../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src/mpc.h:51:50: note: 
expanded from macro 'MPC_INEX_POS'
#define MPC_INEX_POS(inex) (((inex) < 0) ? 2 : ((inex) == 0) ? 0 : 1)
                                                 ^~~~
/usr/local/include/mpfr.h:731:17: note: 'mpfr_fmma' declared here
__MPFR_DECLSPEC int mpfr_fmma (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_srcptr,
                ^
5 errors generated.
gmake[4]: *** [Makefile:532: mul.lo] Error 1
gmake[4]: Leaving directory '/home/ben/src/gm2/build-8.2.0/mpc/src'
gmake[3]: *** [Makefile:462: all-recursive] Error 1
gmake[3]: Leaving directory '/home/ben/src/gm2/build-8.2.0/mpc'
gmake[2]: *** [Makefile:373: all] Error 2
gmake[2]: Leaving directory '/home/ben/src/gm2/build-8.2.0/mpc'
gmake[1]: *** [Makefile:5690: all-mpc] Error 2
gmake[1]: Leaving directory '/home/ben/src/gm2/build-8.2.0'
gmake: *** [Makefile:922: all] Error 2

That is weird, I can understand a static vs non-static declaration creeping in, 
but wrong no of parameters?

I should get a clean gcc 8.2.0 and see if that compiles.

Kind regards,
Ben




reply via email to

[Prev in Thread] Current Thread [Next in Thread]