Changes in chapter08/gcc.xml [1d599b9:2b76c89]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/gcc.xml
r1d599b9 r2b76c89 45 45 libraries to <quote>lib</quote>:</para> 46 46 47 <screen arch="default"><userinput remap="pre">case $(uname -m) in47 <screen><userinput remap="pre">case $(uname -m) in 48 48 x86_64) 49 49 sed -e '/m64=/s/lib64/lib/' \ … … 52 52 esac</userinput></screen> 53 53 54 <para arch="ml_32,ml_x32,ml_all">Change the default directory name for 64-bit55 libraries to <quote>lib</quote>:</para>56 57 <screen arch="ml_32,ml_x32,ml_all"><userinput remap="pre">sed -e '/m64=/s/lib64/lib/' \58 -e '/m32=/s/m32=.*/m32=..\/lib32$(call if_multiarch,:i386-linux-gnu)/' \59 -i.orig gcc/config/i386/t-linux64</userinput></screen>60 61 54 <para>The GCC documentation recommends building GCC in a dedicated build directory:</para> 62 55 … … 66 59 <para>Prepare GCC for compilation:</para> 67 60 68 <screen arch="default"><userinput remap="configure">../configure --prefix=/usr \61 <screen><userinput remap="configure">../configure --prefix=/usr \ 69 62 LD=ld \ 70 63 --enable-languages=c,c++ \ … … 75 68 --disable-bootstrap \ 76 69 --disable-fixincludes \ 77 --with-system-zlib</userinput></screen>78 <screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure"79 arch="ml_32" >mlist=m64,m32</userinput><userinput remap="configure"80 arch="ml_x32">mlist=m64,mx32</userinput><userinput remap="configure"81 arch="ml_all">mlist=m64,m32,mx32</userinput>82 <userinput remap="configure">../configure --prefix=/usr \83 LD=ld \84 --enable-languages=c,c++ \85 --enable-default-pie \86 --enable-default-ssp \87 --enable-host-pie \88 --enable-multilib \89 --with-multilib-list=$mlist \90 --disable-bootstrap \91 --disable-fixincludes \92 70 --with-system-zlib</userinput></screen> 93 71 … … 162 140 </important> 163 141 164 <para>One set of tests in the GCC test suite is known to exhaust the default 165 stack, so increase the stack size prior to running the tests:</para> 166 167 <screen><userinput remap="test">ulimit -s 32768</userinput></screen> 142 <para>GCC may need more stack space compiling some extremely complex 143 code patterns. As a precaution for the host distros with a tight stack 144 limit, explicitly set the stack size hard limit to infinite. 145 On most host distros (and the final LFS system) the hard limit is 146 infinite by default, but there is no harm done by setting it explicitly. 147 It's not necessary to change the stack size soft limit because GCC will 148 automatically set it to an appropriate value, as long as the value does 149 not exceed the hard limit:</para> 150 151 <screen><userinput remap="test">ulimit -s -H unlimited</userinput></screen> 168 152 169 153 <para>Now remove/fix several known test failures:</para> … … 310 294 SEARCH_DIR("/usr/lib");</computeroutput></screen> 311 295 312 <para arch="default">A 32-bit system may use a few other directories. For example, here296 <para>A 32-bit system may use a few other directories. For example, here 313 297 is the output from an i686 machine:</para> 314 298 315 <!-- not using entities here as the dir names has nothing to do with multilib --> 316 <screen arch="default"><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32") 299 <screen><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32") 317 300 SEARCH_DIR("/usr/local/lib32") 318 301 SEARCH_DIR("/lib32")
Note:
See TracChangeset
for help on using the changeset viewer.