Add distcc 3.2rc1 #13842

wants to merge 1 commit into from

6 participants


No description provided.


Please point this at the latest stable release, and add a devel block for the release candidate if you want.


3.1 doesn't build on Snow Leopard and higher (I am on Mountain Lion), so I packaged the RC instead. See


What about 3.1 doesn't build? MacPorts packages 3.1:

@adamv adamv was assigned Sep 4, 2012

Both 3.1 and 3.2 bomb out for me building the Python extension (against system Python)

running build_ext
building 'include_server.distcc_pump_c_extensions' extension
creating _include_server/private
creating _include_server/private/tmp
creating _include_server/private/tmp/brew-distcc-3.2rc1-YixJ
creating _include_server/private/tmp/brew-distcc-3.2rc1-YixJ/distcc-3.2rc1
creating _include_server/private/tmp/brew-distcc-3.2rc1-YixJ/distcc-3.2rc1/src
creating _include_server/private/tmp/brew-distcc-3.2rc1-YixJ/distcc-3.2rc1/lzo
creating _include_server/private/tmp/brew-distcc-3.2rc1-YixJ/distcc-3.2rc1/include_server
creating _include_server/private/tmp/brew-distcc-3.2rc1-YixJ/distcc-3.2rc1/include_server/c_extensions
/usr/bin/gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -Os -w -pipe -march=core2 -mmacosx-version-min=10.6 -MD -W -Wall -Wimplicit -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wmissing-declarations -Wuninitialized -D_THREAD_SAFE -Wno-missing-prototypes -Wno-missing-declarations -Wno-write-strings -Wp,-U_FORTIFY_SOURCE -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR=/Users/adamv/homebrew/Cellar/distcc/3.2rc1/etc -DPKGDATADIR=/Users/adamv/homebrew/Cellar/distcc/3.2rc1/share/distcc -Isrc -I./src -I./lzo -I./popt -arch i386 -arch ppc -arch x86_64 -pipe -D_GNU_SOURCE=1 -Isrc -I./src -I./lzo -I./popt -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c /private/tmp/brew-distcc-3.2rc1-YixJ/distcc-3.2rc1/src/clirpc.c -o ./_include_server/private/tmp/brew-distcc-3.2rc1-YixJ/distcc-3.2rc1/src/clirpc.o
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
error: command '/usr/bin/gcc-4.2' failed with exit status 1

Worked for me ... OSX 10.8.2 ... thanks! I commented out the "--disable-dependency-tracking" because that seemed important, but maybe I am wrong. I have not tried to compile any code yet though. Just install the formula and start the service.


Ok, for me this builds with system python and brewed python without error. I can distcc --version. Looks good so far.
Only thing that is strange is that Cellar/distcc/3.2rc1/lib/python2.6/site-packages/include_server seems not to be a good location for python bindings. Also, why is this python 2.6?

Are there configure options to teach distcc which python (dir) to use?
Normally Homebrew links python (2.7) bindings into $(brew --prefix)/lib/python2.7/site-packages


Okay, to fix that python 2.6 is preferred and to install the python package to the correct dir, I would insert the following snipped right after def install

    # Prevent distcc from finding python 2.6
    ENV['PYTHON'] = which 'python'
    # Make sure python stuff is put into the Cellar.
    # --root triggers a bug and installs into HOMEBREW_PREFIX/lib/python2.7/site-packages instead of the Cellar.
    inreplace '', '--root="$$DESTDIR"', ""
@adamv adamv was assigned Dec 31, 2012

Working directory should probably not be the HOMEBREW_PREFIX directly; a var folder is usually preferred.


@samueljohn does this require a Homebrewed Python? On Snow Leopard I still get the arch problem, even after adding your snippet.


@adamv I can check that again since few things changed meanwhile. But in principle it should work with system pyhon too. I only have version 10.8 of OS X.


For me this builds with system and brewed python (including my snipped, but as said, I can only speak for 10.8).


@samueljohn What arch's does system python have on 10.8? 64-bit only or fat?

file /usr/bin/python
/usr/bin/python: Mach-O universal binary with 2 architectures
/usr/bin/python (for architecture i386):    Mach-O executable i386
/usr/bin/python (for architecture x86_64):  Mach-O 64-bit executable x86_64
@adamv adamv referenced this pull request Jan 12, 2013

Recipe for distcc #17040


Ok, system Python on Snow Leopard is still built with PPC support, of course, and those flags are what's causing this to bomb out for me. Not an issue going forward from SL, so either have to strip PPC flags when they appear, or make this require a brewed Python on SL only.


There are newer changes in the source tree that look useful:

Homebrew member

Let's make this brewed Python on 10.6 (or just 10.7 and above only).

@adamv adamv added a commit that closed this pull request Feb 4, 2013
@snorp snorp distcc 3.2rc1
Closes #13842.

Signed-off-by: Adam Vandenberg <>
@adamv adamv closed this in 677cfec Feb 4, 2013
@n1k0 n1k0 added a commit that referenced this pull request Feb 13, 2013
@snorp snorp distcc 3.2rc1
Closes #13842.

Signed-off-by: Adam Vandenberg <>
@rajeeja rajeeja pushed a commit that referenced this pull request Apr 19, 2013
@snorp snorp distcc 3.2rc1
Closes #13842.

Signed-off-by: Adam Vandenberg <>
@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.