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: Thu, 8 Feb 2018 21:00:58 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 08.02.18 20:35, Andrew J. Schorr wrote:
> On Thu, Feb 08, 2018 at 08:20:37PM +0100, Hermann Peifer wrote:
>> On 08.02.18 18:25, address@hidden wrote:
>>> I've attached a patch that works on Linux and Cygwin.  Hermann, can
>>> you try this on MacOS X?
>>
>> No improvement, unfortunately.
> 
> That is disappointing. Does MacOS have an ldd command? Can you double-check
> the output from "ldd extension/.libs/intdiv.so"?
> 

A random search on Internet tells me: "ldd can be duplicated by otool
-L.". See below. If this helpful?

$ otool -L extension/.libs/intdiv.so
extension/.libs/intdiv.so:
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1252.0.0)

>> I will now try the patch in Andy's latest mail.
> 
> Good. That should be interesting.
> 

Maybe I am doing something terribly wrong, but I do not get any debug
info in the output, after applying your intdiv_debug.patch. And I have
done it twice: using a fresh git clone, then patching, then building. Is
mpz_conv() never executed, on my side?

$ echo
123456790123456790123456790123456790123456790123456790123454320987654320987654320987654320987654320987654320987654321
1234567901234567901234567901234567901234567901234567901234 |
AWKLIBPATH=extension/.libs ./gawk -M -l intdiv '{printf "%d\n", $1/$2;
intdiv($1, $2, r); print r["quotient"]}'
99999999999999997168788049560464200849936328366177157906432
99999999999999997168788049560464200849936328366177157906432




reply via email to

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