gcc-pass1.po 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. # SOME DESCRIPTIVE TITLE
  2. # Copyright (C) YEAR Free Software Foundation, Inc.
  3. # This file is distributed under the same license as the PACKAGE package.
  4. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  5. #
  6. #, fuzzy
  7. msgid ""
  8. msgstr ""
  9. "Project-Id-Version: PACKAGE VERSION\n"
  10. "POT-Creation-Date: 2020-06-17 12:44+0800\n"
  11. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  12. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  13. "Language-Team: LANGUAGE <LL@li.org>\n"
  14. "Language: \n"
  15. "MIME-Version: 1.0\n"
  16. "Content-Type: text/plain; charset=UTF-8\n"
  17. "Content-Transfer-Encoding: 8bit\n"
  18. #. type: Content of: <sect1><sect1info><address>
  19. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:14
  20. #, no-wrap
  21. msgid "&gcc-url;"
  22. msgstr ""
  23. #. type: Content of: <sect1><sect1info>
  24. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:12
  25. msgid ""
  26. "<productname>gcc-pass1</productname> "
  27. "<productnumber>&gcc-version;</productnumber> <placeholder type=\"address\" "
  28. "id=\"0\"/>"
  29. msgstr ""
  30. #. type: Content of: <sect1><title>
  31. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:17
  32. msgid "GCC-&gcc-version; - Pass 1"
  33. msgstr ""
  34. #. type: Content of: <sect1><indexterm><primary>
  35. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:20
  36. msgid "GCC"
  37. msgstr ""
  38. #. type: Content of: <sect1><indexterm><secondary>
  39. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:21
  40. msgid "tools, pass 1"
  41. msgstr ""
  42. #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
  43. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:32
  44. msgid "&buildtime;"
  45. msgstr ""
  46. #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
  47. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:33
  48. msgid "&diskspace;"
  49. msgstr ""
  50. #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>
  51. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:36
  52. msgid "&gcc-tmpp1-sbu;"
  53. msgstr ""
  54. #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>
  55. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:37
  56. msgid "&gcc-tmpp1-du;"
  57. msgstr ""
  58. #. type: Content of: <sect1><sect2><title>
  59. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:44
  60. msgid "Installation of Cross GCC"
  61. msgstr ""
  62. #. type: Content of: <sect1><sect2><para>
  63. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:46
  64. msgid ""
  65. "GCC requires the GMP, MPFR and MPC packages. As these packages may not be "
  66. "included in your host distribution, they will be built with GCC. Unpack "
  67. "each package into the GCC source directory and rename the resulting "
  68. "directories so the GCC build procedures will automatically use them:"
  69. msgstr ""
  70. #. type: Content of: <sect1><sect2><note><para>
  71. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:52
  72. msgid ""
  73. "There are frequent misunderstandings about this chapter. The procedures are "
  74. "the same as every other chapter as explained earlier (<xref "
  75. "linkend='buildinstr'/>). First extract the gcc tarball from the sources "
  76. "directory and then change to the directory created. Only then should you "
  77. "proceed with the instructions below."
  78. msgstr ""
  79. #. type: Content of: <sect1><sect2><screen>
  80. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:58
  81. #, no-wrap
  82. msgid ""
  83. "<userinput remap=\"pre\">tar -xf ../mpfr-&mpfr-version;.tar.xz\n"
  84. "mv -v mpfr-&mpfr-version; mpfr\n"
  85. "tar -xf ../gmp-&gmp-version;.tar.xz\n"
  86. "mv -v gmp-&gmp-version; gmp\n"
  87. "tar -xf ../mpc-&mpc-version;.tar.gz\n"
  88. "mv -v mpc-&mpc-version; mpc</userinput>"
  89. msgstr ""
  90. #. type: Content of: <sect1><sect2><para>
  91. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:65
  92. msgid ""
  93. "On x86_64 hosts, set the default directory name for 64-bit libraries to "
  94. "<quote>lib</quote>:"
  95. msgstr ""
  96. #. type: Content of: <sect1><sect2><screen>
  97. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:68
  98. #, no-wrap
  99. msgid ""
  100. "<userinput remap=\"pre\">case $(uname -m) in\n"
  101. " x86_64)\n"
  102. " sed -e '/m64=/s/lib64/lib/' \\\n"
  103. " -i.orig gcc/config/i386/t-linux64\n"
  104. " ;;\n"
  105. "esac</userinput>"
  106. msgstr ""
  107. #. type: Content of: <sect1><sect2><para>
  108. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:75
  109. msgid ""
  110. "The GCC documentation recommends building GCC in a dedicated build "
  111. "directory:"
  112. msgstr ""
  113. #. type: Content of: <sect1><sect2><screen>
  114. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:78
  115. #, no-wrap
  116. msgid ""
  117. "<userinput remap=\"pre\">mkdir -v build\n"
  118. "cd build</userinput>"
  119. msgstr ""
  120. #. type: Content of: <sect1><sect2><para>
  121. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:81
  122. msgid "Prepare GCC for compilation:"
  123. msgstr ""
  124. #. type: Content of: <sect1><sect2><screen>
  125. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:83
  126. #, no-wrap
  127. msgid ""
  128. "<userinput remap=\"configure\">../configure "
  129. "\\\n"
  130. " --target=$LFS_TGT \\\n"
  131. " --prefix=$LFS/tools \\\n"
  132. " --with-glibc-version=2.11 \\\n"
  133. " --with-sysroot=$LFS \\\n"
  134. " --with-newlib \\\n"
  135. " --without-headers \\\n"
  136. " --enable-initfini-array \\\n"
  137. " --disable-nls \\\n"
  138. " --disable-shared \\\n"
  139. " --disable-multilib \\\n"
  140. " --disable-decimal-float \\\n"
  141. " --disable-threads \\\n"
  142. " --disable-libatomic \\\n"
  143. " --disable-libgomp \\\n"
  144. " --disable-libquadmath \\\n"
  145. " --disable-libssp \\\n"
  146. " --disable-libvtv \\\n"
  147. " --disable-libstdcxx \\\n"
  148. " --enable-languages=c,c++</userinput>"
  149. msgstr ""
  150. #. type: Content of: <sect1><sect2><variablelist><title>
  151. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:104
  152. msgid "The meaning of the configure options:"
  153. msgstr ""
  154. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  155. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:107
  156. msgid "<parameter>--with-glibc-version=2.11</parameter>"
  157. msgstr ""
  158. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  159. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:109
  160. msgid ""
  161. "This option ensures the package will be compatible with the host's version "
  162. "of glibc. It is set to the minimum glibc requirement specified in the <xref "
  163. "linkend=\"ch-partitioning-hostreqs\"/>."
  164. msgstr ""
  165. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  166. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:116
  167. msgid "<parameter>--with-newlib</parameter>"
  168. msgstr ""
  169. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  170. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:118
  171. msgid ""
  172. "Since a working C library is not yet available, this ensures that the "
  173. "inhibit_libc constant is defined when building libgcc. This prevents the "
  174. "compiling of any code that requires libc support."
  175. msgstr ""
  176. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  177. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:125
  178. msgid "<parameter>--without-headers</parameter>"
  179. msgstr ""
  180. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  181. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:127
  182. msgid ""
  183. "When creating a complete cross-compiler, GCC requires standard headers "
  184. "compatible with the target system. For our purposes these headers will not "
  185. "be needed. This switch prevents GCC from looking for them."
  186. msgstr ""
  187. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  188. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:135
  189. msgid "<parameter>--enable-initfini-array</parameter>"
  190. msgstr ""
  191. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  192. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:137
  193. msgid ""
  194. "This switch forces the use of some internal data structures that are needed "
  195. "but cannot be detected when building a cross compiler."
  196. msgstr ""
  197. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  198. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:144
  199. msgid "<parameter>--disable-shared</parameter>"
  200. msgstr ""
  201. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  202. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:146
  203. msgid ""
  204. "This switch forces GCC to link its internal libraries statically. We need "
  205. "this because the shared libraries require glibc, which is not yet installed "
  206. "on the target system."
  207. msgstr ""
  208. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  209. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:153
  210. msgid "<parameter>--disable-multilib</parameter>"
  211. msgstr ""
  212. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  213. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:155
  214. msgid ""
  215. "On x86_64, LFS does not support a multilib configuration. This switch is "
  216. "harmless for x86."
  217. msgstr ""
  218. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  219. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:161
  220. msgid ""
  221. "<parameter>--disable-decimal-float, --disable-threads, --disable-libatomic, "
  222. "--disable-libgomp, --disable-libquadmath, --disable-libssp, "
  223. "--disable-libvtv, --disable-libstdcxx</parameter>"
  224. msgstr ""
  225. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  226. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:166
  227. msgid ""
  228. "These switches disable support for the decimal floating point extension, "
  229. "threading, libatomic, libgomp, libquadmath, libssp, libvtv, and the C++ "
  230. "standard library respectively. These features will fail to compile when "
  231. "building a cross-compiler and are not necessary for the task of "
  232. "cross-compiling the temporary libc."
  233. msgstr ""
  234. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  235. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:175
  236. msgid "<parameter>--enable-languages=c,c++</parameter>"
  237. msgstr ""
  238. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  239. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:177
  240. msgid ""
  241. "This option ensures that only the C and C++ compilers are built. These are "
  242. "the only languages needed now."
  243. msgstr ""
  244. #. type: Content of: <sect1><sect2><para>
  245. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:184
  246. msgid "Compile GCC by running:"
  247. msgstr ""
  248. #. type: Content of: <sect1><sect2><screen>
  249. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:186
  250. #, no-wrap
  251. msgid "<userinput remap=\"make\">make</userinput>"
  252. msgstr ""
  253. #. type: Content of: <sect1><sect2><para>
  254. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:188
  255. msgid "Install the package:"
  256. msgstr ""
  257. #. type: Content of: <sect1><sect2><screen>
  258. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:190
  259. #, no-wrap
  260. msgid "<userinput remap=\"install\">make install</userinput>"
  261. msgstr ""
  262. #. type: Content of: <sect1><sect2><para>
  263. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:192
  264. msgid ""
  265. "This build of GCC has installed a couple of internal system headers. "
  266. "Normally one of them, <filename>limits.h</filename>, would in turn include "
  267. "the corresponding system <filename>limits.h</filename> header, in this case, "
  268. "<filename>$LFS/usr/include/limits.h</filename>. However, at the time of this "
  269. "build of GCC <filename>$LFS/usr/include/limits.h</filename> does not exist, "
  270. "so the internal header that has just been installed is a partial, "
  271. "self-contained file and does not include the extended features of the system "
  272. "header. This is adequate for building glibc, but the full internal header "
  273. "will be needed later. Create a full version of the internal header using a "
  274. "command that is identical to what the GCC build system does in normal "
  275. "circumstances:"
  276. msgstr ""
  277. #. type: Content of: <sect1><sect2><screen>
  278. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:204
  279. #, no-wrap
  280. msgid ""
  281. "<userinput remap=\"install\">cd ..\n"
  282. "cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \\\n"
  283. " `dirname $($LFS_TGT-gcc "
  284. "-print-libgcc-file-name)`/install-tools/include/limits.h</userinput>"
  285. msgstr ""
  286. #. type: Content of: <sect1><sect2><para>
  287. #: /home/xry111/svn-repos/LFS-BOOK/chapter05/gcc-pass1.xml:212
  288. msgid ""
  289. "Details on this package are located in <xref linkend=\"contents-gcc\" "
  290. "role=\".\"/>"
  291. msgstr ""