/[gentoo]/xml/htdocs/doc/en/distcc.xml
Gentoo

Diff of /xml/htdocs/doc/en/distcc.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.39 Revision 1.42
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/distcc.xml,v 1.39 2006/12/24 17:54:01 nightmorph Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/distcc.xml,v 1.42 2008/04/07 20:56:59 jkt Exp $ -->
4 4
5<guide link="/doc/en/distcc.xml"> 5<guide link="/doc/en/distcc.xml">
6 6
7<title>Gentoo Distcc Documentation</title> 7<title>Gentoo Distcc Documentation</title>
8 8
31 31
32<!-- The content of this document is licensed under the CC-BY-SA license --> 32<!-- The content of this document is licensed under the CC-BY-SA license -->
33<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 33<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
34<license/> 34<license/>
35 35
36<version>1.18</version> 36<version>1.21</version>
37<date>2006-12-24</date> 37<date>2008-04-07</date>
38 38
39<chapter> 39<chapter>
40<title>Introduction</title> 40<title>Introduction</title>
41<section> 41<section>
42<title>What is distcc?</title> 42<title>What is distcc?</title>
119 119
120<pre caption="Integrating Distcc and Portage"> 120<pre caption="Integrating Distcc and Portage">
121# <i>emerge distcc</i> 121# <i>emerge distcc</i>
122# <i>nano -w /etc/make.conf</i> 122# <i>nano -w /etc/make.conf</i>
123<comment>(Set N to a suitable number for your particular setup)</comment> 123<comment>(Set N to a suitable number for your particular setup)</comment>
124<comment>(A common strategy is setting N as twice the number of total CPUs + 1 124<comment>(A common strategy is setting N as twice the number of total CPUs + 1 available)</comment>
125available)</comment>
126MAKEOPTS="-jN" 125MAKEOPTS="-jN"
127<comment>(Add distcc to your FEATURES)</comment> 126<comment>(Add distcc to your FEATURES)</comment>
128FEATURES="distcc" 127FEATURES="distcc"
129</pre> 128</pre>
130 129
281<section> 280<section>
282<title>Step 2: Getting Distcc</title> 281<title>Step 2: Getting Distcc</title>
283<body> 282<body>
284 283
285<p> 284<p>
286Before the installation of distcc, a user called distcc must be added to the
287<path>/etc/passwd</path>:
288</p>
289
290<pre caption="Create user distcc">
291# <i>echo "distcc:x:240:2:distccd:/dev/null:/bin/false" &gt;&gt;/etc/passwd</i>
292</pre>
293
294<impo>
295It is important to note that adding users like this is very bad. We only do
296it here because there is no <c>useradd</c> utility (which you normally use for
297adding users) yet at this stage of installation.
298</impo>
299
300<p>
301Install distcc: 285Install distcc:
302</p> 286</p>
303 287
304<pre caption="Getting Distcc on the new box"> 288<pre caption="Getting Distcc on the new box">
305# <i>USE='-*' emerge --nodeps sys-devel/distcc</i> 289# <i>USE='-*' emerge --nodeps sys-devel/distcc</i>
380<impo> 364<impo>
381Doing this explicitly redefines some behaviour of Portage and may have some 365Doing this explicitly redefines some behaviour of Portage and may have some
382weird results in the future. Only do this if you're mixing CHOSTs. 366weird results in the future. Only do this if you're mixing CHOSTs.
383</impo> 367</impo>
384 368
369
370</body>
371</section>
372<section>
373<title>-march=native</title>
374<body>
375
376<p>
377Starting with GCC 4.3.0, the compiler supports the <c>-march=native</c> switch
378which turns on CPU autodetection and optimizations that are worth being enabled
379on the processor the GCC is running at. This is a problem with <c>distcc</c> as
380it allows mixing of code optimized for different processors (like AMD Athlon and
381Intel Pentium). <e>Don't</e> use <c>-march=native</c> or <c>-mtune=native</c> in
382your <c>CFLAGS</c> or <c>CXXFLAGS</c> when compiling with <c>distcc</c>.
383</p>
385 384
386</body> 385</body>
387</section> 386</section>
388</chapter> 387</chapter>
389 388

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.42

  ViewVC Help
Powered by ViewVC 1.1.20