1
0

gcc-pass1.po 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. msgid ""
  2. msgstr ""
  3. "Project-Id-Version: PACKAGE VERSION\n"
  4. "POT-Creation-Date: 2020-08-08 19:28+0800\n"
  5. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  6. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  7. "Language-Team: LANGUAGE <LL@li.org>\n"
  8. "Language: zh_CN\n"
  9. "MIME-Version: 1.0\n"
  10. "Content-Type: text/plain; charset=UTF-8\n"
  11. "Content-Transfer-Encoding: 8bit\n"
  12. "X-Generator: Translate Toolkit 2.2.5\n"
  13. #. type: Content of: <sect1><sect1info><address>
  14. #, no-wrap
  15. msgid "&gcc-url;"
  16. msgstr "&gcc-url;"
  17. #. type: Content of: <sect1><sect1info>
  18. msgid ""
  19. "<productname>gcc-pass1</productname> <productnumber>&gcc-version;</"
  20. "productnumber> <placeholder type=\"address\" id=\"0\"/>"
  21. msgstr ""
  22. "<productname>gcc-pass1</productname> <productnumber>&gcc-version;</"
  23. "productnumber> <placeholder type=\"address\" id=\"0\"/>"
  24. #. type: Content of: <sect1><title>
  25. msgid "GCC-&gcc-version; - Pass 1"
  26. msgstr "GCC-&gcc-version; - 第一遍"
  27. #. type: Content of: <sect1><indexterm><primary>
  28. msgid "GCC"
  29. msgstr "GCC"
  30. #. type: Content of: <sect1><indexterm><secondary>
  31. msgid "tools, pass 1"
  32. msgstr "工具,第一遍"
  33. #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
  34. msgid "&buildtime;"
  35. msgstr "&buildtime;"
  36. #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
  37. msgid "&diskspace;"
  38. msgstr "&diskspace;"
  39. #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>
  40. msgid "&gcc-tmpp1-sbu;"
  41. msgstr "&gcc-tmpp1-sbu;"
  42. #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>
  43. msgid "&gcc-tmpp1-du;"
  44. msgstr "&gcc-tmpp1-du;"
  45. #. type: Content of: <sect1><sect2><title>
  46. msgid "Installation of Cross GCC"
  47. msgstr "安装交叉工具链中的 GCC"
  48. #. type: Content of: <sect1><sect2><para>
  49. msgid ""
  50. "GCC requires the GMP, MPFR and MPC packages. As these packages may not be "
  51. "included in your host distribution, they will be built with GCC. Unpack "
  52. "each package into the GCC source directory and rename the resulting "
  53. "directories so the GCC build procedures will automatically use them:"
  54. msgstr ""
  55. "GCC 依赖于 GMP、MPFR 和 MPC 这三个包。由于宿主发行版未必包含它们,我们将它们"
  56. "和 GCC 一同构建。将它们都解压到 GCC 源码目录中,并重命名解压出的目录,这样 "
  57. "GCC 构建过程就能自动使用它们:"
  58. #. type: Content of: <sect1><sect2><note><para>
  59. msgid ""
  60. "There are frequent misunderstandings about this chapter. The procedures are "
  61. "the same as every other chapter as explained earlier (<xref "
  62. "linkend='buildinstr'/>). First extract the gcc tarball from the sources "
  63. "directory and then change to the directory created. Only then should you "
  64. "proceed with the instructions below."
  65. msgstr ""
  66. "对于本章内容有一些很常见的误解。该软件包的构建过程就像之前 (<xref "
  67. "linkend='buildinstr'/>) 解释的那样,首先解压 GCC 压缩包,切换到解压出的目录"
  68. "中,再执行下面的命令。"
  69. #. type: Content of: <sect1><sect2><screen>
  70. #, no-wrap
  71. msgid ""
  72. "<userinput remap=\"pre\">tar -xf ../mpfr-&mpfr-version;.tar.xz\n"
  73. "mv -v mpfr-&mpfr-version; mpfr\n"
  74. "tar -xf ../gmp-&gmp-version;.tar.xz\n"
  75. "mv -v gmp-&gmp-version; gmp\n"
  76. "tar -xf ../mpc-&mpc-version;.tar.gz\n"
  77. "mv -v mpc-&mpc-version; mpc</userinput>"
  78. msgstr ""
  79. "<userinput remap=\"pre\">tar -xf ../mpfr-&mpfr-version;.tar.xz\n"
  80. "mv -v mpfr-&mpfr-version; mpfr\n"
  81. "tar -xf ../gmp-&gmp-version;.tar.xz\n"
  82. "mv -v gmp-&gmp-version; gmp\n"
  83. "tar -xf ../mpc-&mpc-version;.tar.gz\n"
  84. "mv -v mpc-&mpc-version; mpc</userinput>"
  85. #. type: Content of: <sect1><sect2><para>
  86. msgid ""
  87. "On x86_64 hosts, set the default directory name for 64-bit libraries to "
  88. "<quote>lib</quote>:"
  89. msgstr ""
  90. "对于 x86_64 平台,还要设置存放 64 位库的默认目录为 <quote>lib</quote>:"
  91. #. type: Content of: <sect1><sect2><screen>
  92. #, no-wrap
  93. msgid ""
  94. "<userinput remap=\"pre\">case $(uname -m) in\n"
  95. " x86_64)\n"
  96. " sed -e '/m64=/s/lib64/lib/' \\\n"
  97. " -i.orig gcc/config/i386/t-linux64\n"
  98. " ;;\n"
  99. "esac</userinput>"
  100. msgstr ""
  101. "<userinput remap=\"pre\">case $(uname -m) in\n"
  102. " x86_64)\n"
  103. " sed -e '/m64=/s/lib64/lib/' \\\n"
  104. " -i.orig gcc/config/i386/t-linux64\n"
  105. " ;;\n"
  106. "esac</userinput>"
  107. #. type: Content of: <sect1><sect2><para>
  108. msgid ""
  109. "The GCC documentation recommends building GCC in a dedicated build directory:"
  110. msgstr "GCC 文档建议在一个专用目录中构建 GCC:"
  111. #. type: Content of: <sect1><sect2><screen>
  112. #, no-wrap
  113. msgid ""
  114. "<userinput remap=\"pre\">mkdir -v build\n"
  115. "cd build</userinput>"
  116. msgstr ""
  117. "<userinput remap=\"pre\">mkdir -v build\n"
  118. "cd build</userinput>"
  119. #. type: Content of: <sect1><sect2><para>
  120. msgid "Prepare GCC for compilation:"
  121. msgstr "准备编译 GCC:"
  122. #. type: Content of: <sect1><sect2><screen>
  123. #, no-wrap
  124. msgid ""
  125. "<userinput remap=\"configure\">../configure \\\n"
  126. " --target=$LFS_TGT \\\n"
  127. " --prefix=$LFS/tools \\\n"
  128. " --with-glibc-version=2.11 \\\n"
  129. " --with-sysroot=$LFS \\\n"
  130. " --with-newlib \\\n"
  131. " --without-headers \\\n"
  132. " --enable-initfini-array \\\n"
  133. " --disable-nls \\\n"
  134. " --disable-shared \\\n"
  135. " --disable-multilib \\\n"
  136. " --disable-decimal-float \\\n"
  137. " --disable-threads \\\n"
  138. " --disable-libatomic \\\n"
  139. " --disable-libgomp \\\n"
  140. " --disable-libquadmath \\\n"
  141. " --disable-libssp \\\n"
  142. " --disable-libvtv \\\n"
  143. " --disable-libstdcxx \\\n"
  144. " --enable-languages=c,c++</userinput>"
  145. msgstr ""
  146. "<userinput remap=\"configure\">../configure \\\n"
  147. " --target=$LFS_TGT \\\n"
  148. " --prefix=$LFS/tools \\\n"
  149. " --with-glibc-version=2.11 \\\n"
  150. " --with-sysroot=$LFS \\\n"
  151. " --with-newlib \\\n"
  152. " --without-headers \\\n"
  153. " --enable-initfini-array \\\n"
  154. " --disable-nls \\\n"
  155. " --disable-shared \\\n"
  156. " --disable-multilib \\\n"
  157. " --disable-decimal-float \\\n"
  158. " --disable-threads \\\n"
  159. " --disable-libatomic \\\n"
  160. " --disable-libgomp \\\n"
  161. " --disable-libquadmath \\\n"
  162. " --disable-libssp \\\n"
  163. " --disable-libvtv \\\n"
  164. " --disable-libstdcxx \\\n"
  165. " --enable-languages=c,c++</userinput>"
  166. #. type: Content of: <sect1><sect2><variablelist><title>
  167. msgid "The meaning of the configure options:"
  168. msgstr "配置选项的含义:"
  169. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  170. msgid "<parameter>--with-glibc-version=2.11</parameter>"
  171. msgstr "<parameter>--with-glibc-version=2.11</parameter>"
  172. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  173. msgid ""
  174. "This option ensures the package will be compatible with the host's version "
  175. "of glibc. It is set to the minimum glibc requirement specified in the <xref "
  176. "linkend=\"ch-partitioning-hostreqs\"/>."
  177. msgstr ""
  178. "该选项确保该软件包与宿主的 glibc 版本兼容。它被设定为<xref linkend=\"ch-"
  179. "partitioning-hostreqs\"/>中要求的最小 glibc 版本一致。"
  180. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  181. msgid "<parameter>--with-newlib</parameter>"
  182. msgstr "<parameter>--with-newlib</parameter>"
  183. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  184. msgid ""
  185. "Since a working C library is not yet available, this ensures that the "
  186. "inhibit_libc constant is defined when building libgcc. This prevents the "
  187. "compiling of any code that requires libc support."
  188. msgstr ""
  189. "由于现在没有可用的 C 运行库,使用该选项保证构建 libgcc 时 inhibit_libc 常量被"
  190. "定义,以防止编译任何需要 libc 支持的代码。"
  191. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  192. msgid "<parameter>--without-headers</parameter>"
  193. msgstr "<parameter>--without-headers</parameter>"
  194. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  195. msgid ""
  196. "When creating a complete cross-compiler, GCC requires standard headers "
  197. "compatible with the target system. For our purposes these headers will not "
  198. "be needed. This switch prevents GCC from looking for them."
  199. msgstr ""
  200. "在创建完整的交叉编译器时,GCC 需要与目标系统兼容的标准头文件。由于我们的特殊"
  201. "目的,这些头文件并不必要。这个开关防止 GCC 查找它们。"
  202. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  203. msgid "<parameter>--enable-initfini-array</parameter>"
  204. msgstr "<parameter>--enable-initfini-array</parameter>"
  205. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  206. msgid ""
  207. "This switch forces the use of some internal data structures that are needed "
  208. "but cannot be detected when building a cross compiler."
  209. msgstr ""
  210. "这个开关强制启用一些内部数据结构,它们是必要的,但是在构建交叉编译器时,无法"
  211. "被检测到。"
  212. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  213. msgid "<parameter>--disable-shared</parameter>"
  214. msgstr "<parameter>--disable-shared</parameter>"
  215. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  216. msgid ""
  217. "This switch forces GCC to link its internal libraries statically. We need "
  218. "this because the shared libraries require glibc, which is not yet installed "
  219. "on the target system."
  220. msgstr ""
  221. "这个开关强制 GCC 静态链接它的内部库。我们必须这样做,因为动态库需要目标系统中"
  222. "尚未安装的 glibc。"
  223. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  224. msgid "<parameter>--disable-multilib</parameter>"
  225. msgstr "<parameter>--disable-multilib</parameter>"
  226. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  227. msgid ""
  228. "On x86_64, LFS does not support a multilib configuration. This switch is "
  229. "harmless for x86."
  230. msgstr ""
  231. "在 x86_64 平台上,LFS 不支持 multilib 配置。这个开关对于 x86 来说可有可无。"
  232. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  233. msgid ""
  234. "<parameter>--disable-decimal-float, --disable-threads, --disable-libatomic, "
  235. "--disable-libgomp, --disable-libquadmath, --disable-libssp, --disable-"
  236. "libvtv, --disable-libstdcxx</parameter>"
  237. msgstr ""
  238. "<parameter>--disable-decimal-float, --disable-threads, --disable-libatomic, "
  239. "--disable-libgomp, --disable-libquadmath, --disable-libssp, --disable-"
  240. "libvtv, --disable-libstdcxx</parameter>"
  241. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  242. msgid ""
  243. "These switches disable support for the decimal floating point extension, "
  244. "threading, libatomic, libgomp, libquadmath, libssp, libvtv, and the C++ "
  245. "standard library respectively. These features will fail to compile when "
  246. "building a cross-compiler and are not necessary for the task of cross-"
  247. "compiling the temporary libc."
  248. msgstr ""
  249. "这些开关禁用对于十进制浮点数、线程、libatomic、libgomp、libquadmath、"
  250. "libssp、libvtv 和 C++ 标准库的支持。在构建交叉编译器时它们的编译会失败,而且"
  251. "在交叉编译临时 libc 时并不需要它们。"
  252. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  253. msgid "<parameter>--enable-languages=c,c++</parameter>"
  254. msgstr "<parameter>--enable-languages=c,c++</parameter>"
  255. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  256. msgid ""
  257. "This option ensures that only the C and C++ compilers are built. These are "
  258. "the only languages needed now."
  259. msgstr "这个选项保证只构建 C 和 C++ 编译器。目前只需要这两个语言。"
  260. #. type: Content of: <sect1><sect2><para>
  261. msgid "Compile GCC by running:"
  262. msgstr "执行以下命令编译 GCC:"
  263. #. type: Content of: <sect1><sect2><screen>
  264. #, no-wrap
  265. msgid "<userinput remap=\"make\">make</userinput>"
  266. msgstr "<userinput remap=\"make\">make</userinput>"
  267. #. type: Content of: <sect1><sect2><para>
  268. msgid "Install the package:"
  269. msgstr "安装该软件包:"
  270. #. type: Content of: <sect1><sect2><screen>
  271. #, no-wrap
  272. msgid "<userinput remap=\"install\">make install</userinput>"
  273. msgstr "<userinput remap=\"install\">make install</userinput>"
  274. #. type: Content of: <sect1><sect2><para>
  275. msgid ""
  276. "This build of GCC has installed a couple of internal system headers. "
  277. "Normally one of them, <filename>limits.h</filename>, would in turn include "
  278. "the corresponding system <filename>limits.h</filename> header, in this case, "
  279. "<filename>$LFS/usr/include/limits.h</filename>. However, at the time of this "
  280. "build of GCC <filename>$LFS/usr/include/limits.h</filename> does not exist, "
  281. "so the internal header that has just been installed is a partial, self-"
  282. "contained file and does not include the extended features of the system "
  283. "header. This is adequate for building glibc, but the full internal header "
  284. "will be needed later. Create a full version of the internal header using a "
  285. "command that is identical to what the GCC build system does in normal "
  286. "circumstances:"
  287. msgstr ""
  288. "刚刚构建的 GCC 安装了若干内部系统头文件。其中的 <filename>limits.h</"
  289. "filename> 一般来说,应该包含对应的系统头文件 <filename>limits.h</filename>,"
  290. "在我们的 LFS 环境中,就是 <filename>$LFS/usr/include/limits.h</filename>。然"
  291. "而,在构建 GCC 的时候,<filename>$LFS/usr/include/limits.h</filename> 还不存"
  292. "在,因此 GCC 安装的内部头文件是一个不完整的、自给自足的文件,不包含系统头文件"
  293. "提供的扩展特性。这对于构建临时的 libc 已经足够了,但后续工作将需要完整的内部"
  294. "头文件。使用以下命令创建一个完整版本的内部头文件,该命令与 GCC 构建系统在一般"
  295. "情况下生成该头文件的命令是一致的:"
  296. #. type: Content of: <sect1><sect2><screen>
  297. #, no-wrap
  298. msgid ""
  299. "<userinput remap=\"install\">cd ..\n"
  300. "cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \\\n"
  301. " `dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/install-tools/include/limits.h</userinput>"
  302. msgstr ""
  303. "<userinput remap=\"install\">cd ..\n"
  304. "cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \\\n"
  305. " `dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/install-tools/include/limits.h</userinput>"
  306. #. type: Content of: <sect1><sect2><para>
  307. msgid ""
  308. "Details on this package are located in <xref linkend=\"contents-gcc\" role="
  309. "\".\"/>"
  310. msgstr "该软件包的更多细节在<xref linkend=\"contents-gcc\"/>可以找到。"