Changeset 673b0d8 for chapter05/gcc-pass2.xml
- Timestamp:
- 05/03/2004 10:59:46 AM (20 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 0c43171, 2ec64b3, a4a675f
- Parents:
- 287ea55
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/gcc-pass2.xml
r287ea55 r673b0d8 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [ 3 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 %general-entities; 5 ]> 1 6 <sect1 id="ch-tools-gcc-pass2"> 2 <title> InstallingGCC-&gcc-version; - Pass 2</title>3 <?dbhtml filename="gcc-pass2.html" dir="chapter05"?>7 <title>GCC-&gcc-version; - Pass 2</title> 8 <?dbhtml filename="gcc-pass2.html"?> 4 9 5 <screen>&buildtime; &gcc-time-tools-pass2; 6 &diskspace; &gcc-compsize-tools-pass2;</screen> 10 <indexterm zone="ch-tools-gcc-pass2"> 11 <primary sortas="a-GCC">GCC</primary> 12 <secondary>tools, pass 2</secondary></indexterm> 7 13 8 &aa-gcc-down; 9 & aa-gcc-dep;14 <screen>&buildtime; 11.0 SBU 15 &diskspace; 274 MB</screen> 10 16 11 <sect2><title> </title><para> </para></sect2>12 17 13 18 <sect2> … … 38 43 to unpack both the core and the g++ tarballs (and testsuite too, if you want to 39 44 run the tests). Unpacking them in your working directory, they will all unfold 40 into a single <filename> &gcc-dir;/</filename> subdirectory.</para>45 into a single <filename>gcc-&gcc-version;/</filename> subdirectory.</para> 41 46 42 47 <para>First correct a problem and make an essential adjustment:</para> 43 48 44 <screen><userinput>patch -Np1 -i ../ &gcc-nofixincludes-patch;45 patch -Np1 -i ../ &gcc-specs-patch;</userinput></screen>49 <screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes-1.patch 50 patch -Np1 -i ../gcc-&gcc-version;-specs-1.patch</userinput></screen> 46 51 47 <para>The first patch disables the GCC "fixincludes" script. We mentioned this48 briefly earlier, but a slightly more in-depth explanation of the fixincludes 49 process is warranted here. Under normal circumstances, the GCC fixincludes 50 script scans your system for header files that need to be fixed. It might find 51 that some Glibc header files on your host system need to be fixed, fix them and 52 put them in the GCC private include directory. Then, later on in53 <xref linkend="chapter-building-system"/>, after we've installed the newer Glibc, this54 private include directory would be searched before the system include 55 directory, resulting in GCC finding the fixed headers from the host system, 56 which would most likely not match the Glibc version actually used for the LFS 57 system.</para>52 <para>The first patch disables the GCC <quote>fixincludes</quote> script. We 53 mentioned this briefly earlier, but a slightly more in-depth explanation of 54 the fixincludes process is warranted here. Under normal circumstances, the GCC 55 fixincludes script scans your system for header files that need to be fixed. It 56 might find that some Glibc header files on your host system need to be fixed, 57 fix them and put them in the GCC private include directory. Then, later on in 58 <xref linkend="chapter-building-system"/>, after we've installed the newer 59 Glibc, this private include directory would be searched before the system 60 include directory, resulting in GCC finding the fixed headers from the host 61 system, which would most likely not match the Glibc version actually used for 62 the LFS system.</para> 58 63 59 64 <para>The second patch changes GCC's default location of the dynamic linker … … 78 83 <para>Now prepare GCC for compilation:</para> 79 84 80 <screen><userinput>../ &gcc-dir;/configure --prefix=/tools \81 --with-local-prefix=/tools \82 --enable-clocale=gnu --enable-shared \83 --enable-threads=posix --enable-__cxa_atexit \84 --enable-languages=c,c++</userinput></screen>85 <screen><userinput>../gcc-&gcc-version;/configure --prefix=/tools \ 86 --with-local-prefix=/tools \ 87 --enable-clocale=gnu --enable-shared \ 88 --enable-threads=posix --enable-__cxa_atexit \ 89 --enable-languages=c,c++</userinput></screen> 85 90 86 91 <para>The meaning of the new configure options:</para> … … 129 134 a summary of the test suite results, run this:</para> 130 135 131 <screen><userinput>../ &gcc-dir;/contrib/test_summary</userinput></screen>136 <screen><userinput>../gcc-&gcc-version;/contrib/test_summary</userinput></screen> 132 137 133 138 <para>(For just the summaries, pipe the output through … … 147 152 <para>The unexpected pass for g++ is due to the use of 148 153 <emphasis>--enable-__cxa_atexit</emphasis>. Apparently not all platforms 149 supported by GCC have support for "__cxa_atexit" in their C libraries, so this150 test is not always expected to pass.</para>154 supported by GCC have support for <quote>__cxa_atexit</quote> in their C 155 libraries, so this test is not always expected to pass.</para> 151 156 152 157 <para>The 24 unexpected passes for libstdc++ are due to the use of … … 161 166 <para>Having a few unexpected failures often cannot be avoided. The GCC 162 167 developers are usually aware of these, but haven't yet gotten around to fixing 163 them. In short, unless your results are vastly different from those at the 164 above URL, it is safe to continue.</para> 168 them. One particular case in point is the filebuf_members test in the C++ 169 standard library testsuite. This test has been observed to fail in some 170 situations, but succeeed in others. In short, unless your results are vastly 171 different from those at the above URL, it is safe to continue.</para> 165 172 166 173 <para>And finally install the package:</para> … … 176 183 </sect2> 177 184 178 <sect2><title> </title><para> </para>185 <sect2><title> </title><para> </para> 179 186 <para>The details on this package are found in <xref linkend="contents-gcc"/>.</para> 180 <para> </para></sect2>187 <para> </para></sect2> 181 188 182 189 </sect1> 183
Note:
See TracChangeset
for help on using the changeset viewer.