Changeset f8ffc3a5 for chapter06/gcc-pass2.xml
- Timestamp:
- 11/11/2022 04:19:44 PM (18 months ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/gcc-pass2.xml
r1a77314f rf8ffc3a5 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 … … 109 108 a cross-compiler is used for building GCC, and that compiler knows 110 109 that it has to look for headers and libraries in <filename 111 class="directory">$LFS</filename>. But the build system ofGCC uses110 class="directory">$LFS</filename>. But the build system for GCC uses 112 111 other tools, which are not aware of this location. This switch is 113 needed to have themfind the needed files in <filename112 needed so those tools will find the needed files in <filename 114 113 class="directory">$LFS</filename>, and not on the host.</para> 115 114 </listitem> … … 119 118 <term><parameter>--target=$LFS_TGT</parameter></term> 120 119 <listitem> 121 <para> As we are cross-compiling GCC,it's impossible to build120 <para>We are cross-compiling GCC, so it's impossible to build 122 121 target libraries (<filename class="libraryfile">libgcc</filename> 123 122 and <filename class="libraryfile">libstdc++</filename>) with the 124 compiled GCC binaries because these binaries won't run on the125 host distro. GCC building system will attempt to use the126 C and C++ compilers on the host distroas a workaround by default.127 It's not supported to buildGCC target libraries with a different128 version of GCC , so using host compilers may cause building129 failure. This parameter ensures to build the libraries withGCC130 pass 1 and prevent the issue.</para>123 previously compiled GCC binaries—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> 131 130 </listitem> 132 131 </varlistentry> … … 136 135 <listitem> 137 136 <para>Allow <filename class="libraryfile">libstdc++</filename> to 138 use shared <filename class="libraryfile">libgcc</filename> being139 built in this pass, instead of the static version built in GCC140 pass 1. This is ne eded for supportingC++ exception137 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 141 140 handling.</para> 142 141 </listitem>
Note:
See TracChangeset
for help on using the changeset viewer.