gcc warning about MPFR header version

Ken Brown kbrown@cornell.edu
Thu Feb 5 03:21:00 GMT 2015


On 2/4/2015 3:50 PM, Achim Gratz wrote:
> Ken Brown writes:
>> On 2/4/2015 10:49 AM, Achim Gratz wrote:
>>> Ken Brown writes:
>>>> While trying to build clisp on x86_64 Cygwin with 'gcc -v', I got the following:
>>>>>>>> warning: MPFR header version 3.1.2 differs from library version 3.1.2-p11.
>>>>>>>> Does this indicate a problem, or can it be safely ignored?
>>>>>> You need to install the latest version of libmpfr-devel (should be 3.1.2-2).
>>>> That's what I have.
>> You should have this:
>> --8<---------------cut here---------------start------------->8---
> $ grep MPFR_VERSION /usr/include/mpfr.h
> #define MPFR_VERSION_MAJOR 3
> #define MPFR_VERSION_MINOR 1
> #define MPFR_VERSION_PATCHLEVEL 2
> #define MPFR_VERSION_STRING "3.1.2-p11"
> #define MPFR_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
> #define MPFR_VERSION \
> MPFR_VERSION_NUM(MPFR_VERSION_MAJOR,MPFR_VERSION_MINOR,MPFR_VERSION_PATCHLEVEL)
> --8<---------------cut here---------------end--------------->8---

I do have this, and I have no other version of the header. But this
 > #define MPFR_VERSION \
 > MPFR_VERSION_NUM(MPFR_VERSION_MAJOR,MPFR_VERSION_MINOR,MPFR_VERSION_PATCHLEVEL)
yields a value of MPFR_VERSION that doesn't include the "-p11". Maybe that's 
what confused gcc. Anyway, it sounds like it's not a problem.
Ken
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /