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 22:17:57 +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 22:03, Andrew J. Schorr wrote:
> On Thu, Feb 08, 2018 at 09:50:11PM +0100, Hermann Peifer wrote:
>> On 08.02.18 21:10, Andrew J. Schorr wrote:
>>> I think you are compiling intdiv.c without HAVE_MPFR
>>> enabled...
>>>
>>
>> Indeed. Silly me. This configure option solves the whole issue:
>> --with-mpfr=/opt/local. See below. Everything is fine now and ALL TESTS
>> PASSED.
> 
> I'm glad it's approximately solved.
> 
>> BTW: gawk itself does not need this configure option, it finds the MPFR
>> libraries anyway.
> 
> But this does not make sense to me. Are you saying that you had to
> run extension/configure manually? Or are you saying that you had to
> rerun the toplevel ./configure with the additional --with-mpfr=/opt/local
> flag?
> 
> If you go back to doing what you did when it was broken, what's the output
> from 'grep -n -i -A2 mpfr ./config.log extension/config.log'?
> 

I simply added --with-mpfr=/opt/local to toplevel ./configure. This
solved the issue. If I don't do this, then I end up with "fatal error:
'mpfr.h' file not found", but only for the extensions, not for gawk itself.

See below. Hermann

=== snippet from config.log ===
configure:10558: checking whether mpfr via "-lmpfr -lgmp" is present and
usable
configure:10585: gcc -o conftest -g -O2 -DNDEBUG -I/opt/local/include
-L/opt/local/lib conftest.c  -lmpfr -lgmp >&5
configure:10585: $? = 0
configure:10593: result: yes
...

=== snippet from extension/config.log ===
configure:12855: checking whether mpfr via "-lmpfr -lgmp" is present and
usable
configure:12882: gcc -o conftest -g -O2 -Wall  -L/opt/local/lib
conftest.c  -lmpfr -lgmp >&5
conftest.c:40:10: fatal error: 'mpfr.h' file not found
#include <mpfr.h>
         ^~~~~~~~
1 error generated.






reply via email to

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