Re: Configuration problem: not recognizing MPFR

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

 



Thanks.  Apparently the mpfr.h header file is in /usr/local/include.
How do I point gcc to this location?  I've tried each of the following
flags on the configure command:

--with-mpfr=/usr/local
--with-mpfr=/usr/local/include
--with-mpfr=/usr/local/lib
--with-mpfr=<path-to-mpfr-source>/mpfr-2.4.1

I get the same error with each of these.

Damian


On Fri, May 15, 2009 at 3:20 AM, Kai Ruottu <kai.ruottu@xxxxxxxxxxx> wrote:
> Damian Rouson wrote:
>
>> I am attempting to configure gcc-4.5-20090507 on Mac OS 10.4 using the
>> command
>> ----------
>> $ ../gcc-4.5-20090507/configure --with-languages=c,c++,fortran
>> --with-mpfr=/usr/local/lib --with-gmp=/usr/local/lib
>> ----------
>> issued from inside a directory at the same level in the directory tree
>> as the source directory.  The configure output includes the following:
>> ----------
>> checking for correct version of gmp.h... yes
>> checking for correct version of mpfr.h... no
>
> It checks the header version, not the library version !
>
>> configure: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
>> ----------
>>
>> My MPFR version is 2.4.1 and when I run "make check" inside the
>> mpfr-2.4.1 directory, I get the response
>> -----------
>> All 148 tests passed
>> ----------
>
> Have you installed this ?  Where the 'mpfr.h' went?
>
>> Inside /usr/local/lib, I have the files
>>
>> $ls libmpfr.*
>> libmpfr.1.dylib libmpfr.a       libmpfr.dylib   libmpfr.la
>
> Where is the 'mpfr.h' giving the error message?
>
>> Can someone advice me as to how to get gcc to recognize my mpfr libraries?
>
> Again, the question wasn't about the mpfr library but about the mpfr
> header!  Some older 'mpfr.h' header probably found earlier...
>
>


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux