Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MPFR

5 views
Skip to first unread message

BERTRAND Joël

unread,
Mar 22, 2016, 5:45:26 AM3/22/16
to port-...@netbsd.org, pkgsrc...@netbsd.org
Hello,

I'm trying to update my PWS500a. Last current NetBSD/alpha runs fine
but I have some troubles with mpfr from pkgsrc. Configure script aborts
with :

checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether gcc __attribute__ ((mode (XX))) works... yes
checking for recent GMP... yes
checking usable gmp.h at link time... yes
checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency... yes
checking for __gmpz_init in -lgmp... yes
checking if gmp.h version and libgmp version are the same...
(6.1.0/6.1.0) yes
checking for GMP library vs header correctness... yes
checking for double-to-integer conversion bug... yes or failed to exec
(exit status is 191)
configure: error: double-to-integer conversion is incorrect.
You need to use another compiler (or lower the optimization level).
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/math/mpfr
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/math/mpfr

I use gcc from NetBSD (gcc version 4.8.5 (nb3 20151015). I have tried
with gcc 4.9.2 that has been built with an older mpfr version.

Older mpfr releases can be built. I haven't found any information about
this issue. I have tried to rebuild mpfr without optimization or
specific compiler flag without any success.

Any idea to build mpfr on NetBSD/alpha ?

Best regards,

JKB

David Brownlee

unread,
Mar 29, 2016, 10:13:35 AM3/29/16
to BERTRAND Joël, port-...@netbsd.org, NetBSD/pkgsrc-users
On 29 March 2016 at 14:57, BERTRAND Joël <joel.b...@systella.fr> wrote:
> David Brownlee a écrit :
>
>> On 24 March 2016 at 20:41, BERTRAND Joël <joel.b...@systella.fr>
>> wrote:
>>>
>>> Bug found. In mk/platform/NetBSD.mk, you have specified for Alpha
>>> CFLAGS=-mieee (line 116). And mpfr cannot be built with this flag.
>>
>> I think that was added (a long time back :) to help most apps which
>> expect IEEE754 behaviour to work better on Alpha.
>>
>> Presumably mpfr used to be able to be built with the flag? I wonder
>> what changed?
>
> It was. I've used this flag on linux without trouble.

Would that be on AlphaLinux? could it be gcc version related?

> I have seen that mpfr was added in gcc53 sources (provided by pkgsrc team,
> I haven't checked on gnu ftp). gcc53 cannot be built on alpha also.

Thats interesting - I assume some changes must have been made to the
gcc-5.3 imported into tree as NetBSD/alpha cut across to gcc5.3 in the
last day or so, so hopefully the same sort of changes could be applied
to the pkgsrc version...

BERTRAND Joël

unread,
Mar 29, 2016, 10:18:46 AM3/29/16
to David Brownlee, port-...@netbsd.org, NetBSD/pkgsrc-users
David Brownlee a écrit :
> On 29 March 2016 at 14:57, BERTRAND Joël <joel.b...@systella.fr> wrote:
>> David Brownlee a écrit :
>>
>>> On 24 March 2016 at 20:41, BERTRAND Joël <joel.b...@systella.fr>
>>> wrote:
>>>>
>>>> Bug found. In mk/platform/NetBSD.mk, you have specified for Alpha
>>>> CFLAGS=-mieee (line 116). And mpfr cannot be built with this flag.
>>>
>>> I think that was added (a long time back :) to help most apps which
>>> expect IEEE754 behaviour to work better on Alpha.
>>>
>>> Presumably mpfr used to be able to be built with the flag? I wonder
>>> what changed?
>>
>> It was. I've used this flag on linux without trouble.
>
> Would that be on AlphaLinux? could it be gcc version related?

It was on Redhat/alpha and Debian/alpha a long time ago. Maybe with gcc
3.4. But under NetBSD, I've never have trouble with mpfr (older version
of mpfr and gcc 4.6).

>> I have seen that mpfr was added in gcc53 sources (provided by pkgsrc team,
>> I haven't checked on gnu ftp). gcc53 cannot be built on alpha also.
>
> Thats interesting - I assume some changes must have been made to the
> gcc-5.3 imported into tree as NetBSD/alpha cut across to gcc5.3 in the
> last day or so, so hopefully the same sort of changes could be applied
> to the pkgsrc version...

To be exact, I don't understand how gcc53 doesn't use pkgsrc/mpfr and
use its own version of mpfr.

Regards,

JKB


0 new messages