gmp.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-gmp" role="wrap">
  8. <?dbhtml filename="gmp.html"?>
  9. <sect1info condition="script">
  10. <productname>gmp</productname>
  11. <productnumber>&gmp-version;</productnumber>
  12. <address>&gmp-url;</address>
  13. </sect1info>
  14. <title>GMP-&gmp-version;</title>
  15. <indexterm zone="ch-system-gmp">
  16. <primary sortas="a-GMP">GMP</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The GMP package contains math libraries. These have useful functions
  21. for arbitrary precision arithmetic.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&gmp-ch6-sbu;</seg>
  27. <seg>&gmp-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of GMP</title>
  33. <note>
  34. <para>If you are building for 32-bit x86, but you have a CPU which is
  35. capable of running 64-bit code <emphasis>and</emphasis> you have specified
  36. <envar>CFLAGS</envar> in the environment, the configure script will
  37. attempt to configure for 64-bits and fail.
  38. Avoid this by invoking the configure command below with
  39. <screen role="nodump"><userinput><parameter>ABI=32</parameter> ./configure ...</userinput></screen></para>
  40. </note>
  41. <para>Prepare GMP for compilation:</para>
  42. <screen><userinput remap="configure">./configure --prefix=/usr --enable-cxx</userinput></screen>
  43. <variablelist>
  44. <title>The meaning of the new configure options:</title>
  45. <varlistentry>
  46. <term><parameter>--enable-cxx</parameter></term>
  47. <listitem>
  48. <para>This parameter enables C++ support</para>
  49. </listitem>
  50. </varlistentry>
  51. </variablelist>
  52. <para>Compile the package:</para>
  53. <screen><userinput remap="make">make</userinput></screen>
  54. <important>
  55. <para>The test suite for GMP in this section is considered critical.
  56. Do not skip it under any circumstances.</para>
  57. </important>
  58. <para>Test the results:</para>
  59. <screen><userinput remap="test">make check 2>&amp;1 | tee gmp-check-log</userinput></screen>
  60. <para>Ensure that all 185 tests in the test suite passed.
  61. Check the results by issuing the following command:</para>
  62. <screen><userinput remap="test">awk '/tests passed/{total+=$2} ; END{print total}' gmp-check-log</userinput></screen>
  63. <para>Install the package:</para>
  64. <screen><userinput remap="install">make install</userinput></screen>
  65. <para>If desired, install the documentation:</para>
  66. <screen><userinput remap="install">mkdir -v /usr/share/doc/gmp-&gmp-version;
  67. cp -v doc/{isa_abi_headache,configuration} doc/*.html \
  68. /usr/share/doc/gmp-&gmp-version;</userinput></screen>
  69. </sect2>
  70. <sect2 id="contents-gmp" role="content">
  71. <title>Contents of GMP</title>
  72. <segmentedlist>
  73. <segtitle>Installed Libraries</segtitle>
  74. <segtitle>Installed directory</segtitle>
  75. <seglistitem>
  76. <seg>libgmp.{a,so} and libgmpxx.{a,so}</seg>
  77. <seg>/usr/share/doc/gmp-&gmp-version;</seg>
  78. </seglistitem>
  79. </segmentedlist>
  80. <variablelist>
  81. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  82. <?dbfo list-presentation="list"?>
  83. <?dbhtml list-presentation="table"?>
  84. <varlistentry id="libgmp">
  85. <term><filename class="libraryfile">libgmp</filename></term>
  86. <listitem>
  87. <para>Contains precision math functions.</para>
  88. <indexterm zone="ch-system-gmp libgmp">
  89. <primary sortas="c-libgmp">libgmp</primary>
  90. </indexterm>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry id="libgmpxx">
  94. <term><filename class="libraryfile">libgmpxx</filename></term>
  95. <listitem>
  96. <para>Contains C++ precision math functions.</para>
  97. <indexterm zone="ch-system-gmp libgmpxx">
  98. <primary sortas="c-libgmpxx">libgmpxx</primary>
  99. </indexterm>
  100. </listitem>
  101. </varlistentry>
  102. </variablelist>
  103. </sect2>
  104. </sect1>