tags:

views:

9

answers:

0

I am trying to build pyobjc from trunk. My system is Mac OS X 10.5.8, Xcode 3.1.3 developer tools and I have installed python from http://www.python.org/ftp/python/2.5.4/python-2.5.4-macosx.dmg

when i go to pyobjc-core folder and do $ python setup.py test

I get error: lipo: can't figure out the architecture type of: /var/tmp//ccVTuAUA.out

details:

g

cc -arch ppc -arch i386 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp 
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 
-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c 
Modules/objc/formal-protocol.m -o 
build/temp.macosx-10.3-i386-2.5/Modules/objc/formal-protocol.o 
-DPyObjC_STRICT_DEBUGGING -DMACOSX -DPyObjC_BUILD_RELEASE=1005 -no-cpp-precomp 
-DMACOSX -g -fexceptions -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wformat=2 -W -Wpointer-arith -Wmissing-declarations -Wnested-externs 
-Wno-long-long -Wno-import -isysroot / -Ibuild/codegen/ -Ilibffi-src/include 
-Ilibffi-src/powerpc 
-I/Users/agyey/Downloads/pyobjc_trunk/pyobjc/pyobjc-core/build/libxml/include/libxml2

Modules/objc/formal-protocol.m: In function 'proto_new':
Modules/objc/formal-protocol.m:221: warning: initialization discards qualifiers 
from pointer target type
Modules/objc/formal-protocol.m: At top level:
Modules/objc/formal-protocol.m:499: warning: implicit declaration of function 
'PyVarObject_HEAD_INIT'
Modules/objc/formal-protocol.m:500: error: initializer element is not constant
Modules/objc/formal-protocol.m:500: error: (near initialization for 
'PyObjCFormalProtocol_Type.ob_refcnt')
Modules/objc/formal-protocol.m:500: error: syntax error before string constant
Modules/objc/formal-protocol.m:501: warning: initialization makes pointer from 
integer without a cast
Modules/objc/formal-protocol.m:504: warning: initialization from incompatible 
pointer type
Modules/objc/formal-protocol.m:509: warning: initialization from incompatible 
pointer type
Modules/objc/formal-protocol.m:516: warning: initialization from incompatible 
pointer type
Modules/objc/formal-protocol.m:519: warning: initialization makes pointer from 
integer without a cast
Modules/objc/formal-protocol.m:520: warning: initialization from incompatible 
pointer type
Modules/objc/formal-protocol.m:527: warning: initialization makes integer from 
pointer without a cast
Modules/objc/formal-protocol.m:529: warning: initialization from incompatible 
pointer type
Modules/objc/formal-protocol.m:537: warning: initialization makes integer from 
pointer without a cast
Modules/objc/formal-protocol.m:550: warning: missing initializer
Modules/objc/formal-protocol.m:550: warning: (near initialization for 
'PyObjCFormalProtocol_Type.tp_subclasses')
Modules/objc/formal-protocol.m: In function 'do_verify':
Modules/objc/formal-protocol.m:639: warning: passing argument 2 of 
'signaturesEqual' discards qualifiers from pointer target type
Modules/objc/formal-protocol.m: In function 'proto_new':
Modules/objc/formal-protocol.m:221: warning: initialization discards qualifiers 
from pointer target type
Modules/objc/formal-protocol.m: At top level:
Modules/objc/formal-protocol.m:499: warning: implicit declaration of function 
'PyVarObject_HEAD_INIT'
Modules/objc/formal-protocol.m:500: error: initializer element is not constant
Modules/objc/formal-protocol.m:500: error: (near initialization for 
'PyObjCFormalProtocol_Type.ob_refcnt')
Modules/objc/formal-protocol.m:500: error: syntax error before string constant
Modules/objc/formal-protocol.m:501: warning: initialization makes pointer from 
integer without a cast
Modules/objc/formal-protocol.m:504: warning: initialization from incompatible 
pointer type
Modules/objc/formal-protocol.m:509: warning: initialization from incompatible 
pointer type
Modules/objc/formal-protocol.m:516: warning: initialization from incompatible 
pointer type
Modules/objc/formal-protocol.m:519: warning: initialization makes pointer from 
integer without a cast
Modules/objc/formal-protocol.m:520: warning: initialization from incompatible 
pointer type
Modules/objc/formal-protocol.m:527: warning: initialization makes integer from 
pointer without a cast
Modules/objc/formal-protocol.m:529: warning: initialization from incompatible 
pointer type
Modules/objc/formal-protocol.m:537: warning: initialization makes integer from 
pointer without a cast
Modules/objc/formal-protocol.m:550: warning: missing initializer
Modules/objc/formal-protocol.m:550: warning: (near initialization for 
'PyObjCFormalProtocol_Type.tp_subclasses')
Modules/objc/formal-protocol.m: In function 'do_verify':
Modules/objc/formal-protocol.m:639: warning: passing argument 2 of 
'signaturesEqual' discards qualifiers from pointer target type
lipo: can't figure out the architecture type of: /var/tmp//ccVTuAUA.out
error: command 'gcc' failed with exit status 1

What could be the reason ?