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 http://code.google.com/p/distcc/issues/detail?id=80
What about 3.1 doesn't build? MacPorts packages 3.1: https://trac.macports.org/browser/trunk/dports/devel/distcc/Portfile
Both 3.1 and 3.2 bomb out for me building the Python extension (against system Python)
building 'include_server.distcc_pump_c_extensions' extension
/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 'Makefile.in', '--root="$$DESTDIR"', ""
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?
/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
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: https://code.google.com/p/distcc/source/detail?r=753
Let's make this brewed Python on 10.6 (or just 10.7 and above only).
Signed-off-by: Adam Vandenberg <email@example.com>