gcc-pass2.po 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. msgid ""
  2. msgstr ""
  3. "Project-Id-Version: PACKAGE VERSION\n"
  4. "Report-Msgid-Bugs-To: \n"
  5. "POT-Creation-Date: 2020-06-17 12:44+0800\n"
  6. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  7. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  8. "Language-Team: LANGUAGE <LL@li.org>\n"
  9. "Language: zh_CN\n"
  10. "MIME-Version: 1.0\n"
  11. "Content-Type: text/plain; charset=UTF-8\n"
  12. "Content-Transfer-Encoding: 8bit\n"
  13. "X-Generator: Translate Toolkit 2.2.5\n"
  14. "X-Pootle-Path: /zh_CN/lfs/chapter05/gcc-pass2.po\n"
  15. "X-Pootle-Revision: 1671906\n"
  16. #. type: Content of: <sect1><sect1info><address>
  17. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:14
  18. #, no-wrap
  19. msgid "&gcc-url;"
  20. msgstr "&gcc-url;"
  21. #. type: Content of: <sect1><sect1info>
  22. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:12
  23. msgid ""
  24. "<productname>gcc-pass2</productname> <productnumber>&gcc-version;</"
  25. "productnumber> <placeholder type=\"address\" id=\"0\"/>"
  26. msgstr ""
  27. "<productname>gcc-pass2</productname> <productnumber>&gcc-version;</"
  28. "productnumber> <placeholder type=\"address\" id=\"0\"/>"
  29. #. type: Content of: <sect1><title>
  30. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:17
  31. msgid "GCC-&gcc-version; - Pass 2"
  32. msgstr "GCC-&gcc-version; - 第二遍"
  33. #. type: Content of: <sect1><indexterm><primary>
  34. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:20
  35. msgid "GCC"
  36. msgstr "GCC"
  37. #. type: Content of: <sect1><indexterm><secondary>
  38. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:21
  39. msgid "tools, pass 2"
  40. msgstr "tools, pass 2"
  41. #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
  42. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:32
  43. msgid "&buildtime;"
  44. msgstr "&buildtime;"
  45. #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
  46. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:33
  47. msgid "&diskspace;"
  48. msgstr "&diskspace;"
  49. #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>
  50. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:36
  51. msgid "&gcc-tmpp2-sbu;"
  52. msgstr "&gcc-tmpp2-sbu;"
  53. #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>
  54. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:37
  55. msgid "&gcc-tmpp2-du;"
  56. msgstr "&gcc-tmpp2-du;"
  57. #. type: Content of: <sect1><sect2><title>
  58. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:44
  59. msgid "Installation of GCC"
  60. msgstr "安装 GCC"
  61. #. type: Content of: <sect1><sect2><para>
  62. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:46
  63. msgid ""
  64. "As in the first build of GCC, the GMP, MPFR, and MPC packages are required. "
  65. "Unpack the tarballs and move them into the required directory names:"
  66. msgstr ""
  67. "就像第一次构建 GCC 时一样,它需要 GMP、MPFR 和 MPC 三个包。解压它们的源码"
  68. "包,并将它们移动到 GCC 要求的目录名:"
  69. #. type: Content of: <sect1><sect2><screen>
  70. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:50
  71. #, no-wrap
  72. msgid ""
  73. "<userinput remap=\"pre\">tar -xf ../mpfr-&mpfr-version;.tar.xz\n"
  74. "mv -v mpfr-&mpfr-version; mpfr\n"
  75. "tar -xf ../gmp-&gmp-version;.tar.xz\n"
  76. "mv -v gmp-&gmp-version; gmp\n"
  77. "tar -xf ../mpc-&mpc-version;.tar.gz\n"
  78. "mv -v mpc-&mpc-version; mpc</userinput>"
  79. msgstr ""
  80. "<userinput remap=\"pre\">tar -xf ../mpfr-&mpfr-version;.tar.xz\n"
  81. "mv -v mpfr-&mpfr-version; mpfr\n"
  82. "tar -xf ../gmp-&gmp-version;.tar.xz\n"
  83. "mv -v gmp-&gmp-version; gmp\n"
  84. "tar -xf ../mpc-&mpc-version;.tar.gz\n"
  85. "mv -v mpc-&mpc-version; mpc</userinput>"
  86. #. type: Content of: <sect1><sect2><para>
  87. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:57
  88. msgid ""
  89. "If building on x86_64, change the default directory name for 64-bit "
  90. "libraries to <quote>lib</quote>:"
  91. msgstr ""
  92. "如果是在 x86_64 上构建,修改 64 位库文件的默认目录名为 <quote>lib</quote>:"
  93. #. type: Content of: <sect1><sect2><screen>
  94. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:60
  95. #, no-wrap
  96. msgid ""
  97. "<userinput remap=\"pre\">case $(uname -m) in\n"
  98. " x86_64)\n"
  99. " sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64\n"
  100. " ;;\n"
  101. "esac</userinput>"
  102. msgstr ""
  103. "<userinput remap=\"pre\">case $(uname -m) in\n"
  104. " x86_64)\n"
  105. " sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64\n"
  106. " ;;\n"
  107. "esac</userinput>"
  108. #. type: Content of: <sect1><sect2><para>
  109. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:66
  110. msgid "Fix an issue with GCC-10.1 when building with a cross compiler:"
  111. msgstr "修复 GCC-10.1 在使用交叉编译器构建时出现的问题:"
  112. #. type: Content of: <sect1><sect2><screen>
  113. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:69
  114. #, no-wrap
  115. msgid "<userinput remap=\"pre\">patch -Np1 -i ../&gcc-cross-patch;</userinput>"
  116. msgstr "<userinput remap=\"pre\">patch -Np1 -i ../&gcc-cross-patch;</userinput>"
  117. #. type: Content of: <sect1><sect2><para>
  118. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:71
  119. msgid "Create a separate build directory again:"
  120. msgstr "再次创建一个独立的构建目录:"
  121. #. type: Content of: <sect1><sect2><screen>
  122. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:73
  123. #, no-wrap
  124. msgid ""
  125. "<userinput remap=\"pre\">mkdir -v build\n"
  126. "cd build</userinput>"
  127. msgstr ""
  128. "<userinput remap=\"pre\">mkdir -v build\n"
  129. "cd build</userinput>"
  130. #. type: Content of: <sect1><sect2><para>
  131. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:76
  132. msgid ""
  133. "Create a symlink that allows libgcc to be built with posix threads support:"
  134. msgstr ""
  135. "创建一个符号链接,以允许 libgcc 在构建时启用 POSIX 线程支持:"
  136. #. type: Content of: <sect1><sect2><screen>
  137. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:79
  138. #, no-wrap
  139. msgid ""
  140. "<userinput remap=\"pre\">mkdir -pv $LFS_TGT/libgcc\n"
  141. "ln -s ../../../libgcc/gthr-posix.h $LFS_TGT/libgcc/gthr-default.h</userinput>"
  142. msgstr ""
  143. "<userinput remap=\"pre\">mkdir -pv $LFS_TGT/libgcc\n"
  144. "ln -s ../../../libgcc/gthr-posix.h $LFS_TGT/libgcc/gthr-default.h</userinput>"
  145. #. type: Content of: <sect1><sect2><para>
  146. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:82
  147. msgid ""
  148. "Before starting to build GCC, remember to unset any environment variables "
  149. "that override the default optimization flags."
  150. msgstr "在开始构建 GCC 前,记得清除所有覆盖默认优化开关的环境变量。"
  151. #. type: Content of: <sect1><sect2><para>
  152. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:85
  153. msgid "Now prepare GCC for compilation:"
  154. msgstr "现在准备编译 GCC:"
  155. #. type: Content of: <sect1><sect2><screen>
  156. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:87
  157. #, no-wrap
  158. msgid ""
  159. "<userinput remap=\"configure\">../configure \\\n"
  160. " --build=$(../config.guess) \\\n"
  161. " --host=$LFS_TGT \\\n"
  162. " --prefix=/usr \\\n"
  163. " CC_FOR_TARGET=$LFS_TGT-gcc \\\n"
  164. " --with-build-sysroot=$LFS \\\n"
  165. " --enable-initfini-array \\\n"
  166. " --disable-nls \\\n"
  167. " --disable-multilib \\\n"
  168. " --disable-decimal-float \\\n"
  169. " --disable-libatomic \\\n"
  170. " --disable-libgomp \\\n"
  171. " --disable-libquadmath \\\n"
  172. " --disable-libssp \\\n"
  173. " --disable-libvtv \\\n"
  174. " --disable-libstdcxx \\\n"
  175. " --enable-languages=c,c++</userinput>"
  176. msgstr ""
  177. "<userinput remap=\"configure\">../configure \\\n"
  178. " --build=$(../config.guess) \\\n"
  179. " --host=$LFS_TGT \\\n"
  180. " --prefix=/usr \\\n"
  181. " CC_FOR_TARGET=$LFS_TGT-gcc \\\n"
  182. " --with-build-sysroot=$LFS \\\n"
  183. " --enable-initfini-array \\\n"
  184. " --disable-nls \\\n"
  185. " --disable-multilib \\\n"
  186. " --disable-decimal-float \\\n"
  187. " --disable-libatomic \\\n"
  188. " --disable-libgomp \\\n"
  189. " --disable-libquadmath \\\n"
  190. " --disable-libssp \\\n"
  191. " --disable-libvtv \\\n"
  192. " --disable-libstdcxx \\\n"
  193. " --enable-languages=c,c++</userinput>"
  194. #. type: Content of: <sect1><sect2><variablelist><title>
  195. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:106
  196. msgid "The meaning of the new configure options:"
  197. msgstr "配置选项的含义:"
  198. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  199. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:109
  200. msgid "<parameter>-with-build-sysroot=$LFS</parameter>"
  201. msgstr "<parameter>-with-build-sysroot=$LFS</parameter>"
  202. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  203. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:111
  204. msgid ""
  205. "Normally, using <parameter>--host</parameter> ensures that a cross-compiler "
  206. "is used for building GCC, and that compiler knows that it has to look for "
  207. "headers and libraries in <filename class=\"directory\">$LFS</filename>. But "
  208. "the build system of GCC uses other tools, which are not aware of this "
  209. "location. This switch is needed to have them find the needed files in "
  210. "<filename class=\"directory\">$LFS</filename>, and not on the host."
  211. msgstr ""
  212. "通常,使用 <parameter>--host</parameter> 即可保证使用交叉编译器构建 GCC,"
  213. "这个交叉编译器知道它应该在 <filename class=\"directory\">$LFS</filename> "
  214. "中查找头文件和库。但是,GCC 构建系统使用其他一些工具,它们不知道这个位置。"
  215. "因此需要该选项告诉它们在 <filename class=\"directory\">$LFS</filename> "
  216. "中查找需要的文件,而不是在宿主系统中查找。"
  217. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  218. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:122
  219. msgid "<parameter>--enable-initfini-array</parameter>"
  220. msgstr "<parameter>--enable-initfini-array</parameter>"
  221. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  222. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:124
  223. msgid ""
  224. "This option is automatically enabled when building a native compiler with a "
  225. "native compiler on x86. But here, we build with a cross compiler, so we need "
  226. "to explicitely set this option."
  227. msgstr ""
  228. "该选项在使用 x86 本地编译器构建另一个本地编译器时自动启用。"
  229. "然而我们使用交叉编译器进行编译,因此必须显式启用它。"
  230. #. type: Content of: <sect1><sect2><para>
  231. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:132
  232. msgid "Compile the package:"
  233. msgstr "编译该软件包:"
  234. #. type: Content of: <sect1><sect2><screen>
  235. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:134
  236. #, no-wrap
  237. msgid "<userinput remap=\"make\">make</userinput>"
  238. msgstr "<userinput remap=\"make\">make</userinput>"
  239. #. type: Content of: <sect1><sect2><para>
  240. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:136
  241. msgid "Install the package:"
  242. msgstr "安装该软件包:"
  243. #. type: Content of: <sect1><sect2><screen>
  244. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:138
  245. #, no-wrap
  246. msgid "<userinput remap=\"install\">make DESTDIR=$LFS install</userinput>"
  247. msgstr "<userinput remap=\"install\">make DESTDIR=$LFS install</userinput>"
  248. #. type: Content of: <sect1><sect2><para>
  249. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:140
  250. msgid ""
  251. "As a finishing touch, create a utility symlink. Many programs and scripts "
  252. "run <command>cc</command> instead of <command>gcc</command>, which is used "
  253. "to keep programs generic and therefore usable on all kinds of UNIX systems "
  254. "where the GNU C compiler is not always installed. Running <command>cc</"
  255. "command> leaves the system administrator free to decide which C compiler to "
  256. "install:"
  257. msgstr ""
  258. "最后,还需要创建一个符号链接。许多程序和脚本运行 <command>cc</command> 而不"
  259. "是 <command>gcc</command>,因为前者能够保证程序的通用性,使它可以在所有 "
  260. "UNIX 系统上使用,无论是否安装了 GNU C 编译器。运行 <command>cc</command> 可"
  261. "以将安装哪种 C 编译器的选择权留给系统管理员:"
  262. #. type: Content of: <sect1><sect2><screen>
  263. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:147
  264. #, no-wrap
  265. msgid "<userinput remap=\"install\">ln -sv gcc $LFS/usr/bin/cc</userinput>"
  266. msgstr "<userinput remap=\"install\">ln -sv gcc $LFS/usr/bin/cc</userinput>"
  267. #. type: Content of: <sect1><sect2><para>
  268. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:154
  269. msgid ""
  270. "Details on this package are located in <xref linkend=\"contents-gcc\" role="
  271. "\".\"/>"
  272. msgstr "关于本软件包的更多信息可以在<xref linkend=\"contents-gcc\"/>中找到。"