1
0

gcc-pass1.po 18 KB

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