Changeset 8f54b5a


Ignore:
Timestamp:
10/19/2008 07:19:00 PM (16 years ago)
Author:
Jeremy Huntwork <jhuntwork@…>
Children:
c60aa2a
Parents:
ae6a4f86
Message:

Moved gcc's bootstrap in the jh branch back to pass 1

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/jh/BOOK@8674 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    rae6a4f86 r8f54b5a  
    3939
    4040    <listitem>
     41      <para>2008-10-19</para>
     42      <itemizedlist>
     43        <listitem>
     44          <para>[jhuntwork] - Move GCC's bootstrap back to pass 1 to correspond more closely
     45          with trunk. Cross compilation methods in the future can address the issues originally
     46          bypassed by moving the bootstrap to pass 2.</para>
     47        </listitem>
     48      </itemizedlist>
     49    </listitem>
     50
     51    <listitem>
    4152      <para>2008-10-18</para>
    4253      <itemizedlist>
     
    4859      </itemizedlist>
    4960    </listitem>
    50 
    5161
    5262    <listitem>
  • chapter05/gcc-pass1.xml

    rae6a4f86 r8f54b5a  
    113113      </varlistentry>
    114114
    115       <varlistentry>
    116         <term><parameter>--disable-bootstrap</parameter></term>
    117         <listitem>
    118           <para>Bootstrapping the compiler is now the default for GCC. However,
    119           bootstrapping now would mean using our new Binutils to link against
    120           the host's libc, which in some cases produces unexpected results.</para>
    121         </listitem>
    122       </varlistentry>
    123 
    124115    </variablelist>
    125116
    126     <para>Continue with compiling by running:</para>
     117    <para>The following command will compile GCC not once, but several times. It
     118    uses the programs compiled in a first round to compile itself a second time,
     119    and then again a third time. It then compares these second and third compiles
     120    to make sure it can reproduce itself flawlessly. This is called
     121    <quote>bootstrapping</quote>. Building GCC in this way ensures that it was
     122    compiled correctly and is now the default configuration for the released
     123    package. Continue with compiling by running:</para>
    127124
    128125<screen><userinput remap="make">make</userinput></screen>
  • chapter05/gcc-pass2.xml

    rae6a4f86 r8f54b5a  
    8080<screen><userinput remap="pre">cp -v gcc/Makefile.in{,.orig}
    8181sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig &gt; gcc/Makefile.in</userinput></screen>
     82
     83    <para>The bootstrap build performed in <xref linkend="ch-tools-gcc-pass1"/>
     84    built GCC with the <option>-fomit-frame-pointer</option> compiler flag.
     85    Non-bootstrap builds omit this flag by default, so apply the following
     86    <command>sed</command> to use it in order to ensure consistent compiler
     87    builds:</para>
     88
     89<screen><userinput remap="pre">cp -v gcc/Makefile.in{,.tmp}
     90sed 's/^XCFLAGS =$/&amp; -fomit-frame-pointer/' gcc/Makefile.in.tmp \
     91  &gt; gcc/Makefile.in</userinput></screen>
    8292
    8393    <para>The following command will change the location of GCC's default
     
    147157    --enable-shared --enable-threads=posix \
    148158    --enable-__cxa_atexit --enable-languages=c,c++ \
    149     --disable-libstdcxx-pch --disable-multilib</userinput></screen>
     159    --disable-libstdcxx-pch --disable-multilib \
     160    --disable-bootstrap</userinput></screen>
    150161
    151162    <variablelist>
     
    202213      </varlistentry>
    203214
     215      <varlistentry>
     216        <term><parameter>--disable-bootstrap</parameter></term>
     217        <listitem>
     218          <para>Bootstrapping the compiler is now the default for GCC. However,
     219          our build method should provide us with a solid compiler without the
     220          need to bootstrap each time.</para>
     221        </listitem>
     222      </varlistentry>
     223
    204224    </variablelist>
    205225
    206     <para>The following command will compile GCC not once, but several times. It
    207     uses the programs compiled in a first round to compile itself a second time,
    208     and then again a third time. It then compares these second and third compiles
    209     to make sure it can reproduce itself flawlessly. This is called
    210     <quote>bootstrapping</quote>. Building GCC in this way ensures that it was
    211     compiled correctly and is now the default configuration for the released
    212     package. Continue with compiling by running:</para>
     226    <para>Compile the package:</para>
    213227
    214228<screen><userinput remap="make">make</userinput></screen>
Note: See TracChangeset for help on using the changeset viewer.