bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] macOS: mpfrsqrt check fails on gawk-4.2-stable and master


From: Hermann Peifer
Subject: Re: [bug-gawk] macOS: mpfrsqrt check fails on gawk-4.2-stable and master branches
Date: Tue, 6 Feb 2018 22:35:42 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 06.02.18 21:58, Andrew J. Schorr wrote:
> On Tue, Feb 06, 2018 at 03:40:02PM -0500, Andrew J. Schorr wrote:
>> But to be safe: was the intdiv extension also built with MPFR 3.1.6?
>> I don't see this problem on Fedora 27 with MPFR 3.1.5. I'm building
>> 3.1.6 now...
> 
> I don't see any difference with 3.1.6. I guess one obvious thing to try
> is rebuilding with "./configure --enable-builtin-intdiv0", and then
> patching test/mpfrsqrt.awk to replace "intdiv" with "intdiv0" and confirm
> that it works correctly.

Thanks for taking your time to look after the reported issue. Rebuilding
with --enable-builtin-intdiv0 and patching the test as you suggested
gives the expected result:

$ ./gawk -M -f test/mpfrsqrt0.awk
11111111111111111111111111111111111111111111111111111111111
11111111111111111111111111111111111111111111111111111111111

$ ./gawk -M -f test/mpfrsqrt1.awk
11111111111111111111111111111111111111111111111111111111111
11111111111111111111111111111111111111111111111111111111111

> As I understand it, when you run:
> 
> AWKLIBPATH=extension/.libs ./gawk -M -f test/mpfrsqrt.awk
> 
> you are seeing:
> 
> 11111111111111111111111111111111111111111111111111111111111
> 11111111111111109867334288901275613641560219569226843684864
> 

Yes, this is what I am currently seeing on the MacBook. I can't
re-produce the issue on my CentOS Linux box though, using there: GNU Awk
4.2.60, API: 2.0 (GNU MPFR 3.1.1, GNU MP 6.0.0).

Maybe there is something wrong with the intdiv extension on the MacBook
and I should better rebuild it. I'll do this tomorrow and let you know.

Hermann




reply via email to

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