Changeset 37e35d2 for chapter08/gmp.xml
- Timestamp:
- 06/29/2020 07:55:01 AM (4 years ago)
- Branches:
- multilib-10.1
- Children:
- c4804e8
- Parents:
- d4fdde6
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
chapter08/gmp.xml
rd4fdde6 r37e35d2 32 32 33 33 <seglistitem> 34 <seg>&gmp- ch6-sbu;</seg>35 <seg>&gmp- ch6-du;</seg>34 <seg>&gmp-fin-sbu;</seg> 35 <seg>&gmp-fin-du;</seg> 36 36 </seglistitem> 37 37 </segmentedlist> … … 121 121 </sect2> 122 122 123 <!-- ~~~~~ m32 ~~~~~ --> 123 <!-- - - - - - - - - - --> 124 <!-- Multilib - 32bit --> 125 <!-- - - - - - - - - - --> 126 124 127 <sect2 arch="ml_32,ml_all" role="installation"> 125 <title>Installation of GMP - 32 -bit</title>128 <title>Installation of GMP - 32bit</title> 126 129 127 130 <para>Clean previous build:</para> … … 132 135 the following:</para> 133 136 134 <screen><userinput >cp -v configfsf.guess config.guess137 <screen><userinput remap="pre">cp -v configfsf.guess config.guess 135 138 cp -v configfsf.sub config.sub</userinput></screen> 136 139 … … 138 141 139 142 <screen><userinput remap="configure">ABI="32" \ 140 CC="gcc -m32" \ 141 CXX="g++ -m32" \ 143 CFLAGS="-m32 -O2 -pedantic -fomit-frame-pointer -mtune=generic -march=i686" \ 144 CXXFLAGS="$CFLAGS" \ 145 PKG_CONFIG_PATH="&usr-lib-m32;/pkgconfig" \ 142 146 ./configure \ 143 147 --prefix=/usr \ 144 148 --disable-static \ 145 149 --enable-cxx \ 146 --libdir=/usr/lib32 \ 147 --host=i686-pc-linux-gnu</userinput></screen> 150 --libdir=&usr-lib-m32; \ 151 --includedir=&usr-inc-m32;/gmp</userinput></screen> 152 153 <variablelist> 154 <title>The meaning of the new configure options:</title> 155 156 <varlistentry> 157 <term><parameter>--includedir=&usr-inc-m32;/gmp</parameter></term> 158 <listitem> 159 <para>Some definitions in gmp.h differs for each arch but 160 has same name. Therefore, the headers must be separated from 161 each other.</para> 162 </listitem> 163 </varlistentry> 164 165 </variablelist> 148 166 149 167 <para>Compile the package:</para> 150 168 151 <screen><userinput remap="make">make</userinput></screen> 169 <screen><userinput remap="make">sed -i 's/$(exec_prefix)\/include/$\(includedir\)/' Makefile 170 make</userinput></screen> 152 171 153 172 <important> … … 160 179 <screen><userinput remap="test">make check 2>&1 | tee gmp-check-log</userinput></screen> 161 180 162 <para>Ensure that all 19 0tests in the test suite passed.181 <para>Ensure that all 197 tests in the test suite passed. 163 182 Check the results by issuing the following command:</para> 164 183 … … 168 187 169 188 <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install 170 cp -Rv DESTDIR/usr/lib32/* /usr/lib32 189 cp -Rv DESTDIR&usr-lib-m32;/* &usr-lib-m32; 190 cp -Rv DESTDIR&usr-inc-m32;/* &usr-inc-m32;/ 171 191 rm -rf DESTDIR</userinput></screen> 172 192 173 </sect2> 174 175 <!-- ~~~~~ mx32 ~~~~~ --> 193 </sect2><!-- m32 --> 194 195 <!-- - - - - - - - - - --> 196 <!-- Multilib - x32bit --> 197 <!-- - - - - - - - - - --> 198 176 199 <sect2 arch="ml_x32,ml_all" role="installation"> 177 200 <title>Installation of GMP - x32-bit</title> … … 184 207 the following:</para> 185 208 186 <screen><userinput >cp -v configfsf.guess config.guess209 <screen><userinput remap="pre">cp -v configfsf.guess config.guess 187 210 cp -v configfsf.sub config.sub</userinput></screen> 188 211 … … 190 213 191 214 <screen><userinput remap="configure">ABI="x32" \ 192 CC="gcc -mx32" \ 193 CXX="g++ -mx32" \ 215 CFLAGS="-mx32 -O2 -pedantic -fomit-frame-pointer -mtune=generic -march=x86-64" \ 216 CXXFLAGS="$CFLAGS" \ 217 PKG_CONFIG_PATH="&usr-lib-mx32;/pkgconfig" \ 194 218 ./configure \ 195 219 --prefix=/usr \ 196 220 --disable-static \ 197 221 --enable-cxx \ 198 --libdir= /usr/libx32\199 -- host=x86_64-pc-linux-gnux32</userinput></screen>222 --libdir=&usr-lib-mx32; \ 223 --includedir=&usr-inc-mx32;/gmp</userinput></screen> 200 224 201 225 <para>Compile the package:</para> 202 226 203 <screen><userinput remap="make">make</userinput></screen> 227 <screen><userinput remap="make">sed -i 's/$(exec_prefix)\/include/$\(includedir\)/' Makefile 228 make</userinput></screen> 204 229 205 230 <important> … … 212 237 <screen><userinput remap="test">make check 2>&1 | tee gmp-check-log</userinput></screen> 213 238 214 <para>Ensure that all 19 0tests in the test suite passed.239 <para>Ensure that all 197 tests in the test suite passed. 215 240 Check the results by issuing the following command:</para> 216 241 … … 220 245 221 246 <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install 222 cp -Rv DESTDIR/usr/libx32/* /usr/libx32 247 cp -Rv DESTDIR&usr-lib-mx32;/* &usr-lib-mx32; 248 cp -Rv DESTDIR&usr-inc-mx32;/* &usr-inc-mx32;/ 223 249 rm -rf DESTDIR</userinput></screen> 224 250 225 </sect2> 226 251 </sect2><!-- mx32 --> 252 227 253 <sect2 id="contents-gmp" role="content"> 228 254 <title>Contents of GMP</title>
Note:
See TracChangeset
for help on using the changeset viewer.