Changeset 6dff9ef for chapter06/gcc-pass2.xml
- Timestamp:
- 11/04/2022 12:29:02 AM (18 months ago)
- Branches:
- 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/update-glibc
- Children:
- 5156c400
- Parents:
- 172185a9
- git-author:
- David Bryant <davidbryant@…> (11/04/2022 12:24:54 AM)
- git-committer:
- David Bryant <davidbryant@…> (11/04/2022 12:29:02 AM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/gcc-pass2.xml
r172185a9 r6dff9ef 49 49 --> 50 50 <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> 53 52 54 53 <screen><userinput remap="pre">tar -xf ../mpfr-&mpfr-version;.tar.xz … … 112 111 a cross-compiler is used for building GCC, and that compiler knows 113 112 that it has to look for headers and libraries in <filename 114 class="directory">$LFS</filename>. But the build system ofGCC uses113 class="directory">$LFS</filename>. But the build system for GCC uses 115 114 other tools, which are not aware of this location. This switch is 116 needed to have themfind the needed files in <filename115 needed so those tools will find the needed files in <filename 117 116 class="directory">$LFS</filename>, and not on the host.</para> 118 117 </listitem> … … 122 121 <term><parameter>--target=$LFS_TGT</parameter></term> 123 122 <listitem> 124 <para> As we are cross-compiling GCC,it's impossible to build123 <para>We are cross-compiling GCC, so it's impossible to build 125 124 target libraries (<filename class="libraryfile">libgcc</filename> 126 125 and <filename class="libraryfile">libstdc++</filename>) with the 127 compiled GCC binaries because these binaries won't run on the128 host distro. GCC building system will attempt to use the129 C and C++ compilers on the host distroas a workaround by default.130 It's not supported to buildGCC target libraries with a different131 version of GCC , so using host compilers may cause building132 failure. This parameter ensures to build the libraries withGCC133 pass 1 and prevent the issue.</para>126 previously compiled GCC binaries—those binaries won't run on the 127 host. The GCC build system will attempt to use the host's 128 C and C++ compilers as a workaround by default. 129 Building the GCC target libraries with a different 130 version of GCC is not supported, so using the host's compilers may cause 131 the build to fail. This parameter ensures the libraries are built by GCC 132 pass 1.</para> 134 133 </listitem> 135 134 </varlistentry> … … 139 138 <listitem> 140 139 <para>Allow <filename class="libraryfile">libstdc++</filename> to 141 use shared <filename class="libraryfile">libgcc</filename> being142 built in this pass, instead of the static version built in GCC143 pass 1. This is ne eded for supportingC++ exception140 use the shared <filename class="libraryfile">libgcc</filename> being 141 built in this pass, instead of the static version that was built in GCC 142 pass 1. This is necessary to support C++ exception 144 143 handling.</para> 145 144 </listitem>
Note:
See TracChangeset
for help on using the changeset viewer.