public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] distcc
@ 2007-01-05 13:47 sean
  2007-01-05 13:54 ` sean
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: sean @ 2007-01-05 13:47 UTC (permalink / raw
  To: gentoo-user

I am reading over the info on distcc so that I might be able to setup an 
older P4 1.3 Ghz system to have help compiling from my dual Opteron 
(amd64 mode).

I only want the Opteron to help the P4, not the other way around, the 
Opteron does not need the help.

Is that configurable as such?

			Thanks
			Sean
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] distcc
  2007-01-05 13:47 [gentoo-user] distcc sean
@ 2007-01-05 13:54 ` sean
  2007-01-05 13:54 ` Nelson, David (ED, PAR&D)
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 14+ messages in thread
From: sean @ 2007-01-05 13:54 UTC (permalink / raw
  To: gentoo-user

sean wrote:
> I am reading over the info on distcc so that I might be able to setup an 
> older P4 1.3 Ghz system to have help compiling from my dual Opteron 
> (amd64 mode).
> 
> I only want the Opteron to help the P4, not the other way around, the 
> Opteron does not need the help.
> 
> Is that configurable as such?
> 

Reading further, it appears that if I leave out the P4 from the host 
list on the Opteron, the Opteron will not use the P4. Does that sound 
correct to anyone who has tried this setup?

Also, I am trying to decide if the P4 would benefit from my leaving it 
out of its own compiling?
Any comments again from those who may have tried this?

			Thanks
			Sean
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: [gentoo-user] distcc
  2007-01-05 13:47 [gentoo-user] distcc sean
  2007-01-05 13:54 ` sean
@ 2007-01-05 13:54 ` Nelson, David (ED, PAR&D)
  2007-01-05 14:22 ` Uwe Thiem
  2007-01-06 14:27 ` Pawel Kraszewski
  3 siblings, 0 replies; 14+ messages in thread
From: Nelson, David (ED, PAR&D) @ 2007-01-05 13:54 UTC (permalink / raw
  To: gentoo-user

> -----Original Message-----
> From: sean [mailto:tech.junk@verizon.net]
> Sent: 05 January 2007 13:48
> To: gentoo-user@lists.gentoo.org
> Subject: [gentoo-user] distcc
> 
> 
> I am reading over the info on distcc so that I might be able 
> to setup an 
> older P4 1.3 Ghz system to have help compiling from my dual Opteron 
> (amd64 mode).
> 
> I only want the Opteron to help the P4, not the other way around, the 
> Opteron does not need the help.
> 
> Is that configurable as such?
> 
> 			Thanks
> 			Sean

Yes, as far as I am aware. If memory serves it is a client/server type setup - you tell the P3 that it can use the Opteron but do not need to do it vice versa.

David

Note: These views are my own, advice is provided with no guarantee of success. I do not represent anyone else in any emails I send to this list.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] distcc
  2007-01-05 13:47 [gentoo-user] distcc sean
  2007-01-05 13:54 ` sean
  2007-01-05 13:54 ` Nelson, David (ED, PAR&D)
@ 2007-01-05 14:22 ` Uwe Thiem
  2007-01-05 16:47   ` sean
  2007-01-06 14:27 ` Pawel Kraszewski
  3 siblings, 1 reply; 14+ messages in thread
From: Uwe Thiem @ 2007-01-05 14:22 UTC (permalink / raw
  To: gentoo-user

On 05 January 2007 15:47, sean wrote:
> I am reading over the info on distcc so that I might be able to setup an
> older P4 1.3 Ghz system to have help compiling from my dual Opteron
> (amd64 mode).
>
> I only want the Opteron to help the P4, not the other way around, the
> Opteron does not need the help.
>
> Is that configurable as such?

Yes, but you need to set up a cross-compiler on the Opteron. Or can the 64bit 
compiler generate 32bit code? Not too sure here.

Uwe

-- 
A fast and easy generator of fractals for KDE:
http://www.SysEx.com.na/iwy-1.0.tar.bz2
Proof of concept of a TSP solver for KDE:
http://www.SysEx.com.na/epat-0.1.tar.bz2
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] distcc
  2007-01-05 14:22 ` Uwe Thiem
@ 2007-01-05 16:47   ` sean
  2007-01-05 17:45     ` John Blinka
  2007-01-05 18:36     ` Uwe Thiem
  0 siblings, 2 replies; 14+ messages in thread
From: sean @ 2007-01-05 16:47 UTC (permalink / raw
  To: gentoo-user

Uwe Thiem wrote:
> On 05 January 2007 15:47, sean wrote:
>> I am reading over the info on distcc so that I might be able to setup an
>> older P4 1.3 Ghz system to have help compiling from my dual Opteron
>> (amd64 mode).
>>
>> I only want the Opteron to help the P4, not the other way around, the
>> Opteron does not need the help.
>>
>> Is that configurable as such?
> 
> Yes, but you need to set up a cross-compiler on the Opteron. Or can the 64bit 
> compiler generate 32bit code? Not too sure here.
> 
> Uwe
> 

I just read a short time ago about the cross compiler.
 From my reading it only needs to be installed on the machine starting 
the process and using resources of another.

Since I want the P4 to use the Opteron then the P4 needs the cross 
compiler in place. I do not intend the Opteron to use the P4 for help, 
so it is not needed and I just tell distcc to use the local machine.

I have the Opteron system setup, still need to setup the P4.


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] distcc
  2007-01-05 16:47   ` sean
@ 2007-01-05 17:45     ` John Blinka
  2007-01-05 18:00       ` sean
  2007-01-05 18:36     ` Uwe Thiem
  1 sibling, 1 reply; 14+ messages in thread
From: John Blinka @ 2007-01-05 17:45 UTC (permalink / raw
  To: gentoo-user

sean wrote:
> Uwe Thiem wrote:
>> On 05 January 2007 15:47, sean wrote:
>>> I am reading over the info on distcc so that I might be able to 
>>> setup an
>>> older P4 1.3 Ghz system to have help compiling from my dual Opteron
>>> (amd64 mode).
>>>
>>> I only want the Opteron to help the P4, not the other way around, the
>>> Opteron does not need the help.
>>>
>>> Is that configurable as such?

I do something similar with a group of 2+ ghz p4s doing all the 
compiling for
a 150 mhz p3.

>>
>> Yes, but you need to set up a cross-compiler on the Opteron. Or can 
>> the 64bit compiler generate 32bit code? Not too sure here.
>>
>> Uwe
>>
>
> I just read a short time ago about the cross compiler.
> From my reading it only needs to be installed on the machine starting 
> the process and using resources of another.
>
> Since I want the P4 to use the Opteron then the P4 needs the cross 
> compiler in place.

I think this is backwards.  The cross compiler should be on the Opteron 
box, since distcc is asking
the Opteron box to produce 32 bit code for the P4 box.

John Blinka
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] distcc
  2007-01-05 17:45     ` John Blinka
@ 2007-01-05 18:00       ` sean
  2007-01-05 21:12         ` John Blinka
  0 siblings, 1 reply; 14+ messages in thread
From: sean @ 2007-01-05 18:00 UTC (permalink / raw
  To: gentoo-user

John Blinka wrote:

> 
> I think this is backwards.  The cross compiler should be on the Opteron 
> box, since distcc is asking
> the Opteron box to produce 32 bit code for the P4 box.
> 

Check this out. Look at the line highlighted in green.

http://www.gentoo.org/doc/en/cross-compiling-distcc.xml
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] distcc
  2007-01-05 16:47   ` sean
  2007-01-05 17:45     ` John Blinka
@ 2007-01-05 18:36     ` Uwe Thiem
  2007-01-06 18:57       ` Randy Barlow
  1 sibling, 1 reply; 14+ messages in thread
From: Uwe Thiem @ 2007-01-05 18:36 UTC (permalink / raw
  To: gentoo-user

On 05 January 2007 18:47, sean wrote:
> Uwe Thiem wrote:
> > On 05 January 2007 15:47, sean wrote:
> >> I am reading over the info on distcc so that I might be able to setup an
> >> older P4 1.3 Ghz system to have help compiling from my dual Opteron
> >> (amd64 mode).
> >>
> >> I only want the Opteron to help the P4, not the other way around, the
> >> Opteron does not need the help.
> >>
> >> Is that configurable as such?
> >
> > Yes, but you need to set up a cross-compiler on the Opteron. Or can the
> > 64bit compiler generate 32bit code? Not too sure here.
> >
> > Uwe
>
> I just read a short time ago about the cross compiler.
>  From my reading it only needs to be installed on the machine starting
> the process and using resources of another.
>
> Since I want the P4 to use the Opteron then the P4 needs the cross
> compiler in place. I do not intend the Opteron to use the P4 for help,
> so it is not needed and I just tell distcc to use the local machine.

Nope, that's the other way round. Since your Opetron is supposed to compile 
stuff for a 32bit P4, it needs the cross-compiler - if it needs it. Still not 
sure whether the 64bit gcc can generate 32bit code.

Uwe

-- 
A fast and easy generator of fractals for KDE:
http://www.SysEx.com.na/iwy-1.0.tar.bz2
Proof of concept of a TSP solver for KDE:
http://www.SysEx.com.na/epat-0.1.tar.bz2
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] distcc
  2007-01-05 18:00       ` sean
@ 2007-01-05 21:12         ` John Blinka
  2007-01-07 20:47           ` sean
  0 siblings, 1 reply; 14+ messages in thread
From: John Blinka @ 2007-01-05 21:12 UTC (permalink / raw
  To: gentoo-user

sean wrote:
> John Blinka wrote:
>
>>
>> I think this is backwards.  The cross compiler should be on the 
>> Opteron box, since distcc is asking
>> the Opteron box to produce 32 bit code for the P4 box.
>>
>
> Check this out. Look at the line highlighted in green.
>
> http://www.gentoo.org/doc/en/cross-compiling-distcc.xml
Yep, that's exactly the document I used to get cross-compiling working 
with distcc
on my machines.  See the paragraph near the top under the heading "Emerge
the needed utilities".   The first sentence of this paragraph refers to 
machines "that
will be involved in the compiling process".   One might argue that both 
your P4 and Opteron
machines are "involved" since the P4 calls the compiler and the Opteron 
does the compiling.
But the sentence really refers to machines that will actually *do* the 
compiling, i.e., your
Opteron.  So you should do 2 things on the Opteron box: "emerge 
crossdev" and
"crossdev -t arg" where I'm guessing "arg" is i686-pc-linux-gnu for your 
P4 box.
The green highlighted stuff are things you do on the P4 box.  The 
explanation for
doing the green highlighted stuff is found at the end of the page under 
the heading
"Why this works".

John Blinka
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] distcc
  2007-01-05 13:47 [gentoo-user] distcc sean
                   ` (2 preceding siblings ...)
  2007-01-05 14:22 ` Uwe Thiem
@ 2007-01-06 14:27 ` Pawel Kraszewski
  2007-01-07  2:45   ` sean
  3 siblings, 1 reply; 14+ messages in thread
From: Pawel Kraszewski @ 2007-01-06 14:27 UTC (permalink / raw
  To: gentoo-user

Dnia piątek, 5 stycznia 2007 14:47, sean napisał:

> I am reading over the info on distcc so that I might be able to setup an
> older P4 1.3 Ghz system to have help compiling from my dual Opteron
> (amd64 mode).
>
> I only want the Opteron to help the P4, not the other way around, the
> Opteron does not need the help.
>
> Is that configurable as such?
>
> 			Thanks
> 			Sean

Well, http://wiki.kraszewscy.net/Cross_DistCC shows how to do it (in Polish, 
sorry).

In short:

---8X---[ setup for COMPILER machine (AMD64) ]-------------------

1. make directory /opt/cross32/bin
2. make there a file "i686-pc-linux-gnu-wrapper" containing

  #!/bin/bash
  exec /usr/bin/x86_64-pc-linux-gnu-g${0:$[-2]} -m32 "$@"

3. make it executable
4. make soft links in that directory

 ln -s i686-pc-linux-gnu-wrapper gcc
 ln -s i686-pc-linux-gnu-wrapper g++
 ln -s i686-pc-linux-gnu-wrapper c++
 ln -s i686-pc-linux-gnu-wrapper cc
 ln -s i686-pc-linux-gnu-wrapper i686-pc-linux-gnu-gcc
 ln -s i686-pc-linux-gnu-wrapper i686-pc-linux-gnu-g++
 ln -s i686-pc-linux-gnu-wrapper i686-pc-linux-gnu-c++
 ln -s i686-pc-linux-gnu-wrapper i686-pc-linux-gnu-cc

5. copy "/etc/init.d/distccd" to "/etc/init.d/distccd32"

6. fix "/etc/init.d/distccd32" to have

       TMPDIR="${TMPDIR}" \
       PATH="/opt/cross32/bin" \
       /sbin/start-stop-daemon –start –quiet –startas ${DISTCCD_EXEC} \

7. copy "/etc/conf.d/distccd" to "/etc/conf.d/distccd32"

8. fix "/etc/conf.d/distccd" to have

	DISTCCD_OPTS="${DISTCCD_OPTS} --port 3664"

---8X---[ end of setup for COMPILER machine (AMD64) ]-------------------

Now you have two distccd daemons: 
* one at port 3632 for 32-bit distcompiling
* one at port 3664 for 64-bit distcompiling

At this point your Opterons will handle remote 32-bit compiling - you don't 
need to make any changes on P4 machine other than activating regular distcc.

-- 
 Pawel Kraszewski
 www.kraszewscy.net

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] distcc
  2007-01-05 18:36     ` Uwe Thiem
@ 2007-01-06 18:57       ` Randy Barlow
  0 siblings, 0 replies; 14+ messages in thread
From: Randy Barlow @ 2007-01-06 18:57 UTC (permalink / raw
  To: gentoo-user


On Jan 5, 2007, at 1:36 PM, Uwe Thiem wrote:
>>> Yes, but you need to set up a cross-compiler on the Opteron. Or can 
>>> the
>>> 64bit compiler generate 32bit code? Not too sure here.

It will produce 32 bit code if you pass it the -m32 flag...

R

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] distcc
  2007-01-06 14:27 ` Pawel Kraszewski
@ 2007-01-07  2:45   ` sean
  2007-01-07 18:34     ` Pawel Kraszewski
  0 siblings, 1 reply; 14+ messages in thread
From: sean @ 2007-01-07  2:45 UTC (permalink / raw
  To: gentoo-user

Pawel Kraszewski wrote:
> Dnia piątek, 5 stycznia 2007 14:47, sean napisał:
> 
>> I am reading over the info on distcc so that I might be able to setup an
>> older P4 1.3 Ghz system to have help compiling from my dual Opteron
>> (amd64 mode).
>>
>> I only want the Opteron to help the P4, not the other way around, the
>> Opteron does not need the help.
>>
>> Is that configurable as such?
>>
>> 			Thanks
>> 			Sean
> 
> Well, http://wiki.kraszewscy.net/Cross_DistCC shows how to do it (in Polish, 
> sorry).
> 
> In short:
> 
> ---8X---[ setup for COMPILER machine (AMD64) ]-------------------
> 
> 1. make directory /opt/cross32/bin
> 2. make there a file "i686-pc-linux-gnu-wrapper" containing
> 
>   #!/bin/bash
>   exec /usr/bin/x86_64-pc-linux-gnu-g${0:$[-2]} -m32 "$@"
> 
> 3. make it executable
> 4. make soft links in that directory
> 
>  ln -s i686-pc-linux-gnu-wrapper gcc
>  ln -s i686-pc-linux-gnu-wrapper g++
>  ln -s i686-pc-linux-gnu-wrapper c++
>  ln -s i686-pc-linux-gnu-wrapper cc
>  ln -s i686-pc-linux-gnu-wrapper i686-pc-linux-gnu-gcc
>  ln -s i686-pc-linux-gnu-wrapper i686-pc-linux-gnu-g++
>  ln -s i686-pc-linux-gnu-wrapper i686-pc-linux-gnu-c++
>  ln -s i686-pc-linux-gnu-wrapper i686-pc-linux-gnu-cc
> 
> 5. copy "/etc/init.d/distccd" to "/etc/init.d/distccd32"
> 
> 6. fix "/etc/init.d/distccd32" to have
> 
>        TMPDIR="${TMPDIR}" \
>        PATH="/opt/cross32/bin" \
>        /sbin/start-stop-daemon –start –quiet –startas ${DISTCCD_EXEC} \
> 
> 7. copy "/etc/conf.d/distccd" to "/etc/conf.d/distccd32"
> 
> 8. fix "/etc/conf.d/distccd" to have
> 
> 	DISTCCD_OPTS="${DISTCCD_OPTS} --port 3664"
> 
> ---8X---[ end of setup for COMPILER machine (AMD64) ]-------------------
> 
> Now you have two distccd daemons: 
> * one at port 3632 for 32-bit distcompiling
> * one at port 3664 for 64-bit distcompiling
> 
> At this point your Opterons will handle remote 32-bit compiling - you don't 
> need to make any changes on P4 machine other than activating regular distcc.
> 

Thanks Pawel,

	Your steps are obviously a bit different then those listed here.
http://www.gentoo.org/doc/en/cross-compiling-distcc.xml

So you are stating just emerge crossdev, the run crossdev -t
and from the point where the web page states "Here is what you want to 
do:" (1.2) follow the instructions you listed here, rather then the web 
page?

			Sean
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] distcc
  2007-01-07  2:45   ` sean
@ 2007-01-07 18:34     ` Pawel Kraszewski
  0 siblings, 0 replies; 14+ messages in thread
From: Pawel Kraszewski @ 2007-01-07 18:34 UTC (permalink / raw
  To: gentoo-user

Dnia niedziela, 7 stycznia 2007 03:45, sean napisał:

> 	Your steps are obviously a bit different then those listed here.
> http://www.gentoo.org/doc/en/cross-compiling-distcc.xml
>
> So you are stating just emerge crossdev, the run crossdev -t
> and from the point where the web page states "Here is what you want to
> do:" (1.2) follow the instructions you listed here, rather then the web
> page?

I don't have crossdev at all... AMD64 gcc can simply compile code for IA32 
architecture (forced by -m32 parameter in wrapper).

My note is a total replacement of 
http://www.gentoo.org/doc/en/cross-compiling-distcc.xml for 
64-compiling-for-32 case.


-- 
 Pawel Kraszewski
 www.kraszewscy.net

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] distcc
  2007-01-05 21:12         ` John Blinka
@ 2007-01-07 20:47           ` sean
  0 siblings, 0 replies; 14+ messages in thread
From: sean @ 2007-01-07 20:47 UTC (permalink / raw
  To: gentoo-user

John Blinka wrote:
> sean wrote:
>> John Blinka wrote:
>>
>>>
>>> I think this is backwards.  The cross compiler should be on the 
>>> Opteron box, since distcc is asking
>>> the Opteron box to produce 32 bit code for the P4 box.
>>>
>>
>> Check this out. Look at the line highlighted in green.
>>
>> http://www.gentoo.org/doc/en/cross-compiling-distcc.xml
> Yep, that's exactly the document I used to get cross-compiling working 
> with distcc
> on my machines.  See the paragraph near the top under the heading "Emerge
> the needed utilities".   The first sentence of this paragraph refers to 
> machines "that
> will be involved in the compiling process".   One might argue that both 
> your P4 and Opteron
> machines are "involved" since the P4 calls the compiler and the Opteron 
> does the compiling.
> But the sentence really refers to machines that will actually *do* the 
> compiling, i.e., your
> Opteron.  So you should do 2 things on the Opteron box: "emerge 
> crossdev" and
> "crossdev -t arg" where I'm guessing "arg" is i686-pc-linux-gnu for your 
> P4 box.
> The green highlighted stuff are things you do on the P4 box.  The 
> explanation for
> doing the green highlighted stuff is found at the end of the page under 
> the heading
> "Why this works".
> 
> John Blinka

Thanks John,

	Perhaps it is just me, but maybe the docs on this topic could use just 
a bit more sharpening to clear things.

			Sean
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-01-07 20:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-05 13:47 [gentoo-user] distcc sean
2007-01-05 13:54 ` sean
2007-01-05 13:54 ` Nelson, David (ED, PAR&D)
2007-01-05 14:22 ` Uwe Thiem
2007-01-05 16:47   ` sean
2007-01-05 17:45     ` John Blinka
2007-01-05 18:00       ` sean
2007-01-05 21:12         ` John Blinka
2007-01-07 20:47           ` sean
2007-01-05 18:36     ` Uwe Thiem
2007-01-06 18:57       ` Randy Barlow
2007-01-06 14:27 ` Pawel Kraszewski
2007-01-07  2:45   ` sean
2007-01-07 18:34     ` Pawel Kraszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox