123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353 |
- msgid ""
- msgstr ""
- "Project-Id-Version: PACKAGE VERSION\n"
- "POT-Creation-Date: 2020-08-08 19:28+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: zh_CN\n"
- "MIME-Version: 1.0\n"
- "Content-Type: text/plain; charset=UTF-8\n"
- "Content-Transfer-Encoding: 8bit\n"
- "X-Generator: Translate Toolkit 2.2.5\n"
- #. type: Content of: <sect1><sect1info><address>
- #, no-wrap
- msgid "&gcc-url;"
- msgstr "&gcc-url;"
- #. type: Content of: <sect1><sect1info>
- msgid ""
- "<productname>gcc-pass1</productname> <productnumber>&gcc-version;</"
- "productnumber> <placeholder type=\"address\" id=\"0\"/>"
- msgstr ""
- "<productname>gcc-pass1</productname> <productnumber>&gcc-version;</"
- "productnumber> <placeholder type=\"address\" id=\"0\"/>"
- #. type: Content of: <sect1><title>
- msgid "GCC-&gcc-version; - Pass 1"
- msgstr "GCC-&gcc-version; - 第一遍"
- #. type: Content of: <sect1><indexterm><primary>
- msgid "GCC"
- msgstr "GCC"
- #. type: Content of: <sect1><indexterm><secondary>
- msgid "tools, pass 1"
- msgstr "工具,第一遍"
- #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
- msgid "&buildtime;"
- msgstr "&buildtime;"
- #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
- msgid "&diskspace;"
- msgstr "&diskspace;"
- #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>
- msgid "&gcc-tmpp1-sbu;"
- msgstr "&gcc-tmpp1-sbu;"
- #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>
- msgid "&gcc-tmpp1-du;"
- msgstr "&gcc-tmpp1-du;"
- #. type: Content of: <sect1><sect2><title>
- msgid "Installation of Cross GCC"
- msgstr "安装交叉工具链中的 GCC"
- #. type: Content of: <sect1><sect2><para>
- msgid ""
- "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 ""
- "GCC 依赖于 GMP、MPFR 和 MPC 这三个包。由于宿主发行版未必包含它们,我们将它们"
- "和 GCC 一同构建。将它们都解压到 GCC 源码目录中,并重命名解压出的目录,这样 "
- "GCC 构建过程就能自动使用它们:"
- #. type: Content of: <sect1><sect2><note><para>
- msgid ""
- "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 ""
- "对于本章内容有一些很常见的误解。该软件包的构建过程就像之前 (<xref "
- "linkend='buildinstr'/>) 解释的那样,首先解压 GCC 压缩包,切换到解压出的目录"
- "中,再执行下面的命令。"
- #. type: Content of: <sect1><sect2><screen>
- #, no-wrap
- msgid ""
- "<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 ""
- "<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>"
- #. type: Content of: <sect1><sect2><para>
- msgid ""
- "On x86_64 hosts, set the default directory name for 64-bit libraries to "
- "<quote>lib</quote>:"
- msgstr ""
- "对于 x86_64 平台,还要设置存放 64 位库的默认目录为 <quote>lib</quote>:"
- #. type: Content of: <sect1><sect2><screen>
- #, no-wrap
- msgid ""
- "<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 ""
- "<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>"
- #. type: Content of: <sect1><sect2><para>
- msgid ""
- "The GCC documentation recommends building GCC in a dedicated build directory:"
- msgstr "GCC 文档建议在一个专用目录中构建 GCC:"
- #. type: Content of: <sect1><sect2><screen>
- #, no-wrap
- msgid ""
- "<userinput remap=\"pre\">mkdir -v build\n"
- "cd build</userinput>"
- msgstr ""
- "<userinput remap=\"pre\">mkdir -v build\n"
- "cd build</userinput>"
- #. type: Content of: <sect1><sect2><para>
- msgid "Prepare GCC for compilation:"
- msgstr "准备编译 GCC:"
- #. type: Content of: <sect1><sect2><screen>
- #, no-wrap
- msgid ""
- "<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 ""
- "<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>"
- #. type: Content of: <sect1><sect2><variablelist><title>
- msgid "The meaning of the configure options:"
- msgstr "配置选项的含义:"
- #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
- msgid "<parameter>--with-glibc-version=2.11</parameter>"
- msgstr "<parameter>--with-glibc-version=2.11</parameter>"
- #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
- msgid ""
- "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 ""
- "该选项确保该软件包与宿主的 glibc 版本兼容。它被设定为<xref linkend=\"ch-"
- "partitioning-hostreqs\"/>中要求的最小 glibc 版本一致。"
- #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
- msgid "<parameter>--with-newlib</parameter>"
- msgstr "<parameter>--with-newlib</parameter>"
- #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
- msgid ""
- "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 ""
- "由于现在没有可用的 C 运行库,使用该选项保证构建 libgcc 时 inhibit_libc 常量被"
- "定义,以防止编译任何需要 libc 支持的代码。"
- #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
- msgid "<parameter>--without-headers</parameter>"
- msgstr "<parameter>--without-headers</parameter>"
- #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
- msgid ""
- "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 ""
- "在创建完整的交叉编译器时,GCC 需要与目标系统兼容的标准头文件。由于我们的特殊"
- "目的,这些头文件并不必要。这个开关防止 GCC 查找它们。"
- #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
- msgid "<parameter>--enable-initfini-array</parameter>"
- msgstr "<parameter>--enable-initfini-array</parameter>"
- #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
- msgid ""
- "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>
- msgid "<parameter>--disable-shared</parameter>"
- msgstr "<parameter>--disable-shared</parameter>"
- #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
- msgid ""
- "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 ""
- "这个开关强制 GCC 静态链接它的内部库。我们必须这样做,因为动态库需要目标系统中"
- "尚未安装的 glibc。"
- #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
- msgid "<parameter>--disable-multilib</parameter>"
- msgstr "<parameter>--disable-multilib</parameter>"
- #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
- msgid ""
- "On x86_64, LFS does not support a multilib configuration. This switch is "
- "harmless for x86."
- msgstr ""
- "在 x86_64 平台上,LFS 不支持 multilib 配置。这个开关对于 x86 来说可有可无。"
- #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
- msgid ""
- "<parameter>--disable-decimal-float, --disable-threads, --disable-libatomic, "
- "--disable-libgomp, --disable-libquadmath, --disable-libssp, --disable-"
- "libvtv, --disable-libstdcxx</parameter>"
- msgstr ""
- "<parameter>--disable-decimal-float, --disable-threads, --disable-libatomic, "
- "--disable-libgomp, --disable-libquadmath, --disable-libssp, --disable-"
- "libvtv, --disable-libstdcxx</parameter>"
- #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
- msgid ""
- "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 ""
- "这些开关禁用对于十进制浮点数、线程、libatomic、libgomp、libquadmath、"
- "libssp、libvtv 和 C++ 标准库的支持。在构建交叉编译器时它们的编译会失败,而且"
- "在交叉编译临时 libc 时并不需要它们。"
- #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
- msgid "<parameter>--enable-languages=c,c++</parameter>"
- msgstr "<parameter>--enable-languages=c,c++</parameter>"
- #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
- msgid ""
- "This option ensures that only the C and C++ compilers are built. These are "
- "the only languages needed now."
- msgstr "这个选项保证只构建 C 和 C++ 编译器。目前只需要这两个语言。"
- #. type: Content of: <sect1><sect2><para>
- msgid "Compile GCC by running:"
- msgstr "执行以下命令编译 GCC:"
- #. type: Content of: <sect1><sect2><screen>
- #, no-wrap
- msgid "<userinput remap=\"make\">make</userinput>"
- msgstr "<userinput remap=\"make\">make</userinput>"
- #. type: Content of: <sect1><sect2><para>
- msgid "Install the package:"
- msgstr "安装该软件包:"
- #. type: Content of: <sect1><sect2><screen>
- #, no-wrap
- msgid "<userinput remap=\"install\">make install</userinput>"
- msgstr "<userinput remap=\"install\">make install</userinput>"
- #. type: Content of: <sect1><sect2><para>
- msgid ""
- "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 ""
- "刚刚构建的 GCC 安装了若干内部系统头文件。其中的 <filename>limits.h</"
- "filename> 一般来说,应该包含对应的系统头文件 <filename>limits.h</filename>,"
- "在我们的 LFS 环境中,就是 <filename>$LFS/usr/include/limits.h</filename>。然"
- "而,在构建 GCC 的时候,<filename>$LFS/usr/include/limits.h</filename> 还不存"
- "在,因此 GCC 安装的内部头文件是一个不完整的、自给自足的文件,不包含系统头文件"
- "提供的扩展特性。这对于构建临时的 libc 已经足够了,但后续工作将需要完整的内部"
- "头文件。使用以下命令创建一个完整版本的内部头文件,该命令与 GCC 构建系统在一般"
- "情况下生成该头文件的命令是一致的:"
- #. type: Content of: <sect1><sect2><screen>
- #, no-wrap
- msgid ""
- "<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 ""
- "<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>"
- #. type: Content of: <sect1><sect2><para>
- msgid ""
- "Details on this package are located in <xref linkend=\"contents-gcc\" role="
- "\".\"/>"
- msgstr "该软件包的更多细节在<xref linkend=\"contents-gcc\"/>可以找到。"
|