| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334 | # SOME DESCRIPTIVE TITLE# Copyright (C) YEAR Free Software Foundation, Inc.# This file is distributed under the same license as the PACKAGE package.# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.##, fuzzymsgid ""msgstr """Project-Id-Version: PACKAGE VERSION\n""POT-Creation-Date: 2020-06-17 12:44+0800\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <LL@li.org>\n""Language: \n""MIME-Version: 1.0\n""Content-Type: text/plain; charset=UTF-8\n""Content-Transfer-Encoding: 8bit\n"#. type: Content of: <sect1><sect1info><address>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:14#, no-wrapmsgid "&gcc-url;"msgstr ""#. type: Content of: <sect1><sect1info>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:12msgid """<productname>gcc-pass1</productname> ""<productnumber>&gcc-version;</productnumber> <placeholder type=\"address\" ""id=\"0\"/>"msgstr ""#. type: Content of: <sect1><title>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:17msgid "GCC-&gcc-version; - Pass 1"msgstr ""#. type: Content of: <sect1><indexterm><primary>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:20msgid "GCC"msgstr ""#. type: Content of: <sect1><indexterm><secondary>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:21msgid "tools, pass 1"msgstr ""#. type: Content of: <sect1><sect2><segmentedlist><segtitle>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:32msgid "&buildtime;"msgstr ""#. type: Content of: <sect1><sect2><segmentedlist><segtitle>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:33msgid "&diskspace;"msgstr ""#. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:36msgid "&gcc-tmpp1-sbu;"msgstr ""#. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:37msgid "&gcc-tmpp1-du;"msgstr ""#. type: Content of: <sect1><sect2><title>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:44msgid "Installation of Cross GCC"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:46msgid """GCC requires the GMP, MPFR and MPC packages. As these packages may not be ""included in your host distribution, they will be built with GCC.  Unpack ""each package into the GCC source directory and rename the resulting ""directories so the GCC build procedures will automatically use them:"msgstr ""#. type: Content of: <sect1><sect2><note><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:52msgid """There are frequent misunderstandings about this chapter.  The procedures are ""the same as every other chapter as explained earlier (<xref ""linkend='buildinstr'/>).  First extract the gcc tarball from the sources ""directory and then change to the directory created.  Only then should you ""proceed with the instructions below."msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:58#, no-wrapmsgid """<userinput remap=\"pre\">tar -xf ../mpfr-&mpfr-version;.tar.xz\n""mv -v mpfr-&mpfr-version; mpfr\n""tar -xf ../gmp-&gmp-version;.tar.xz\n""mv -v gmp-&gmp-version; gmp\n""tar -xf ../mpc-&mpc-version;.tar.gz\n""mv -v mpc-&mpc-version; mpc</userinput>"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:65msgid """On x86_64 hosts, set the default directory name for 64-bit libraries to ""<quote>lib</quote>:"msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:68#, no-wrapmsgid """<userinput remap=\"pre\">case $(uname -m) in\n""  x86_64)\n""    sed -e '/m64=/s/lib64/lib/' \\\n""        -i.orig gcc/config/i386/t-linux64\n"" ;;\n""esac</userinput>"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:75msgid """The GCC documentation recommends building GCC in a dedicated build ""directory:"msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:78#, no-wrapmsgid """<userinput remap=\"pre\">mkdir -v build\n""cd       build</userinput>"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:81msgid "Prepare GCC for compilation:"msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:83#, no-wrapmsgid """<userinput remap=\"configure\">../configure                                       ""\\\n""    --target=$LFS_TGT                              \\\n""    --prefix=$LFS/tools                            \\\n""    --with-glibc-version=2.11                      \\\n""    --with-sysroot=$LFS                            \\\n""    --with-newlib                                  \\\n""    --without-headers                              \\\n""    --enable-initfini-array                        \\\n""    --disable-nls                                  \\\n""    --disable-shared                               \\\n""    --disable-multilib                             \\\n""    --disable-decimal-float                        \\\n""    --disable-threads                              \\\n""    --disable-libatomic                            \\\n""    --disable-libgomp                              \\\n""    --disable-libquadmath                          \\\n""    --disable-libssp                               \\\n""    --disable-libvtv                               \\\n""    --disable-libstdcxx                            \\\n""    --enable-languages=c,c++</userinput>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><title>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:104msgid "The meaning of the configure options:"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:107msgid "<parameter>--with-glibc-version=2.11</parameter>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:109msgid """This option ensures the package will be compatible with the host's version ""of glibc.  It is set to the minimum glibc requirement specified in the <xref ""linkend=\"ch-partitioning-hostreqs\"/>."msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:116msgid "<parameter>--with-newlib</parameter>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:118msgid """Since a working C library is not yet available, this ensures that the ""inhibit_libc constant is defined when building libgcc. This prevents the ""compiling of any code that requires libc support."msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:125msgid "<parameter>--without-headers</parameter>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:127msgid """When creating a complete cross-compiler, GCC requires standard headers ""compatible with the target system. For our purposes these headers will not ""be needed. This switch prevents GCC from looking for them."msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:135msgid "<parameter>--enable-initfini-array</parameter>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:137msgid """This switch forces the use of some internal data structures that are needed ""but cannot be detected when building a cross compiler."msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:144msgid "<parameter>--disable-shared</parameter>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:146msgid """This switch forces GCC to link its internal libraries statically. We need ""this because the shared libraries require glibc, which is not yet installed ""on the target system."msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:153msgid "<parameter>--disable-multilib</parameter>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:155msgid """On x86_64, LFS does not support a multilib configuration.  This switch is ""harmless for x86."msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:161msgid """<parameter>--disable-decimal-float, --disable-threads, --disable-libatomic, ""--disable-libgomp, --disable-libquadmath, --disable-libssp, ""--disable-libvtv, --disable-libstdcxx</parameter>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:166msgid """These switches disable support for the decimal floating point extension, ""threading, libatomic, libgomp, libquadmath, libssp, libvtv, and the C++ ""standard library respectively. These features will fail to compile when ""building a cross-compiler and are not necessary for the task of ""cross-compiling the temporary libc."msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:175msgid "<parameter>--enable-languages=c,c++</parameter>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:177msgid """This option ensures that only the C and C++ compilers are built.  These are ""the only languages needed now."msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:184msgid "Compile GCC by running:"msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:186#, no-wrapmsgid "<userinput remap=\"make\">make</userinput>"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:188msgid "Install the package:"msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:190#, no-wrapmsgid "<userinput remap=\"install\">make install</userinput>"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:192msgid """This build of GCC has installed a couple of internal system headers.  ""Normally one of them, <filename>limits.h</filename>, would in turn include ""the corresponding system <filename>limits.h</filename> header, in this case, ""<filename>$LFS/usr/include/limits.h</filename>. However, at the time of this ""build of GCC <filename>$LFS/usr/include/limits.h</filename> does not exist, ""so the internal header that has just been installed is a partial, ""self-contained file and does not include the extended features of the system ""header. This is adequate for building glibc, but the full internal header ""will be needed later.  Create a full version of the internal header using a ""command that is identical to what the GCC build system does in normal ""circumstances:"msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:204#, no-wrapmsgid """<userinput remap=\"install\">cd ..\n""cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \\\n""  `dirname $($LFS_TGT-gcc ""-print-libgcc-file-name)`/install-tools/include/limits.h</userinput>"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:212msgid """Details on this package are located in <xref linkend=\"contents-gcc\" ""role=\".\"/>"msgstr ""
 |