Re: [Pyobjc-dev] pyobjc with vanilla py2.6 doesn't compile
Brought to you by:
ronaldoussoren
From: Diez B. R. <de...@we...> - 2010-08-07 09:18:55
|
On Jul 28, 2010, at 2:27 AM, Brendan Simon (eTRIX) wrote: > 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. That helped a bit, I get this: tequila:GH28 deets$ export CC=gcc-4.0 tequila:GH28 deets$ export MACOSX_DEPLOYMENT_TARGET=10.5 tequila:GH28 deets$ /Library/Frameworks/Python.framework/Versions/2.6/bin/easy_install-2.6 "pyobjc==2.2b1" Searching for pyobjc==2.2b1 Best match: pyobjc 2.2b1 Processing pyobjc-2.2b1-py2.6.egg pyobjc 2.2b1 is already the active version in easy-install.pth Using /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyobjc-2.2b1-py2.6.egg Processing dependencies for pyobjc==2.2b1 Searching for pyobjc-core==2.2b1 Reading http://pypi.python.org/simple/pyobjc-core/ Reading http://pyobjc.sourceforge.net/ Reading http://pyobjc.sourceforge.net/software/index.php Best match: pyobjc-core 2.2b1 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-YC_qFZ/pyobjc-core-2.2b1/egg-dist-tmp-krQzse 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 Modules/objc/formal-protocol.m: In function 'proto_new': Modules/objc/formal-protocol.m:170: warning: 'protocol_name' is deprecated (declared at /usr/include/objc/Protocol.h:38) Modules/objc/formal-protocol.m:171: warning: 'protocol_name' is deprecated (declared at /usr/include/objc/Protocol.h:38) Modules/objc/formal-protocol.m:177: warning: 'protocol_list' is deprecated (declared at /usr/include/objc/Protocol.h:39) Modules/objc/formal-protocol.m:180: warning: 'protocol_list' is deprecated (declared at /usr/include/objc/Protocol.h:39) Modules/objc/formal-protocol.m:183: warning: 'protocol_list' is deprecated (declared at /usr/include/objc/Protocol.h:39) Modules/objc/formal-protocol.m:184: warning: 'protocol_list' is deprecated (declared at /usr/include/objc/Protocol.h:39) Modules/objc/formal-protocol.m:187: warning: 'protocol_list' is deprecated (declared at /usr/include/objc/Protocol.h:39) Modules/objc/formal-protocol.m:189: warning: 'protocol_list' is deprecated (declared at /usr/include/objc/Protocol.h:39) Modules/objc/formal-protocol.m:193: warning: 'protocol_list' is deprecated (declared at /usr/include/objc/Protocol.h:39) Modules/objc/formal-protocol.m:197: warning: 'instance_methods' is deprecated (declared at /usr/include/objc/Protocol.h:40) Modules/objc/formal-protocol.m:200: warning: 'instance_methods' is deprecated (declared at /usr/include/objc/Protocol.h:40) Modules/objc/formal-protocol.m:204: warning: 'instance_methods' is deprecated (declared at /usr/include/objc/Protocol.h:40) Modules/objc/formal-protocol.m:207: warning: 'class_methods' is deprecated (declared at /usr/include/objc/Protocol.h:41) Modules/objc/formal-protocol.m:210: warning: 'class_methods' is deprecated (declared at /usr/include/objc/Protocol.h:41) Modules/objc/formal-protocol.m:214: warning: 'class_methods' is deprecated (declared at /usr/include/objc/Protocol.h:41) Modules/objc/formal-protocol.m:224: warning: 'class_methods' is deprecated (declared at /usr/include/objc/Protocol.h:41) Modules/objc/formal-protocol.m:225: warning: 'class_methods' is deprecated (declared at /usr/include/objc/Protocol.h:41) Modules/objc/formal-protocol.m:230: warning: 'instance_methods' is deprecated (declared at /usr/include/objc/Protocol.h:40) Modules/objc/formal-protocol.m:231: warning: 'instance_methods' is deprecated (declared at /usr/include/objc/Protocol.h:40) Modules/objc/formal-protocol.m:238: warning: 'instance_methods' is deprecated (declared at /usr/include/objc/Protocol.h:40) Modules/objc/formal-protocol.m:239: warning: 'instance_methods' is deprecated (declared at /usr/include/objc/Protocol.h:40) Modules/objc/formal-protocol.m:240: warning: 'instance_methods' is deprecated (declared at /usr/include/objc/Protocol.h:40) Modules/objc/formal-protocol.m:245: warning: 'class_methods' is deprecated (declared at /usr/include/objc/Protocol.h:41) Modules/objc/formal-protocol.m:246: warning: 'class_methods' is deprecated (declared at /usr/include/objc/Protocol.h:41) Modules/objc/formal-protocol.m:247: warning: 'class_methods' is deprecated (declared at /usr/include/objc/Protocol.h:41) Modules/objc/formal-protocol.m:270: warning: 'protocol_name' is deprecated (declared at /usr/include/objc/Protocol.h:38) Modules/objc/formal-protocol.m:271: warning: 'protocol_name' is deprecated (declared at /usr/include/objc/Protocol.h:38) Modules/objc/formal-protocol.m:274: warning: 'protocol_list' is deprecated (declared at /usr/include/objc/Protocol.h:39) Modules/objc/formal-protocol.m:275: warning: 'protocol_list' is deprecated (declared at /usr/include/objc/Protocol.h:39) Modules/objc/formal-protocol.m:278: warning: 'instance_methods' is deprecated (declared at /usr/include/objc/Protocol.h:40) Modules/objc/formal-protocol.m:279: warning: 'instance_methods' is deprecated (declared at /usr/include/objc/Protocol.h:40) Modules/objc/formal-protocol.m:280: warning: 'instance_methods' is deprecated (declared at /usr/include/objc/Protocol.h:40) Modules/objc/formal-protocol.m:285: warning: 'instance_methods' is deprecated (declared at /usr/include/objc/Protocol.h:40) Modules/objc/formal-protocol.m:288: warning: 'class_methods' is deprecated (declared at /usr/include/objc/Protocol.h:41) Modules/objc/formal-protocol.m:289: warning: 'class_methods' is deprecated (declared at /usr/include/objc/Protocol.h:41) Modules/objc/formal-protocol.m:290: warning: 'class_methods' is deprecated (declared at /usr/include/objc/Protocol.h:41) Modules/objc/formal-protocol.m:295: warning: 'class_methods' is deprecated (declared at /usr/include/objc/Protocol.h:41) Modules/objc/formal-protocol.m: At top level: Modules/objc/formal-protocol.m:509: warning: missing initializer Modules/objc/formal-protocol.m:509: warning: (near initialization for 'PyObjCFormalProtocol_Type.tp_version_tag') Modules/objc/function.m:322: warning: missing initializer Modules/objc/function.m:322: warning: (near initialization for 'PyObjCFunc_Type.tp_version_tag') Modules/objc/informal-protocol.m:207: warning: missing initializer Modules/objc/informal-protocol.m:207: warning: (near initialization for 'PyObjCInformalProtocol_Type.tp_version_tag') Modules/objc/instance-var.m: In function 'ivar_descr_set': Modules/objc/instance-var.m:168: warning: unused variable 'ocName' Modules/objc/instance-var.m: At top level: Modules/objc/instance-var.m:326: warning: missing initializer Modules/objc/instance-var.m:326: warning: (near initialization for 'PyObjCInstanceVariable_Type.tp_version_tag') Modules/objc/method-accessor.m:421: warning: missing initializer Modules/objc/method-accessor.m:421: warning: (near initialization for 'PyObjCMethodAccessor_Type.tp_version_tag') Modules/objc/method-imp.m:349: warning: missing initializer Modules/objc/method-imp.m:349: warning: (near initialization for 'PyObjCIMP_Type.tp_version_tag') Modules/objc/method-signature.m:94: warning: missing initializer Modules/objc/method-signature.m:94: warning: (near initialization for 'PyObjCMethodSignature_Type.tp_version_tag') Modules/objc/module.m: In function 'PyObjC_objc_sync_notify': Modules/objc/module.m:1442: warning: 'objc_sync_notify' is deprecated (declared at /usr/include/objc/objc-sync.h:39) Modules/objc/module.m: In function 'PyObjC_objc_sync_notifyAll': Modules/objc/module.m:1467: warning: 'objc_sync_notifyAll' is deprecated (declared at /usr/include/objc/objc-sync.h:40) Modules/objc/module.m: In function 'PyObjC_objc_sync_wait': Modules/objc/module.m:1494: warning: 'objc_sync_wait' is deprecated (declared at /usr/include/objc/objc-sync.h:38) Modules/objc/objc-class.m:49: warning: missing initializer Modules/objc/objc-class.m:49: warning: (near initialization for 'nsdata_as_buffer.bf_getbuffer') Modules/objc/objc-class.m:56: warning: missing initializer Modules/objc/objc-class.m:56: warning: (near initialization for 'nsmutabledata_as_buffer.bf_getbuffer') Modules/objc/objc-class.m:1162: warning: missing initializer Modules/objc/objc-class.m:1162: warning: (near initialization for 'PyObjCClass_Type.tp_version_tag') Modules/objc/objc-NULL.m:63: warning: missing initializer Modules/objc/objc-NULL.m:63: warning: (near initialization for 'PyObjC_NULL_Type.tp_version_tag') Modules/objc/objc-object.m:708: warning: missing initializer Modules/objc/objc-object.m:708: warning: (near initialization for 'PyObjCObject_Type.base.ht_type.tp_version_tag') Modules/objc/objc-object.m:717: warning: missing initializer Modules/objc/objc-object.m:717: warning: (near initialization for 'PyObjCObject_Type.base.as_buffer.bf_getbuffer') Modules/objc/objc_inject.m:55: warning: 'NSAddImage' is deprecated (declared at /usr/include/mach-o/dyld.h:230) Modules/objc/objc_inject.m:56: warning: 'NSLookupSymbolInImage' is deprecated (declared at /usr/include/mach-o/dyld.h:182) Modules/objc/objc_inject.m:57: warning: 'NSAddressOfSymbol' is deprecated (declared at /usr/include/mach-o/dyld.h:188) Modules/objc/objc_inject.m:59: warning: 'NSCreateObjectFileImageFromFile' is deprecated (declared at /usr/include/mach-o/dyld.h:145) Modules/objc/objc_inject.m:60: warning: 'NSLinkModule' is deprecated (declared at /usr/include/mach-o/dyld.h:161) Modules/objc/objc_inject.m:61: warning: 'NSLinkEditError' is deprecated (declared at /usr/include/mach-o/dyld.h:217) Modules/objc/objc_inject.m: In function 'INJECT_EventLoopTimerEntry': Modules/objc/objc_inject.m:418: error: 'struct <anonymous>' has no member named '__builtin___snprintf_chk' Modules/objc/objc_inject.m: In function 'objc_inject': Modules/objc/objc_inject.m:470: warning: 'NSAddImage' is deprecated (declared at /usr/include/mach-o/dyld.h:230) Modules/objc/objc_inject.m:484: warning: 'NSCreateObjectFileImageFromFile' is deprecated (declared at /usr/include/mach-o/dyld.h:145) Modules/objc/objc_inject.m:484: warning: 'NSCreateObjectFileImageFromFile' is deprecated (declared at /usr/include/mach-o/dyld.h:145) Modules/objc/objc_inject.m:485: warning: 'NSLinkModule' is deprecated (declared at /usr/include/mach-o/dyld.h:161) Modules/objc/objc_inject.m:485: warning: 'NSLinkModule' is deprecated (declared at /usr/include/mach-o/dyld.h:161) Modules/objc/objc_inject.m:486: warning: 'NSLinkEditError' is deprecated (declared at /usr/include/mach-o/dyld.h:217) Modules/objc/objc_inject.m:486: warning: 'NSLinkEditError' is deprecated (declared at /usr/include/mach-o/dyld.h:217) error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1 Diez |