lipo: can't figure out the architecture type of

V

Vijayendra Bapte

Hi,

I am getting an gcc compilation error while installing FSEvents
(http://pypi.python.org/packages/source/p/pyobjc-framework-FSEvents/
pyobjc-framework-FSEvents-2.2b1.tar.gz) package on my Mac (OS X
10.4.11, Intel Core Duo 32 bit processor, Python2.6.1, gcc: i686-apple-
darwin8-gcc-4.0.1)

gcc failed while building the "FSEvents._callbacks" extension on $
python setup.py install

here is the error trace...

running install_lib
running build_py
running build_ext
building 'FSEvents._callbacks' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -
fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -I/Library/
Frameworks/Python.framework/Versions/2.6/include/python2.6 -c Modules/
_callbacks.m -o build/temp.macosx-10.3-i386-2.6/Modules/_callbacks.o -
O0
Modules/_callbacks.m:60: error: parse error before
'm_python_context_template'
Modules/_callbacks.m:62: warning: excess elements in scalar
initializer
Modules/_callbacks.m:62: warning: (near initialization for
'm_python_context_template')
Modules/_callbacks.m:63: warning: excess elements in scalar
initializer
..
..
..
..
(Error ending with)
Modules/_callbacks.m:133: error: previous definition of 'result' was
here
Modules/_callbacks.m:353: error: parse error before 'FSEventStreamRef'
lipo: can't figure out the architecture type of: /var/tmp//
cco6kalc.out
error: command 'gcc' failed with exit status 1

Could someone help me in solving this compilation error?
 
V

VJ

Hi,

I am getting an gcc compilation error while installing FSEvents
(http://pypi.python.org/packages/source/p/pyobjc-framework-FSEvents/
pyobjc-framework-FSEvents-2.2b1.tar.gz) package on my Mac (OS X
10.4.11, Intel Core Duo 32 bit processor, Python2.6.1, gcc: i686-apple-
darwin8-gcc-4.0.1)

gcc failed while building the "FSEvents._callbacks" extension on $
python setup.py install

here is the error trace...

running install_lib
running build_py
running build_ext
building 'FSEvents._callbacks' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -
fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -I/Library/
Frameworks/Python.framework/Versions/2.6/include/python2.6 -c Modules/
_callbacks.m -o build/temp.macosx-10.3-i386-2.6/Modules/_callbacks.o -
O0
Modules/_callbacks.m:60: error: parse error before
'm_python_context_template'
Modules/_callbacks.m:62: warning: excess elements in scalar
initializer
Modules/_callbacks.m:62: warning: (near initialization for
'm_python_context_template')
Modules/_callbacks.m:63: warning: excess elements in scalar
initializer
.
.
.
.
(Error ending with)
Modules/_callbacks.m:133: error: previous definition of 'result' was
here
Modules/_callbacks.m:353: error: parse error before 'FSEventStreamRef'
lipo: can't figure out the architecture type of: /var/tmp//
cco6kalc.out
error: command 'gcc' failed with exit status 1

Could someone help me in solving this compilation error?

Finally after doing lots of search on google, I found that there is no
support of FSEvents for Tiger. It wraps some API's that aren't
available on Tiger systems.

Alternatives:

(1) Using kqueue/kevent: It might be possible to emulate the behavior
using kevent/kqueue. But the problem here is, it does not provide the
granularity as FSEvents i.e I you cannot detect which file is modified/
added/deleted inside the marked directory.

(2) The other alternative is polling for changes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,690
Latest member
MacGyver

Latest Threads

Top