6.15. MPFR-3.1.2

The MPFR package contains functions for multiple precision math.

Approximate build time: 0.7 SBU
Required disk space: 30 MB

6.15.1. Installation of MPFR

First, apply the following patch to fix various bugs that have been addressed upstream:

patch -Np1 -i ../mpfr-3.1.2-upstream_fixes-3.patch

6.15.2. 32-bit Installation

Prepare MPFR for 32-bit compilation:

./configure --prefix=/usr        \
            --enable-thread-safe \
            --docdir=/usr/share/doc/mpfr-3.1.2 \
            --libdir=/usr/lib32  \
            CC="gcc -m32"

Compile the package:

make
[Important]

Important

The test suite for MPFR in this section is considered critical. Do not skip it under any circumstances.

Test the results and ensure that all tests passed:

make check

Install the package:

make install

Clean up the build directory before moving on to the next platform:

make clean

6.15.3. x32 ABI Installation

Prepare MPFR for x32 ABI compilation:

./configure --prefix=/usr        \
            --enable-thread-safe \
            --docdir=/usr/share/doc/mpfr-3.1.2 \
            --libdir=/usr/libx32  \
            CC="gcc -mx32"

Compile the package:

make
[Important]

Important

The test suite for MPFR in this section is considered critical. Do not skip it under any circumstances.

Test the results and ensure that all tests passed:

make check

Install the package:

make install

Clean up the build directory before moving on to the next platform:

make clean

6.15.4. 64-bit Installation

Prepare MPFR for 64-bit compilation:

./configure --prefix=/usr        \
            --enable-thread-safe \
            --docdir=/usr/share/doc/mpfr-3.1.2

Compile the package and generate the HTML documentation:

make
make html
[Important]

Important

The test suite for MPFR in this section is considered critical. Do not skip it under any circumstances.

Test the results and ensure that all tests passed:

make check

Install the package and its documentation:

make install
make install-html

6.15.5. Contents of MPFR

Installed Libraries: libmpfr.{a,so}
Installed directory: /usr/share/doc/mpfr-3.1.2

Short Descriptions

libmpfr

Contains multiple-precision math functions