Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/gcc.xml

    r1d599b9 r2b76c89  
    4545    libraries to <quote>lib</quote>:</para>
    4646
    47 <screen arch="default"><userinput remap="pre">case $(uname -m) in
     47<screen><userinput remap="pre">case $(uname -m) in
    4848  x86_64)
    4949    sed -e '/m64=/s/lib64/lib/' \
     
    5252esac</userinput></screen>
    5353
    54     <para arch="ml_32,ml_x32,ml_all">Change the default directory name for 64-bit
    55     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 
    6154    <para>The GCC documentation recommends building GCC in a dedicated build directory:</para>
    6255
     
    6659    <para>Prepare GCC for compilation:</para>
    6760
    68 <screen arch="default"><userinput remap="configure">../configure --prefix=/usr            \
     61<screen><userinput remap="configure">../configure --prefix=/usr            \
    6962             LD=ld                    \
    7063             --enable-languages=c,c++ \
     
    7568             --disable-bootstrap      \
    7669             --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       \
    9270             --with-system-zlib</userinput></screen>
    9371
     
    162140    </important>
    163141
    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>
    168152
    169153    <para>Now remove/fix several known test failures:</para>
     
    310294SEARCH_DIR("/usr/lib");</computeroutput></screen>
    311295
    312    <para arch="default">A 32-bit system may use a few other directories. For example, here
     296   <para>A 32-bit system may use a few other directories. For example, here
    313297   is the output from an i686 machine:</para>
    314298
    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")
    317300SEARCH_DIR("/usr/local/lib32")
    318301SEARCH_DIR("/lib32")
Note: See TracChangeset for help on using the changeset viewer.