Add distcc 3.2rc1 #13842

Closed
wants to merge 1 commit into from

6 participants

@snorp

No description provided.

@jacknagel

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

@snorp

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

@adamv

What about 3.1 doesn't build? MacPorts packages 3.1: https://trac.macports.org/browser/trunk/dports/devel/distcc/Portfile

@adamv adamv was assigned Sep 4, 2012
@adamv

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
@walchko

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.

@samueljohn

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

@samueljohn

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"', ""
@adamv adamv was assigned Dec 31, 2012
@adamv

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

@adamv

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

@samueljohn

@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.

@samueljohn

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

@adamv

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

@samueljohn
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
Closed

Recipe for distcc #17040

@adamv

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.

@adamv

There are newer changes in the source tree that look useful: https://code.google.com/p/distcc/source/detail?r=753

@MikeMcQuaid
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 <flangy@gmail.com>
677cfec
@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 <flangy@gmail.com>
03c0db7
@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 <flangy@gmail.com>
be75cd5
@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.