%general-entities; ]> gmp &gmp-version;
&gmp-url;
GMP-&gmp-version; GMP <para>The GMP package contains math libraries. These have useful functions for arbitrary precision arithmetic.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>&gmp-fin-sbu;</seg> <seg>&gmp-fin-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of GMP The default settings of GMP produce libraries optimized for the host processor. If libraries suitable for processors less capable than the host's CPU are desired, generic libraries can be created by appending the option to the configure command. Prepare GMP for compilation: ./configure --prefix=/usr \ --enable-cxx \ --disable-static \ ABI=64 \ --docdir=/usr/share/doc/gmp-&gmp-version; The meaning of the new configure options: --enable-cxx This parameter enables C++ support ABI=64 This package defaults to use N32 ABI on 64-bit MIPS systems, but LFS expects 64-bit ABI. --docdir=/usr/share/doc/gmp-&gmp-version; This variable specifies the correct place for the documentation. Compile the package and generate the HTML documentation: make make html The test suite for GMP in this section is considered critical. Do not skip it under any circumstances. Test the results: make check 2>&1 | tee gmp-check-log The code in gmp is highly optimized for the processor where it is built. Occasionally, the code that detects the processor misidentifies the system capabilities and there will be errors in the tests or other applications using the gmp libraries with the message Illegal instruction. In this case, gmp should be reconfigured with the option and rebuilt. Ensure that at least 199 tests in the test suite passed. Check the results by issuing the following command: awk '/# PASS:/{total+=$3} ; END{print total}' gmp-check-log Install the package and its documentation: make install make install-html Contents of GMP Installed libraries Installed directory libgmp.so and libgmpxx.so /usr/share/doc/gmp-&gmp-version; Short Descriptions libgmp Contains precision math functions libgmp libgmpxx Contains C++ precision math functions libgmpxx