Ignore:
Timestamp:
11/11/2022 04:19:44 PM (18 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/arm64, xry111/arm64-12.0
Children:
1ace465
Parents:
1a77314f (diff), c4fc75e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/trunk' into xry111/arm64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/gcc-pass2.xml

    r1a77314f rf8ffc3a5  
    4949-->
    5050    <para>As in the first build of GCC, the GMP, MPFR, and MPC packages are
    51     required. Unpack the tarballs and move them into the required directory
    52     names:</para>
     51    required. Unpack the tarballs and move them into the required directories:</para>
    5352
    5453<screen><userinput remap="pre">tar -xf ../mpfr-&mpfr-version;.tar.xz
     
    109108          a cross-compiler is used for building GCC, and that compiler knows
    110109          that it has to look for headers and libraries in <filename
    111           class="directory">$LFS</filename>. But the build system of GCC uses
     110          class="directory">$LFS</filename>. But the build system for GCC uses
    112111          other tools, which are not aware of this location. This switch is
    113           needed to have them find the needed files in <filename
     112          needed so those tools will find the needed files in <filename
    114113          class="directory">$LFS</filename>, and not on the host.</para>
    115114        </listitem>
     
    119118        <term><parameter>--target=$LFS_TGT</parameter></term>
    120119        <listitem>
    121           <para>As we are cross-compiling GCC, it's impossible to build
     120          <para>We are cross-compiling GCC, so it's impossible to build
    122121          target libraries (<filename class="libraryfile">libgcc</filename>
    123122          and <filename class="libraryfile">libstdc++</filename>) with the
    124           compiled GCC binaries because these binaries won't run on the
    125           host distro.  GCC building system will attempt to use the
    126           C and C++ compilers on the host distro as a workaround by default.
    127           It's not supported to build GCC target libraries with a different
    128           version of GCC, so using host compilers may cause building
    129           failure.  This parameter ensures to build the libraries with GCC
    130           pass 1 and prevent the issue.</para>
     123          previously compiled GCC binaries&mdash;those binaries won't run on the
     124          host.  The GCC build system will attempt to use the host's
     125          C and C++ compilers as a workaround by default.
     126          Building the GCC target libraries with a different
     127          version of GCC is not supported, so using the host's compilers may cause
     128          the build to fail. This parameter ensures the libraries are built by GCC
     129          pass 1.</para>
    131130        </listitem>
    132131      </varlistentry>
     
    136135        <listitem>
    137136          <para>Allow <filename class="libraryfile">libstdc++</filename> to
    138           use shared <filename class="libraryfile">libgcc</filename> being
    139           built in this pass, instead of the static version built in GCC
    140           pass 1. This is needed for supporting C++ exception
     137          use the shared <filename class="libraryfile">libgcc</filename> being
     138          built in this pass, instead of the static version that was built in GCC
     139          pass 1. This is necessary to support C++ exception
    141140          handling.</para>
    142141        </listitem>
Note: See TracChangeset for help on using the changeset viewer.