Re: bug in gmp_fprintf still in next release?

2019-10-09 Thread Niels Möller
t...@gmplib.org (Torbjörn Granlund) writes:

> IIRC, the size field counts bytes for these functions.  The size in mpz
> counts limbs.

You're right. So then for positive numbers, mpz_out_raw can deal with
numbers of at most 2^34 - 8 bits. And negative numbers of at most 2^34
bits (absolute value). Which is smaller than the mpz_t limit.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: bug in gmp_fprintf still in next release?

2019-10-09 Thread Torbjörn Granlund
ni...@lysator.liu.se (Niels Möller) writes:

  Another limit that was pointed out to me the other day is mpz_out_raw,
  with a 32-bit length field (matching the current mpz_t limit, though).

IIRC, the size field counts bytes for these functions.  The size in mpz
counts limbs.


-- 
Torbjörn
Please encrypt, key id 0xC8601622
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: segmentation fault in t-toom53 test with MAC OS X Catalina (Clang 11.0)

2019-10-09 Thread JRR

I see, I haven't updated my newer Macbook Pro from 2015 (which is Haswell)
to 10.15, but updated the XCode. There compilation and running the tests do
work.


Am 09.10.19 um 00:44 schrieb Hans Åberg:

On 8 Oct 2019, at 23:59, Torbjörn Granlund  wrote:

Juergen Reuter  writes:

  Please let me know any further information you need.

This is almost surely a compiler bug.  We have encountered countless of
bugs in clang since it showed up.  We have up-to-date apple systems for
running GMP tests, but your clang seems to be newer than what we have.

One can take down a Clang 8 binary which might be newer than the inhouse one.


I suggest that you install gcc on your system.  It might be a pain to
compile if you only have a buggy clang on your system, but I believe
there are precompiled gcc ready to download.

One suggestion is MacPorts which has not yet been updated for this MacOS 10.15.



--
--
-
Juergen Reuter
DESY Theory Group, Bldg. 2a
Notkestr. 85
22607 Hamburg, GERMANY
Tel +49 (0)40 8998 3895
Fax +49 (0)40 8998 2777
skype: jr_reuter
-

___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: segmentation fault in t-toom53 test with MAC OS X Catalina (Clang 11.0)

2019-10-09 Thread Hans Åberg

> On 8 Oct 2019, at 23:59, Torbjörn Granlund  wrote:
> 
> Juergen Reuter  writes:
> 
>  Please let me know any further information you need.
> 
> This is almost surely a compiler bug.  We have encountered countless of
> bugs in clang since it showed up.  We have up-to-date apple systems for
> running GMP tests, but your clang seems to be newer than what we have.

One can take down a Clang 8 binary which might be newer than the inhouse one.

> I suggest that you install gcc on your system.  It might be a pain to
> compile if you only have a buggy clang on your system, but I believe
> there are precompiled gcc ready to download.

One suggestion is MacPorts which has not yet been updated for this MacOS 10.15.

___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: segmentation fault in t-toom53 test with MAC OS X Catalina (Clang 11.0)

2019-10-09 Thread Hans Åberg
One might take down MacPorts GCC on MacOS 10.14 and then update to MacOS 10.15, 
but then it cannot be updated unless MacPorts has done so.


> On 9 Oct 2019, at 00:52, JRR  wrote:
> 
> I see, I haven't updated my newer Macbook Pro from 2015 (which is Haswell)
> to 10.15, but updated the XCode. There compilation and running the tests do
> work.
> 
> 
> Am 09.10.19 um 00:44 schrieb Hans Åberg:
>>> On 8 Oct 2019, at 23:59, Torbjörn Granlund  wrote:
>>> 
>>> Juergen Reuter  writes:
>>> 
>>>  Please let me know any further information you need.
>>> 
>>> This is almost surely a compiler bug.  We have encountered countless of
>>> bugs in clang since it showed up.  We have up-to-date apple systems for
>>> running GMP tests, but your clang seems to be newer than what we have.
>> One can take down a Clang 8 binary which might be newer than the inhouse one.
>> 
>>> I suggest that you install gcc on your system.  It might be a pain to
>>> compile if you only have a buggy clang on your system, but I believe
>>> there are precompiled gcc ready to download.
>> One suggestion is MacPorts which has not yet been updated for this MacOS 
>> 10.15.
>> 
> 
> -- 
> --
> -
> Juergen Reuter
> DESY Theory Group, Bldg. 2a
> Notkestr. 85
> 22607 Hamburg, GERMANY
> Tel +49 (0)40 8998 3895
> Fax +49 (0)40 8998 2777
> skype: jr_reuter
> -
> 

___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs