Welcome to MacForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Distributed builds under XCode

 
   Macintosh computer (Home) -> Tools RSS
Next:  debugging c++ under XCode 2.2  
Author Message
scott

External


Since: Feb 08, 2007
Posts: 7



(Msg. 1) Posted: Wed Jan 17, 2007 6:42 am
Post subject: Distributed builds under XCode
Archived from groups: comp>sys>mac>programmer>tools (more info?)

Hi,

I am running a distributed build under XCode 2.2

The build host is a PPC Mac Mini running OS10.4.8, the build client is
a i386 quad-core Mac Pro, running OS10.4.8. Both are using fast
ethernet connections on a quiet network.

The Mac Mini takes the same amount of time to do a build (16 minutes),
despite having the Mac Pro assigned in its distributed build settings,
and the Mac Pro making itself available for distributed builds.

Switching on verbose logging, the Mac Mini reports all source files
compiled on localhost.

How can I query the Mac Pro to see what, if any, requests for aid it's
receiving... ?

-scott

 >> Stay informed about: Distributed builds under XCode 
Back to top
Login to vote
vze35xda

External


Since: Jan 08, 2005
Posts: 85



(Msg. 2) Posted: Wed Jan 17, 2007 10:49 am
Post subject: Re: Distributed builds under XCode [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In the preferences under Distributed builds see if the other machine
appears. You have to run XCode (it must be the SAME version) and set
it to share it's resources, this will be in the same Distributed Builds
on the OTHER machine. When you do that it will appear as a resource in
the compiling machine's window. Also it will be apparent when this
works since you will see multiple modules compiling at once. With a
12" PowerBook 1GHz G4 and a Dual G4 533 shared this way I see 5 or 6
modules compiled at a time.

You probably will have to update your XCode to 2.4 to match the
other machine and there might be issues since it's an Intel machine and
your other is a PPC. I don't have any Intel's to test against so I
don't even know if it works. But if you set the machines up to share
resources you will see them but marked in RED as incompatible. If you
don't see the other machine then look into network problems. (Easy
check, can you see the other machine's iTunes library ?, this will
check Boujour connectivity which you need to make this work.)

---jim

scott wrote:
> Hi,
>
> I am running a distributed build under XCode 2.2
>
> The build host is a PPC Mac Mini running OS10.4.8, the build client is
> a i386 quad-core Mac Pro, running OS10.4.8. Both are using fast
> ethernet connections on a quiet network.
>
> The Mac Mini takes the same amount of time to do a build (16 minutes),
> despite having the Mac Pro assigned in its distributed build settings,
> and the Mac Pro making itself available for distributed builds.
>
> Switching on verbose logging, the Mac Mini reports all source files
> compiled on localhost.
>
> How can I query the Mac Pro to see what, if any, requests for aid it's
> receiving... ?
>
> -scott

 >> Stay informed about: Distributed builds under XCode 
Back to top
Login to vote
Chris Hanson

External


Since: Apr 30, 2004
Posts: 61



(Msg. 3) Posted: Thu Jan 18, 2007 12:58 am
Post subject: Re: Distributed builds under XCode [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2007-01-17 06:42:39 -0800, "scott" said:

> The build host is a PPC Mac Mini running OS10.4.8, the build client is
> a i386 quad-core Mac Pro, running OS10.4.8. Both are using fast
> ethernet connections on a quiet network.
>
> The Mac Mini takes the same amount of time to do a build (16 minutes),
> despite having the Mac Pro assigned in its distributed build settings,
> and the Mac Pro making itself available for distributed builds.

Xcode's distcc-based distributed build system cannot distribute builds
across architectures. In other words, you can't distributed from a
PowerPC-baesd Mac to an Intel-based Mac or vice versa. My
understanding is that GCC's precompiled prefix format isn't
binary-compatible between the two architectures.

-- Chris
 >> Stay informed about: Distributed builds under XCode 
Back to top
Login to vote
scott

External


Since: Feb 08, 2007
Posts: 7



(Msg. 4) Posted: Thu Jan 18, 2007 1:23 am
Post subject: Re: Distributed builds under XCode [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Chris Hanson wrote:
> On 2007-01-17 06:42:39 -0800, "scott" said:
>
> > The build host is a PPC Mac Mini running OS10.4.8, the build client is
> > a i386 quad-core Mac Pro, running OS10.4.8. Both are using fast
> > ethernet connections on a quiet network.
> >
> > The Mac Mini takes the same amount of time to do a build (16 minutes),
> > despite having the Mac Pro assigned in its distributed build settings,
> > and the Mac Pro making itself available for distributed builds.
>
> Xcode's distcc-based distributed build system cannot distribute builds
> across architectures. In other words, you can't distributed from a
> PowerPC-baesd Mac to an Intel-based Mac or vice versa. My
> understanding is that GCC's precompiled prefix format isn't
> binary-compatible between the two architectures.
>
> -- Chris

Thanks for the help. It seems it's the architecture that's the problem,
because my Mac Book and Mac Pro are happily distributing builds to one
another, as they're both i386.
 >> Stay informed about: Distributed builds under XCode 
Back to top
Login to vote
Ben Artin

External


Since: Jun 20, 2005
Posts: 54



(Msg. 5) Posted: Thu Jan 18, 2007 2:25 pm
Post subject: Re: Distributed builds under XCode [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
"scott" wrote:

> The build host is a PPC Mac Mini running OS10.4.8, the build client is
> a i386 quad-core Mac Pro, running OS10.4.8. Both are using fast
> ethernet connections on a quiet network.

You can't distribute builds between machines of different architectures. Your
entire build farm has to be PPC or Intel (but it can compile both PPC and Intel
versions of your code).

Ben

--
If this message helped you, consider buying an item
from my wish list: <http://artins.org/ben/wishlist>

I changed my name: <http://periodic-kingdom.org/People/NameChange.php>
 >> Stay informed about: Distributed builds under XCode 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> Tools All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]