Re: [Pyobjc-dev] pyobjc with vanilla py2.6 doesn't compile
Brought to you by:
ronaldoussoren
From: Brendan S. (eTRIX) <bre...@et...> - 2010-07-28 00:43:45
|
On 28/07/10 5:13 AM, pyo...@li... wrote: > Message: 5 > Date: Wed, 21 Jul 2010 23:21:16 +0200 > From: "Diez B. Roggisch" <de...@we...> > Subject: Re: [Pyobjc-dev] pyobjc with vanilla py2.6 doesn't compile > To: Ronald Oussoren <ron...@ma...> > Cc: pyo...@li... > Message-ID: <589...@we...> > Content-Type: text/plain; charset=iso-8859-1 > > > On Jul 20, 2010, at 6:46 PM, Ronald Oussoren wrote: > >> > >> > On 20 Jul, 2010, at 0:18, Diez B. Roggisch wrote: >> > >>> >> >>> >> On Jul 20, 2010, at 1:09 AM, Martin K?hl wrote: >>> >> >>>> >>> This can happen when trying to build a 64-bit version of PyObjC. >>>> >>> Try exporting MACOSX_DEPLOYMENT_TARGET=10.5 before you install it. >>> >> >>> >> >>> >> Worked slightly better - but now this happens: >>> >> >>> >> Downloading http://pypi.python.org/packages/source/p/pyobjc-core/pyobjc-core-2.2b1.tar.gz#md5=a4cacd7c11cacbe8de9bd2f8fd9e3b75 >>> >> Processing pyobjc-core-2.2b1.tar.gz >>> >> Running pyobjc-core-2.2b1/setup.py -q bdist_egg --dist-dir /var/folders/P4/P4526I2LGtKkYHJFKsUo2++++TI/-Tmp-/easy_install-F2mLbI/pyobjc-core-2.2b1/egg-dist-tmp-IJEYZT >>> >> warning: no previously-included files matching '.DS_Store' found anywhere in distribution >>> >> warning: no previously-included files matching '*.pbxuser' found anywhere in distribution >>> >> warning: no previously-included files matching '*.so' found anywhere in distribution >>> >> cc1: error: unrecognized command line option "-Wno-long-double" >> > >> > That's odd, all Apple compilers should support -Wno-long-double. Which OSX version are you on, which version of Xcode and which compiler are you using? > snow leopard, 10.6.3, latest xcode,comes with this GCC: > > deets$ gcc --version > i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659) I had the same problem when I tried to build/install pycrypto on OS X 10.6. It seems that gcc-4.2 doesn't support -Wno-long-double anymore (well not the apple built gcc-4.2). It is available in gcc-4.0 (and probably earlier versions). My 'work around' was to do the following. $ export CC=gcc-4.0 $ ### do my build (e.g. python setup.py install) $ unset CC Check which versions you have installed with: $ ls -l /usr/bin/gcc* I also had to install the 10.4u SDK from the Apple install DVDs, but I think that was some pycrypto constraint. Cheers, Brendan. |