Changeset 8eb3fe4 for chapter06/gmp.xml
- Timestamp:
- 04/01/2019 05:00:45 PM (5 years ago)
- Branches:
- multilib-10.1
- Children:
- 7d9f881
- Parents:
- 1fa2099
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/gmp.xml
r1fa2099 r8eb3fe4 121 121 </sect2> 122 122 123 <!-- ~~~~~ m32 ~~~~~ --> 124 <sect2 arch="multilib" role="installation"> 125 <title>Installation of GMP - 32-bit</title> 126 127 <para>Clean previous build:</para> 128 129 <screen><userinput remap="pre">make distclean</userinput></screen> 130 131 <para>Generic libraries can be created by running 132 the following:</para> 133 134 <screen><userinput>cp -v configfsf.guess config.guess 135 cp -v configfsf.sub config.sub</userinput></screen> 136 137 <para>Prepare GMP for compilation:</para> 138 139 <screen><userinput remap="configure">ABI="32" \ 140 CC="gcc -m32" \ 141 CXX="g++ -m32" \ 142 ./configure \ 143 --prefix=/usr \ 144 --disable-static \ 145 --enable-cxx \ 146 --libdir=/usr/lib32 \ 147 --host=i686-pc-linux-gnu</userinput></screen> 148 149 <para>Compile the package:</para> 150 151 <screen><userinput remap="make">make</userinput></screen> 152 153 <important> 154 <para>The test suite for GMP in this section is considered critical. 155 Do not skip it under any circumstances.</para> 156 </important> 157 158 <para>Test the results:</para> 159 160 <screen><userinput remap="test">make check 2>&1 | tee gmp-check-log</userinput></screen> 161 162 <para>Ensure that all 190 tests in the test suite passed. 163 Check the results by issuing the following command:</para> 164 165 <screen><userinput remap="test">awk '/# PASS:/{total+=$3} ; END{print total}' gmp-check-log</userinput></screen> 166 167 <para>Install the package:</para> 168 169 <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install 170 cp -Rv DESTDIR/usr/lib32/* /usr/lib32 171 rm -rf DESTDIR</userinput></screen> 172 173 </sect2> 174 175 <!-- ~~~~~ m32 ~~~~~ --> 176 <sect2 arch="multilib" role="installation"> 177 <title>Installation of GMP - x32-bit</title> 178 179 <para>Clean previous build:</para> 180 181 <screen><userinput remap="pre">make distclean</userinput></screen> 182 183 <para>Generic libraries can be created by running 184 the following:</para> 185 186 <screen><userinput>cp -v configfsf.guess config.guess 187 cp -v configfsf.sub config.sub</userinput></screen> 188 189 <para>Prepare GMP for compilation:</para> 190 191 <screen><userinput remap="configure">ABI="x32" \ 192 CC="gcc -mx32" \ 193 CXX="g++ -mx32" \ 194 ./configure \ 195 --prefix=/usr \ 196 --disable-static \ 197 --enable-cxx \ 198 --libdir=/usr/libx32 \ 199 --host=x86_64-pc-linux-gnux32</userinput></screen> 200 201 <para>Compile the package:</para> 202 203 <screen><userinput remap="make">make</userinput></screen> 204 205 <important> 206 <para>The test suite for GMP in this section is considered critical. 207 Do not skip it under any circumstances.</para> 208 </important> 209 210 <para>Test the results:</para> 211 212 <screen><userinput remap="test">make check 2>&1 | tee gmp-check-log</userinput></screen> 213 214 <para>Ensure that all 190 tests in the test suite passed. 215 Check the results by issuing the following command:</para> 216 217 <screen><userinput remap="test">awk '/# PASS:/{total+=$3} ; END{print total}' gmp-check-log</userinput></screen> 218 219 <para>Install the package:</para> 220 221 <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install 222 cp -Rv DESTDIR/usr/libx32/* /usr/libx32 223 rm -rf DESTDIR</userinput></screen> 224 225 </sect2> 226 123 227 <sect2 id="contents-gmp" role="content"> 124 228 <title>Contents of GMP</title>
Note:
See TracChangeset
for help on using the changeset viewer.