Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save radix/9352152 to your computer and use it in GitHub Desktop.
Save radix/9352152 to your computer and use it in GitHub Desktop.
radix@伝説.local:~$ mkvirtualenv cryptotest
New python executable in cryptotest/bin/python
Installing setuptools, pip...done.
(cryptotest)
radix@伝説.local:~$ cd ~
(cryptotest)
radix@伝説.local:~$ python t.py
Traceback (most recent call last):
File "t.py", line 1, in <module>
from cryptography.hazmat.backends import openssl, commoncrypto, default_backend
ImportError: No module named cryptography.hazmat.backends
(cryptotest)
radix@伝説.local:~$ pip install cryptography
Downloading/unpacking cryptography
Downloading cryptography-0.2.2.tar.gz (13.8MB): 13.8MB downloaded
Running setup.py (path:/Users/radix/.virtualenvs/cryptotest/build/cryptography/setup.py) egg_info for package cryptography
no previously-included directories found matching 'documentation/_build'
zip_safe flag not set; analyzing archive contents...
six: module references __file__
Installed /Users/radix/.virtualenvs/cryptotest/build/cryptography/six-1.5.2-py2.7.egg
Searching for cffi>=0.8
Reading https://pypi.python.org/simple/cffi/
Best match: cffi 0.8.1
Downloading https://pypi.python.org/packages/source/c/cffi/cffi-0.8.1.tar.gz#md5=1a877bf113bfe90fdefedbf9e39310d2
Processing cffi-0.8.1.tar.gz
Writing /var/folders/ln/c4cbt_cj6tx8dj4pvrwt2n3w0000gn/T/easy_install-TUo4X3/cffi-0.8.1/setup.cfg
Running cffi-0.8.1/setup.py -q bdist_egg --dist-dir /var/folders/ln/c4cbt_cj6tx8dj4pvrwt2n3w0000gn/T/easy_install-TUo4X3/cffi-0.8.1/egg-dist-tmp-6kVSGC
cc -c c/check__thread.c -o c/check__thread.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
c/_cffi_backend.c:245:25: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
int base_name_len = strlen(ct_base->ct_name);
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:246:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
int extra_name_len = strlen(extra_text);
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:855:48: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = read_raw_signed_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:864:50: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = read_raw_unsigned_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:874:58: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
double value = read_raw_float_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:910:71: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = (unsigned PY_LONG_LONG)read_raw_signed_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:924:50: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = read_raw_unsigned_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1273:48: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(buf, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1274:52: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if (value != read_raw_signed_data(buf, ct->ct_size))
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1276:49: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1286:48: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(buf, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1287:54: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if (value != read_raw_unsigned_data(buf, ct->ct_size))
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1289:49: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1308:51: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_float_data(data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1403:53: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
rawfielddata = read_raw_unsigned_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1405:52: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(data, rawfielddata, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1425:21: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
align = ct->ct_length;
~ ~~~~^~~~~~~~~
c/_cffi_backend.c:1678:68: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = (long)read_raw_signed_data(cd->c_data, cd->c_type->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:1727:65: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = read_raw_float_data(cd->c_data, cd->c_type->ct_size);
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:2373:16: warning: implicit conversion loses integer precision: 'long' to 'ffi_abi' (aka 'enum ffi_abi') [-Wshorten-64-to-32]
fabi = PyInt_AS_LONG(PyTuple_GET_ITEM(signature, 0));
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/intobject.h:52:51: note: expanded from macro 'PyInt_AS_LONG'
#define PyInt_AS_LONG(op) (((PyIntObject *)(op))->ob_ival)
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:2861:56: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
cd->c_type->ct_size) != 0.0;
~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:2955:55: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(cd->c_data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:3058:61: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_float_data(cd->c_data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:3379:38: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
name_size = strlen(ptypes->name) + 1;
~ ~~~~~~~~~~~~~~~~~~~~~^~~
c/_cffi_backend.c:3397:28: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
td->ct_name_position = strlen(td->ct_name);
~ ^~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:3516:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
int namelen = strlen(name);
~~~~~~~ ^~~~~~~~~~~~
c/_cffi_backend.c:3810:53: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
bits_already_occupied = boffset - (field_offset_bytes * 8);
~ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:3843:53: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
prev_bitfield_size = ftype->ct_size;
~ ~~~~~~~^~~~~~~
c/_cffi_backend.c:3851:62: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
bitshift = 8 * ftype->ct_size - fbitsize - bitshift;
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
c/_cffi_backend.c:4130:37: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
fb->fct->ct_name_position = i;
~ ^
c/_cffi_backend.c:4145:40: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
fb_cat_name(fb, farg->ct_name, strlen(farg->ct_name));
~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:4158:70: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
strlen(fresult->ct_name) - fresult->ct_name_position + 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
c/_cffi_backend.c:4178:30: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
fct = ctypedescr_new(fb->nb_bytes);
~~~~~~~~~~~~~~ ~~~~^~~~~~~~
c/_cffi_backend.c:4228:56: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'unsigned int' [-Wshorten-64-to-32]
if (ffi_prep_cif(&cif_descr->cif, fabi, funcbuffer.nargs,
~~~~~~~~~~~~ ~~~~~~~~~~~^~~~~
c/_cffi_backend.c:4624:31: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
name_size = strlen(ename) + 1;
~ ~~~~~~~~~~~~~~^~~
35 warnings generated.
Installed /Users/radix/.virtualenvs/cryptotest/build/cryptography/cffi-0.8.1-py2.7-macosx-10.9-intel.egg
Searching for pycparser
Reading https://pypi.python.org/simple/pycparser/
Best match: pycparser 2.10
Downloading https://pypi.python.org/packages/source/p/pycparser/pycparser-2.10.tar.gz#md5=d87aed98c8a9f386aa56d365fe4d515f
Processing pycparser-2.10.tar.gz
Writing /var/folders/ln/c4cbt_cj6tx8dj4pvrwt2n3w0000gn/T/easy_install-UEhx09/pycparser-2.10/setup.cfg
Running pycparser-2.10/setup.py -q bdist_egg --dist-dir /var/folders/ln/c4cbt_cj6tx8dj4pvrwt2n3w0000gn/T/easy_install-UEhx09/pycparser-2.10/egg-dist-tmp-scwYqu
zip_safe flag not set; analyzing archive contents...
Installed /Users/radix/.virtualenvs/cryptotest/build/cryptography/pycparser-2.10-py2.7.egg
building '_cffi__xcfd0a060xfba2f231' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cryptography/hazmat/primitives/__pycache__/_cffi__xcfd0a060xfba2f231.c -o /Users/radix/.virtualenvs/cryptotest/build/cryptography/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat/primitives/__pycache__/_cffi__xcfd0a060xfba2f231.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. /Users/radix/.virtualenvs/cryptotest/build/cryptography/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat/primitives/__pycache__/_cffi__xcfd0a060xfba2f231.o -o /Users/radix/.virtualenvs/cryptotest/build/cryptography/cryptography/hazmat/primitives/__pycache__/_cffi__xcfd0a060xfba2f231.so
building '_cffi__x5fea2bacx4a8b9ec1' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cryptography/hazmat/primitives/__pycache__/_cffi__x5fea2bacx4a8b9ec1.c -o /Users/radix/.virtualenvs/cryptotest/build/cryptography/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat/primitives/__pycache__/_cffi__x5fea2bacx4a8b9ec1.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. /Users/radix/.virtualenvs/cryptotest/build/cryptography/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat/primitives/__pycache__/_cffi__x5fea2bacx4a8b9ec1.o -o /Users/radix/.virtualenvs/cryptotest/build/cryptography/cryptography/hazmat/primitives/__pycache__/_cffi__x5fea2bacx4a8b9ec1.so
building '_cffi__x657b2f6exf0ae7e21' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cryptography/hazmat/bindings/__pycache__/_cffi__x657b2f6exf0ae7e21.c -o /Users/radix/.virtualenvs/cryptotest/build/cryptography/cryptography/hazmat/bindings/__pycache__/cryptography/hazmat/bindings/__pycache__/_cffi__x657b2f6exf0ae7e21.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. /Users/radix/.virtualenvs/cryptotest/build/cryptography/cryptography/hazmat/bindings/__pycache__/cryptography/hazmat/bindings/__pycache__/_cffi__x657b2f6exf0ae7e21.o -lcrypto -lssl -o /Users/radix/.virtualenvs/cryptotest/build/cryptography/cryptography/hazmat/bindings/__pycache__/_cffi__x657b2f6exf0ae7e21.so
building '_cffi__x9c102645x21ac8a22' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cryptography/hazmat/bindings/__pycache__/_cffi__x9c102645x21ac8a22.c -o /Users/radix/.virtualenvs/cryptotest/build/cryptography/cryptography/hazmat/bindings/__pycache__/cryptography/hazmat/bindings/__pycache__/_cffi__x9c102645x21ac8a22.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. /Users/radix/.virtualenvs/cryptotest/build/cryptography/cryptography/hazmat/bindings/__pycache__/cryptography/hazmat/bindings/__pycache__/_cffi__x9c102645x21ac8a22.o -o /Users/radix/.virtualenvs/cryptotest/build/cryptography/cryptography/hazmat/bindings/__pycache__/_cffi__x9c102645x21ac8a22.so
Downloading/unpacking cffi>=0.8 (from cryptography)
Downloading cffi-0.8.1.tar.gz (195kB): 195kB downloaded
Running setup.py (path:/Users/radix/.virtualenvs/cryptotest/build/cffi/setup.py) egg_info for package cffi
Downloading/unpacking six>=1.4.1 (from cryptography)
Downloading six-1.5.2-py2.py3-none-any.whl
Downloading/unpacking pycparser (from cffi>=0.8->cryptography)
Downloading pycparser-2.10.tar.gz (206kB): 206kB downloaded
Running setup.py (path:/Users/radix/.virtualenvs/cryptotest/build/pycparser/setup.py) egg_info for package pycparser
Installing collected packages: cryptography, cffi, six, pycparser
Running setup.py install for cryptography
building '_cffi__x657b2f6exf0ae7e21' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cryptography/hazmat/bindings/__pycache__/_cffi__x657b2f6exf0ae7e21.c -o build/temp.macosx-10.9-intel-2.7/cryptography/hazmat/bindings/__pycache__/_cffi__x657b2f6exf0ae7e21.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.9-intel-2.7/cryptography/hazmat/bindings/__pycache__/_cffi__x657b2f6exf0ae7e21.o -lcrypto -lssl -o build/lib.macosx-10.9-intel-2.7/cryptography/_cffi__x657b2f6exf0ae7e21.so
building '_cffi__xcfd0a060xfba2f231' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cryptography/hazmat/primitives/__pycache__/_cffi__xcfd0a060xfba2f231.c -o build/temp.macosx-10.9-intel-2.7/cryptography/hazmat/primitives/__pycache__/_cffi__xcfd0a060xfba2f231.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.9-intel-2.7/cryptography/hazmat/primitives/__pycache__/_cffi__xcfd0a060xfba2f231.o -o build/lib.macosx-10.9-intel-2.7/cryptography/_cffi__xcfd0a060xfba2f231.so
building '_cffi__x5fea2bacx4a8b9ec1' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cryptography/hazmat/primitives/__pycache__/_cffi__x5fea2bacx4a8b9ec1.c -o build/temp.macosx-10.9-intel-2.7/cryptography/hazmat/primitives/__pycache__/_cffi__x5fea2bacx4a8b9ec1.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.9-intel-2.7/cryptography/hazmat/primitives/__pycache__/_cffi__x5fea2bacx4a8b9ec1.o -o build/lib.macosx-10.9-intel-2.7/cryptography/_cffi__x5fea2bacx4a8b9ec1.so
building '_cffi__x9c102645x21ac8a22' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cryptography/hazmat/bindings/__pycache__/_cffi__x9c102645x21ac8a22.c -o build/temp.macosx-10.9-intel-2.7/cryptography/hazmat/bindings/__pycache__/_cffi__x9c102645x21ac8a22.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.9-intel-2.7/cryptography/hazmat/bindings/__pycache__/_cffi__x9c102645x21ac8a22.o -o build/lib.macosx-10.9-intel-2.7/cryptography/_cffi__x9c102645x21ac8a22.so
Running setup.py install for cffi
building '_cffi_backend' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c c/_cffi_backend.c -o build/temp.macosx-10.9-intel-2.7/c/_cffi_backend.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
c/_cffi_backend.c:245:25: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
int base_name_len = strlen(ct_base->ct_name);
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:246:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
int extra_name_len = strlen(extra_text);
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:855:48: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = read_raw_signed_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:864:50: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = read_raw_unsigned_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:874:58: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
double value = read_raw_float_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:910:71: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = (unsigned PY_LONG_LONG)read_raw_signed_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:924:50: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = read_raw_unsigned_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1273:48: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(buf, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1274:52: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if (value != read_raw_signed_data(buf, ct->ct_size))
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1276:49: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1286:48: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(buf, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1287:54: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if (value != read_raw_unsigned_data(buf, ct->ct_size))
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1289:49: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1308:51: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_float_data(data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1403:53: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
rawfielddata = read_raw_unsigned_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1405:52: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(data, rawfielddata, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1425:21: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
align = ct->ct_length;
~ ~~~~^~~~~~~~~
c/_cffi_backend.c:1678:68: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = (long)read_raw_signed_data(cd->c_data, cd->c_type->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:1727:65: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = read_raw_float_data(cd->c_data, cd->c_type->ct_size);
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:2373:16: warning: implicit conversion loses integer precision: 'long' to 'ffi_abi' (aka 'enum ffi_abi') [-Wshorten-64-to-32]
fabi = PyInt_AS_LONG(PyTuple_GET_ITEM(signature, 0));
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/intobject.h:52:51: note: expanded from macro 'PyInt_AS_LONG'
#define PyInt_AS_LONG(op) (((PyIntObject *)(op))->ob_ival)
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:2861:56: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
cd->c_type->ct_size) != 0.0;
~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:2955:55: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(cd->c_data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:3058:61: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_float_data(cd->c_data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:3379:38: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
name_size = strlen(ptypes->name) + 1;
~ ~~~~~~~~~~~~~~~~~~~~~^~~
c/_cffi_backend.c:3397:28: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
td->ct_name_position = strlen(td->ct_name);
~ ^~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:3516:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
int namelen = strlen(name);
~~~~~~~ ^~~~~~~~~~~~
c/_cffi_backend.c:3810:53: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
bits_already_occupied = boffset - (field_offset_bytes * 8);
~ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:3843:53: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
prev_bitfield_size = ftype->ct_size;
~ ~~~~~~~^~~~~~~
c/_cffi_backend.c:3851:62: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
bitshift = 8 * ftype->ct_size - fbitsize - bitshift;
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
c/_cffi_backend.c:4130:37: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
fb->fct->ct_name_position = i;
~ ^
c/_cffi_backend.c:4145:40: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
fb_cat_name(fb, farg->ct_name, strlen(farg->ct_name));
~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:4158:70: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
strlen(fresult->ct_name) - fresult->ct_name_position + 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
c/_cffi_backend.c:4178:30: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
fct = ctypedescr_new(fb->nb_bytes);
~~~~~~~~~~~~~~ ~~~~^~~~~~~~
c/_cffi_backend.c:4228:56: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'unsigned int' [-Wshorten-64-to-32]
if (ffi_prep_cif(&cif_descr->cif, fabi, funcbuffer.nargs,
~~~~~~~~~~~~ ~~~~~~~~~~~^~~~~
c/_cffi_backend.c:4624:31: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
name_size = strlen(ename) + 1;
~ ~~~~~~~~~~~~~~^~~
35 warnings generated.
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.9-intel-2.7/c/_cffi_backend.o -lffi -o build/lib.macosx-10.9-intel-2.7/_cffi_backend.so
Running setup.py install for pycparser
Successfully installed cryptography cffi six pycparser
Cleaning up...
(cryptotest)
radix@伝説.local:~$ python t.py
OpenSSL Version: OpenSSL 0.9.8y 5 Feb 2013
CommonCrypto: gAAAAABTFhXb6QGecv_dOPYEk2ZGyceBytFms6QlMd-_9v2Tqu0u-cjXx85ImlAH3wxMFqaDjVFJDiipyrPykDd_XWpTb_c38Pve0eWpciRcz_IbDPgqbKg=
OpenSSL: gAAAAABTFhXbHUgWLvLEyVuHEYObyvmb0Righ722BrYiZcKgYQvGJpxs2oA_dl5yTrSS9XeLiNmaPQymZqKfMdUTeIhy3bqq6zRhOxmboKeQkp41grcoFmY=
Default: gAAAAABTFhXbfX3c-l2mHJDKXHBHKXc_5IYEPPJDdTFV14Rn_aXpYv-xxHsxx8muc7iESEI-Xv4cz6_t18gxwYVei1-d5dYqecLS6UpBAablJTOF0TDUTio=
(cryptotest)
radix@伝説.local:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment