1
0

gcc-pass2.po 10 KB

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