When I'm running python setup.py build, I get this:
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c: In function ‘long_store’:
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c:158:5: warning: implicit declaration of function ‘__atomic_store’ [-Wimplicit-function-declaration]
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c:158:26: error: ‘__ATOMIC_SEQ_CST’ undeclared (first use in this function)
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c:158:26: note: each undeclared identifier is reported only once for each function it appears in
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c: In function ‘long_add_and_fetch’:
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c:161:5: warning: implicit declaration of function ‘__atomic_add_fetch’ [-Wimplicit-function-declaration]
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c:161:37: error: ‘__ATOMIC_SEQ_CST’ undeclared (first use in this function)
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c: In function ‘long_sub_and_fetch’:
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c:164:5: warning: implicit declaration of function ‘__atomic_sub_fetch’ [-Wimplicit-function-declaration]
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c:164:37: error: ‘__ATOMIC_SEQ_CST’ undeclared (first use in this function)
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c: In function ‘long_get_and_set’:
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c:167:5: warning: implicit declaration of function ‘__atomic_exchange_n’ [-Wimplicit-function-declaration]
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c:167:38: error: ‘__ATOMIC_SEQ_CST’ undeclared (first use in this function)
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c: In function ‘long_compare_and_set’:
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c:170:5: warning: implicit declaration of function ‘__atomic_compare_exchange_n’ [-Wimplicit-function-declaration]
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c:170:52: error: ‘__ATOMIC_SEQ_CST’ undeclared (first use in this function)
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c:171:1: warning: control reaches end of non-void function [-Wreturn-type]
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c: In function ‘long_get_and_set’:
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c:168:1: warning: control reaches end of non-void function [-Wreturn-type]
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c: In function ‘long_sub_and_fetch’:
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c:165:1: warning: control reaches end of non-void function [-Wreturn-type]
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c: In function ‘long_add_and_fetch’:
atomic/__pycache__/_cffi__xe6f6e3c8xf914a2ce.c:162:1: warning: control reaches end of non-void function [-Wreturn-type]
Traceback (most recent call last):
File "setup.py", line 9, in <module>
from atomic import ffi
File "/home/harius/dist/atomic-0.7.2/atomic/__init__.py", line 32, in <module>
""")
File "/usr/local/lib/python2.7/dist-packages/cffi/api.py", line 341, in verify
lib = self.verifier.load_library()
File "/usr/local/lib/python2.7/dist-packages/cffi/verifier.py", line 74, in load_library
self._compile_module()
File "/usr/local/lib/python2.7/dist-packages/cffi/verifier.py", line 139, in _compile_module
outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
File "/usr/local/lib/python2.7/dist-packages/cffi/ffiplatform.py", line 25, in compile
outputfilename = _build(tmpdir, ext)
File "/usr/local/lib/python2.7/dist-packages/cffi/ffiplatform.py", line 50, in _build
raise VerificationError('%s: %s' % (e.__class__.__name__, e))
cffi.ffiplatform.VerificationError: CompileError: command 'gcc' failed with exit status 1
I'm on 64-bit Ubuntu 12.04, gcc 4.6.4, python 2.7.3
When I'm running python setup.py build, I get this:
I'm on 64-bit Ubuntu 12.04, gcc 4.6.4, python 2.7.3