Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Distributed builds in Xcode require 32-bit mode Apps
I tried in vain to enable distributed compilation in Xcode on a few Snow Leopard machines. Some searching led me to this thread.

Apparently you have to start Xcode in 32-bit mode (this is set in the Get Info window in Finder) for it to work properly.

Now it would be nice if you could use non-Macs or PPC machines as well. GCC support cross compiling so, at least in theory, it should be doable.

[crarko adds: I haven't tested this one.]
    •    
  • Currently 4.67 / 5
  You rated: 4 / 5 (3 votes cast)
 
[4,472 views]  

Distributed builds in Xcode require 32-bit mode | 4 comments | Create New Account
Click here to return to the 'Distributed builds in Xcode require 32-bit mode' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Distributed builds in Xcode require 32-bit mode
Authored by: durin42 on Oct 18, '10 05:09:49PM

Unless something has changed, you can't mix host architectures for distcc builds (which is what Xcode uses under the hood, or something similar at least) because some of GCC's precomputed data that is shared between distcc workers is actually a serialized segment of RAM that isn't byte-ordering safe.



[ Reply to This | # ]
Distributed builds in Xcode require 32-bit mode
Authored by: david-bo on Oct 19, '10 02:34:26AM

Is that a limitation in distcc? Afaik gcc can support crosscompilation (isn't that what Xcode uses when it prepares universal binaries?).

Anyway, I mostly use gcc in MacPorts, not in Xcode anyway and MacPorts lacks built in support for distcc.

---
link



[ Reply to This | # ]
Distributed builds in Xcode require 32-bit mode
Authored by: asmeurer on Oct 18, '10 09:26:41PM

Well that's lame. I wonder how things are in the XCode 4 beta. Anyone have it and want to give it a try?



[ Reply to This | # ]
Distributed builds in Xcode require 32-bit mode
Authored by: ldm on Oct 19, '10 04:58:10PM

OP is absolutely right. distcc from Xcode (or from the commandline xcodebuild) are totally unreliable if Xcode runs in 64-bit mode. It did cause me quite a bit of trouble until I found the same advice and switched Xcode to 32-bit. It has been reliable ever since. (You can toggle from the Finder inspector window).

---
--
Laurent



[ Reply to This | # ]