[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: |
Andrew J. Schorr |
Subject: |
Re: [bug-gawk] macOS: mpfrsqrt check fails on gawk-4.2-stable and master branches |
Date: |
Thu, 8 Feb 2018 15:10:02 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Feb 08, 2018 at 09:00:58PM +0100, Hermann Peifer wrote:
> 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
Hmmm. Something is terribly wrong. I think this means that MPFR is not working
at all. I get the same result when I run this without the -M flag:
bash-4.2$ echo
123456790123456790123456790123456790123456790123456790123454320987654320987654320987654320987654320987654320987654321
1234567901234567901234567901234567901234567901234567901234 |
AWKLIBPATH=extension/.libs ./gawk -l intdiv '{printf "%d\n", $1/$2; intdiv($1,
$2, r); print r["quotient"]}'
99999999999999997168788049560464200849936328366177157906432
99999999999999997168788049560464200849936328366177157906432
This suggests to me that your intdiv extension was not actually compiled
with MPFR enabled. Please share the output from this command:
grep -i mpfr extension/config.log
Regards,
Andy
- Re: [bug-gawk] macOS: mpfrsqrt check fails on gawk-4.2-stable and master branches, (continued)
- Re: [bug-gawk] macOS: mpfrsqrt check fails on gawk-4.2-stable and master branches, arnold, 2018/02/09
- Re: [bug-gawk] macOS: mpfrsqrt check fails on gawk-4.2-stable and master branches, Andrew J. Schorr, 2018/02/09
- Re: [bug-gawk] macOS: mpfrsqrt check fails on gawk-4.2-stable and master branches, arnold, 2018/02/11
- Re: [bug-gawk] macOS: mpfrsqrt check fails on gawk-4.2-stable and master branches, Andrew J. Schorr, 2018/02/11
- Re: [bug-gawk] macOS: mpfrsqrt check fails on gawk-4.2-stable and master branches, Hermann Peifer, 2018/02/09
- Re: [bug-gawk] macOS: mpfrsqrt check fails on gawk-4.2-stable and master branches, arnold, 2018/02/11
- Re: [bug-gawk] macOS: mpfrsqrt check fails on gawk-4.2-stable and master branches, peifer, 2018/02/11
- Re: [bug-gawk] macOS: mpfrsqrt check fails on gawk-4.2-stable and master branches,
Andrew J. Schorr <=
- Re: [bug-gawk] macOS: mpfrsqrt check fails on gawk-4.2-stable and master branches, Andrew J. Schorr, 2018/02/08