# Azamat H. Hackimov , 2009. msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: 2010-10-21 23:56+0600\n" "PO-Revision-Date: 2009-10-18 05:11+0600\n" "Last-Translator: Azamat H. Hackimov \n" "Language-Team: Russian \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Lokalize 1.0\n" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(guide:link):5 msgid "/doc/en/cross-compiling-distcc.xml" msgstr "/doc/ru/cross-compiling-distcc.xml" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(title):6 msgid "DistCC Cross-compiling Guide" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(author:title):8 msgid "Author" msgstr "автор" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(mail:link):9 msgid "agaffney@gentoo.org" msgstr "agaffney@gentoo.org" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(mail):9 msgid "Andrew Gaffney" msgstr "Andrew Gaffney" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(author:title):11 msgid "Editor" msgstr "редактор" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(mail:link):12 msgid "nightmorph@gentoo.org" msgstr "nightmorph@gentoo.org" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(mail):12 msgid "Joshua Saddler" msgstr "Joshua Saddler" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(abstract):15 msgid "" "This guide shows you how to set up distcc for cross-compiling across " "different processor architectures." msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(version):24 msgid "1.3" msgstr "1.3" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(date):25 msgid "2006-02-17" msgstr "2006-02-17" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(title):28 msgid "Cross-compiling with distcc" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(title):30 msgid "Introduction" msgstr "Введение" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(p):33 msgid "" "distcc is a tool that lets you share the burden of software compiling " "across several networked computers. As long as the networked boxes are all " "using the same toolchain built for the same processor architecture, no " "special distcc setup is required. But what do you do if you need to " "compile for a different architecture using differing computers? This guide " "will show you how to configure distcc to compile for different " "architectures." msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(title):45 msgid "Emerge the needed utilities" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(p):48 msgid "" "First, you will need to emerge crossdev on all the machines that will " "be involved in the compiling process. crossdev is a tool that makes " "building cross-architecture toolchains easy. It was originally written by " "Joshua Kinard and was re-written from " "the ground up by Mike Frysinger. Its " "usage is straightforward: crossdev -t sparc will build a full cross-" "toolchain targetting the Sparc architecture. This includes binutils, gcc, " "glibc, and linux-headers. If you need more help, try running crossdev --" "help. Obviously, you will need to emerge the proper cross-toolchain on " "all the helper boxes." msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(p):61 msgid "" "Next, you will need to emerge distcc on all the machines that will be " "involved in the process. This includes the box that will run emerge and the " "boxes with the cross-compilers. Please see the Gentoo Distcc Documentation for more information on setting up and " "using distcc." msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(title):72 msgid "Arch-specific notes" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(p):75 msgid "" "If you are cross-compiling between different subarchitectures for Intel x86 " "(e.g. i586 and i686), you must still build a full cross-toolchain for the " "desired CHOST, or else the compilation will fail. This is because i586 and " "i686 are actually different CHOSTs, despite the fact that they are both " "considered \"x86.\" Please keep this in mind when you build your cross-" "toolchains. For example, if the target box is i586, this means that you must " "build i586 cross-toolchains on your i686 helper boxes." msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(title):88 msgid "Configuring distcc to cross-compile correctly" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(p):91 msgid "" "In the default distcc setup, cross-compiling will not work properly. " "The problem is that many builds just call gcc instead of the full " "compiler name (e.g. sparc-unknown-linux-gnu-gcc). When this compile " "gets distributed to a distcc helper box, the native compiler gets called " "instead of your shiny new cross-compiler." msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(p):99 msgid "" "Fortunately, there is a workaround for this little problem. All it takes is " "a wrapper script and a few symlinks on the box that will be running " "emerge. I'll use my Sparc box as an example. Wherever you see " "sparc-unknown-linux-gnu below, you will want to insert your own CHOST " "(x86_64-pc-linux-gnu for an AMD64 box, for example). When you first " "emerge distcc, the /usr/lib/distcc/bin directory looks like " "this:" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(note):108 msgid "" "The following instructions are to be performed only on the box running the " "emerge. Do not perform these steps on the helper boxes." msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(pre:caption):113 msgid "Available compilers" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(pre):113 #, no-wrap msgid "" "\n" "# cd /usr/lib/distcc/bin\n" "# ls -l\n" "total 0\n" "lrwxrwxrwx 1 root root 15 Dec 23 20:13 c++ -> /usr/bin/distcc\n" "lrwxrwxrwx 1 root root 15 Dec 23 20:13 cc -> /usr/bin/distcc\n" "lrwxrwxrwx 1 root root 15 Dec 23 20:13 g++ -> /usr/bin/distcc\n" "lrwxrwxrwx 1 root root 15 Dec 23 20:13 gcc -> /usr/bin/distcc\n" "lrwxrwxrwx 1 root root 15 Dec 23 20:13 sparc-unknown-linux-gnu-c++ -> /usr/bin/distcc\n" "lrwxrwxrwx 1 root root 15 Dec 23 20:13 sparc-unknown-linux-gnu-g++ -> /usr/bin/distcc\n" "lrwxrwxrwx 1 root root 15 Dec 23 20:13 sparc-unknown-linux-gnu-gcc -> /usr/bin/distcc\n" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(p):126 msgid "Here is what you want to do:" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(pre:caption):130 msgid "Modifying distcc" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(pre):130 #, no-wrap msgid "" "\n" "# rm c++ g++ gcc cc\n" msgstr "" "\n" "# rm c++ g++ gcc cc\n" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(p):134 msgid "" "Next, we'll create the new script on this box. Fire up your favorite editor " "and create a file with the following text in it, then save it as sparc-" "unknown-linux-gnu-wrapper. Remember to change the CHOST (in this " "case, sparc-unknown-linux-gnu) to the actual CHOST of the box that " "will be running the emerge." msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(pre:caption):142 msgid "The new wrapper script" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(pre):142 #, no-wrap msgid "" "\n" "#!/bin/bash\n" "exec /usr/lib/distcc/bin/sparc-unknown-linux-gnu-g${0:$[-2]} \"$@\"\n" msgstr "" "\n" "#!/bin/bash\n" "exec /usr/lib/distcc/bin/sparc-unknown-linux-gnu-g${0:$[-2]} \"$@\"\n" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(p):147 msgid "Next, we'll make the script executable and create the proper symlinks:" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(pre:caption):151 msgid "Creating the symlinks" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(pre):151 #, no-wrap msgid "" "\n" "# chmod a+x sparc-unknown-linux-gnu-wrapper\n" "# ln -s sparc-unknown-linux-gnu-wrapper cc\n" "# ln -s sparc-unknown-linux-gnu-wrapper gcc\n" "# ln -s sparc-unknown-linux-gnu-wrapper g++\n" "# ln -s sparc-unknown-linux-gnu-wrapper c++\n" msgstr "" "\n" "# chmod a+x sparc-unknown-linux-gnu-wrapper\n" "# ln -s sparc-unknown-linux-gnu-wrapper cc\n" "# ln -s sparc-unknown-linux-gnu-wrapper gcc\n" "# ln -s sparc-unknown-linux-gnu-wrapper g++\n" "# ln -s sparc-unknown-linux-gnu-wrapper c++\n" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(p):159 msgid "When you're done, /usr/lib/distcc/bin will look like this:" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(pre:caption):163 msgid "A proper set of compilers" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(pre):163 #, no-wrap msgid "" "\n" "# ls -l\n" "total 4\n" "lrwxrwxrwx 1 root root 25 Jan 18 14:20 c++ -> sparc-unknown-linux-gnu-wrapper\n" "lrwxrwxrwx 1 root root 25 Jan 18 14:20 cc -> sparc-unknown-linux-gnu-wrapper\n" "lrwxrwxrwx 1 root root 25 Jan 18 14:20 g++ -> sparc-unknown-linux-gnu-wrapper\n" "lrwxrwxrwx 1 root root 25 Jan 18 14:20 gcc -> sparc-unknown-linux-gnu-wrapper\n" "lrwxrwxrwx 1 root root 15 Nov 21 10:42 sparc-unknown-linux-gnu-c++ -> /usr/bin/distcc\n" "lrwxrwxrwx 1 root root 15 Nov 21 10:42 sparc-unknown-linux-gnu-g++ -> /usr/bin/distcc\n" "lrwxrwxrwx 1 root root 15 Jul 27 10:52 sparc-unknown-linux-gnu-gcc -> /usr/bin/distcc\n" "-rwxr-xr-x 1 root root 70 Jan 18 14:20 sparc-unknown-linux-gnu-wrapper\n" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(p):176 msgid "Congratulations; you now have a (hopefully) working cross-distcc setup." msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(title):183 msgid "How this works" msgstr "" #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(p):186 msgid "" "When distcc is called, it checks to see what it was called as (e.g. " "i686-pc-linux-gnu-gcc, sparc-unknown-linux-gnu-g++, etc.) When " "distcc then distributes the compile to a helper box, it passes along the " "name it was called as. The distcc daemon on the other helper box then looks " "for a binary with that same name. If it sees just gcc, it will look " "for gcc, which is likely to be the native compiler on the helper box, " "if it is not the same architecture as the box running emerge. When " "the full name of the compiler is sent (e.g. sparc-unknown-linux-" "gnu-gcc), there is no confusion." msgstr "" #. Place here names of translator, one per line. Format should be NAME; ROLE; E-MAIL #: ../../gentoo/xml/htdocs/doc/en//cross-compiling-distcc.xml(None):0 msgid "translator-credits" msgstr ""