1
0

gcc-pass2.po 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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/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:66
  107. msgid "Fix an issue with GCC-10.1 when building with a cross compiler:"
  108. msgstr "修复 GCC-10.1 在使用交叉编译器构建时出现的问题:"
  109. #. type: Content of: <sect1><sect2><screen>
  110. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:69
  111. #, no-wrap
  112. msgid "<userinput remap=\"pre\">patch -Np1 -i ../&gcc-cross-patch;</userinput>"
  113. msgstr "<userinput remap=\"pre\">patch -Np1 -i ../&gcc-cross-patch;</userinput>"
  114. #. type: Content of: <sect1><sect2><para>
  115. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:71
  116. msgid "Create a separate build directory again:"
  117. msgstr "再次创建一个独立的构建目录:"
  118. #. type: Content of: <sect1><sect2><screen>
  119. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:73
  120. #, no-wrap
  121. msgid ""
  122. "<userinput remap=\"pre\">mkdir -v build\n"
  123. "cd build</userinput>"
  124. msgstr ""
  125. "<userinput remap=\"pre\">mkdir -v build\n"
  126. "cd build</userinput>"
  127. #. type: Content of: <sect1><sect2><para>
  128. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:76
  129. msgid ""
  130. "Create a symlink that allows libgcc to be built with posix threads support:"
  131. msgstr ""
  132. "创建一个符号链接,以允许 libgcc 在构建时启用 POSIX 线程支持:"
  133. #. type: Content of: <sect1><sect2><screen>
  134. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:79
  135. #, no-wrap
  136. msgid ""
  137. "<userinput remap=\"pre\">mkdir -pv $LFS_TGT/libgcc\n"
  138. "ln -s ../../../libgcc/gthr-posix.h $LFS_TGT/libgcc/gthr-default.h</userinput>"
  139. msgstr ""
  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. #. type: Content of: <sect1><sect2><para>
  143. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:82
  144. msgid ""
  145. "Before starting to build GCC, remember to unset any environment variables "
  146. "that override the default optimization flags."
  147. msgstr "在开始构建 GCC 前,记得清除所有覆盖默认优化开关的环境变量。"
  148. #. type: Content of: <sect1><sect2><para>
  149. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:85
  150. msgid "Now prepare GCC for compilation:"
  151. msgstr "现在准备编译 GCC:"
  152. #. type: Content of: <sect1><sect2><screen>
  153. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:87
  154. #, no-wrap
  155. msgid ""
  156. "<userinput remap=\"configure\">../configure \\\n"
  157. " --build=$(../config.guess) \\\n"
  158. " --host=$LFS_TGT \\\n"
  159. " --prefix=/usr \\\n"
  160. " CC_FOR_TARGET=$LFS_TGT-gcc \\\n"
  161. " --with-build-sysroot=$LFS \\\n"
  162. " --enable-initfini-array \\\n"
  163. " --disable-nls \\\n"
  164. " --disable-multilib \\\n"
  165. " --disable-decimal-float \\\n"
  166. " --disable-libatomic \\\n"
  167. " --disable-libgomp \\\n"
  168. " --disable-libquadmath \\\n"
  169. " --disable-libssp \\\n"
  170. " --disable-libvtv \\\n"
  171. " --disable-libstdcxx \\\n"
  172. " --enable-languages=c,c++</userinput>"
  173. msgstr ""
  174. "<userinput remap=\"configure\">../configure \\\n"
  175. " --build=$(../config.guess) \\\n"
  176. " --host=$LFS_TGT \\\n"
  177. " --prefix=/usr \\\n"
  178. " CC_FOR_TARGET=$LFS_TGT-gcc \\\n"
  179. " --with-build-sysroot=$LFS \\\n"
  180. " --enable-initfini-array \\\n"
  181. " --disable-nls \\\n"
  182. " --disable-multilib \\\n"
  183. " --disable-decimal-float \\\n"
  184. " --disable-libatomic \\\n"
  185. " --disable-libgomp \\\n"
  186. " --disable-libquadmath \\\n"
  187. " --disable-libssp \\\n"
  188. " --disable-libvtv \\\n"
  189. " --disable-libstdcxx \\\n"
  190. " --enable-languages=c,c++</userinput>"
  191. #. type: Content of: <sect1><sect2><variablelist><title>
  192. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:106
  193. msgid "The meaning of the new configure options:"
  194. msgstr "配置选项的含义:"
  195. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  196. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:109
  197. msgid "<parameter>-with-build-sysroot=$LFS</parameter>"
  198. msgstr "<parameter>-with-build-sysroot=$LFS</parameter>"
  199. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  200. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:111
  201. msgid ""
  202. "Normally, using <parameter>--host</parameter> ensures that a cross-compiler "
  203. "is used for building GCC, and that compiler knows that it has to look for "
  204. "headers and libraries in <filename class=\"directory\">$LFS</filename>. But "
  205. "the build system of GCC uses other tools, which are not aware of this "
  206. "location. This switch is needed to have them find the needed files in "
  207. "<filename class=\"directory\">$LFS</filename>, and not on the host."
  208. msgstr ""
  209. "通常,使用 <parameter>--host</parameter> 即可保证使用交叉编译器构建 GCC,"
  210. "这个交叉编译器知道它应该在 <filename class=\"directory\">$LFS</filename> "
  211. "中查找头文件和库。但是,GCC 构建系统使用其他一些工具,它们不知道这个位置。"
  212. "因此需要该选项告诉它们在 <filename class=\"directory\">$LFS</filename> "
  213. "中查找需要的文件,而不是在宿主系统中查找。"
  214. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  215. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:122
  216. msgid "<parameter>--enable-initfini-array</parameter>"
  217. msgstr "<parameter>--enable-initfini-array</parameter>"
  218. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  219. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:124
  220. msgid ""
  221. "This option is automatically enabled when building a native compiler with a "
  222. "native compiler on x86. But here, we build with a cross compiler, so we need "
  223. "to explicitely set this option."
  224. msgstr ""
  225. "该选项在使用 x86 本地编译器构建另一个本地编译器时自动启用。"
  226. "然而我们使用交叉编译器进行编译,因此必须显式启用它。"
  227. #. type: Content of: <sect1><sect2><para>
  228. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:132
  229. msgid "Compile the package:"
  230. msgstr "编译该软件包:"
  231. #. type: Content of: <sect1><sect2><screen>
  232. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:134
  233. #, no-wrap
  234. msgid "<userinput remap=\"make\">make</userinput>"
  235. msgstr "<userinput remap=\"make\">make</userinput>"
  236. #. type: Content of: <sect1><sect2><para>
  237. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:136
  238. msgid "Install the package:"
  239. msgstr "安装该软件包:"
  240. #. type: Content of: <sect1><sect2><screen>
  241. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:138
  242. #, no-wrap
  243. msgid "<userinput remap=\"install\">make DESTDIR=$LFS install</userinput>"
  244. msgstr "<userinput remap=\"install\">make DESTDIR=$LFS install</userinput>"
  245. #. type: Content of: <sect1><sect2><para>
  246. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:140
  247. msgid ""
  248. "As a finishing touch, create a utility symlink. Many programs and scripts "
  249. "run <command>cc</command> instead of <command>gcc</command>, which is used "
  250. "to keep programs generic and therefore usable on all kinds of UNIX systems "
  251. "where the GNU C compiler is not always installed. Running <command>cc</"
  252. "command> leaves the system administrator free to decide which C compiler to "
  253. "install:"
  254. msgstr ""
  255. "最后,还需要创建一个符号链接。许多程序和脚本运行 <command>cc</command> 而不"
  256. "是 <command>gcc</command>,因为前者能够保证程序的通用性,使它可以在所有 "
  257. "UNIX 系统上使用,无论是否安装了 GNU C 编译器。运行 <command>cc</command> 可"
  258. "以将安装哪种 C 编译器的选择权留给系统管理员:"
  259. #. type: Content of: <sect1><sect2><screen>
  260. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:147
  261. #, no-wrap
  262. msgid "<userinput remap=\"install\">ln -sv gcc $LFS/usr/bin/cc</userinput>"
  263. msgstr "<userinput remap=\"install\">ln -sv gcc $LFS/usr/bin/cc</userinput>"
  264. #. type: Content of: <sect1><sect2><para>
  265. #: /home/xry111/svn-repos/LFS-BOOK/chapter06/gcc-pass2.xml:154
  266. msgid ""
  267. "Details on this package are located in <xref linkend=\"contents-gcc\" role="
  268. "\".\"/>"
  269. msgstr "关于本软件包的更多信息可以在<xref linkend=\"contents-gcc\"/>中找到。"