Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't install pyzmq on OSX 10.6.7 XCode 4.0.2 #105
Apple has stopped supporting PPC. XCode 4.0.2 will not build X86_64 or universal binaries.
/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
I have tried adding extra_compile_args = ["-arch", "-i386"] and extra_link_args = ["-arch", "-i386"] at various points in setup.py, but that doesn't help.
I'm intrigued as to why your system is trying to build ppc at all. Have you configured your arch flags previously? Are you using the system Python?
Can you post the more complete failing output as well?
This is not a pyzmq Issue, but a general Python-extensions on OSX issue.
The default extension configuration from distutils in system Python is incompatible with XCode 4.
The system Python on 10.6 is 3-arch UB (ppc,i386,x86_64), and if
The less clean but more permanent Python-centric fix is to explicitly change this default. It is set in distutils/sysconfig.py at Line 573:
if 'ARCHFLAGS' in os.environ: archflags = os.environ['ARCHFLAGS'] else: archflags = '-arch i386 -arch ppc -arch x86_64' # <-- change this to what suits you
(file located at
That said, we could explicitly check for the combination of system Python and Xcode 4, and override the default.
You are right. It's an XCode 4 problem. If I still had my old PPC
On Thu, May 12, 2011 at 7:18 PM, minrk
Doug Fort, Consulting Programmer