gcc-pass2.po 12 KB

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