Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'openssl/opensslv.h' file not found ; OSX 10.11.6 #3367

Closed
parmeshwor11 opened this issue Jan 26, 2017 · 8 comments
Closed

'openssl/opensslv.h' file not found ; OSX 10.11.6 #3367

parmeshwor11 opened this issue Jan 26, 2017 · 8 comments

Comments

@parmeshwor11
Copy link

installation breaks with fatal error. I am here trying to install inside virtual env; python 2.7
here is the complete log ,

c/_cffi_backend.c:320: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:321: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:961: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:970: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:980: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:1016: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:1030: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:1416: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:1417: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:1419: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:1429: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:1430: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:1432: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:1451: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:1546: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:1548: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:1568: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:1571:25: 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:1914:67: warning: implicit conversion loses integer precision:
'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
return read_raw_unsigned_data(cd->c_data, cd->c_type->ct_size) != 0;
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:1919:64: warning: implicit conversion loses integer precision:
'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
return read_raw_float_data(cd->c_data, cd->c_type->ct_size) != 0.0;
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:1933: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:1982: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:2674: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:3340: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:3434: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:3534: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:3944: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:3962: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:4118:19: warning: implicit conversion loses integer precision:
'unsigned long' to 'int' [-Wshorten-64-to-32]
int namelen = strlen(name);
~~~~~~~ ^~~~~~~~~~~~
c/_cffi_backend.c:4467: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:4508: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:4516: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:4828:27: warning: implicit conversion loses integer precision:
'unsigned long' to 'int' [-Wshorten-64-to-32]
fb_cat_name(fb, repl, strlen(repl));
~~~~~~~~~~~ ^~~~~~~~~~~~
c/_cffi_backend.c:4832:63: warning: implicit conversion loses integer precision:
'long' to 'int' [-Wshorten-64-to-32]
fb->fct->ct_name_position = fresult->ct_name_position + i;
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
c/_cffi_backend.c:4848: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:4861: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:4890: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:4940: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:5450:31: warning: implicit conversion loses integer precision:
'unsigned long' to 'int' [-Wshorten-64-to-32]
name_size = strlen(ename) + 1;
~ ~~~~~~~~~~~~~~^~~
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:2:
c/parse_c_type.c:217:12: warning: implicit conversion loses integer precision:
'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
return index;
~~~~~~ ^~~~~
c/parse_c_type.c:286:22: warning: implicit conversion loses integer precision:
'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
x = tok->output_index;
~ ~~~~~^~~~~~~~~~~~
c/parse_c_type.c:340:31: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
arg = _CFFI_GETARG(tok->output[arg]);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:2:
c/parse_c_type.c:444:12: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
return _CFFI_GETARG(result);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:3:
c/realize_c_type.c:425:32: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
x = get_primitive_type(_CFFI_GETARG(op));
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
^
c/realize_c_type.c:20:52: note: expanded from macro 'get_primitive_type'
all_primitives[num] : build_primitive_type(num))
~~~~~~~~~~~~~~~~~~~~ ^~~
c/realize_c_type.c:430:54: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
y = realize_c_type_or_func(builder, opcodes, _CFFI_GETARG(op));
~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:3:
c/realize_c_type.c:448:58: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
y = (PyObject *)realize_c_type(builder, opcodes, _CFFI_GETARG(op));
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:3:
c/realize_c_type.c:460:49: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
x = _realize_c_struct_or_union(builder, _CFFI_GETARG(op));
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:3:
c/realize_c_type.c:559:58: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
y = (PyObject *)realize_c_type(builder, opcodes, _CFFI_GETARG(op));
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:3:
c/realize_c_type.c:621:54: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
x = realize_c_type_or_func(builder, opcodes, _CFFI_GETARG(op));
~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:3:
c/realize_c_type.c:670:49: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
return realize_c_type(builder, opcodes, _CFFI_GETARG(opcodes[index]));
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:3:
c/realize_c_type.c:723:38: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
_CFFI_GETARG(op));
^~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:16:
c/lib_obj.c:126:25: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
int i, type_index = _CFFI_GETARG(g->type_op);
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:16:
c/lib_obj.c:298:29: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
_CFFI_GETARG(g->type_op));
^~~~~~~~~~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:16:
c/lib_obj.c:342:29: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
_CFFI_GETARG(g->type_op));
^~~~~~~~~~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:16:
c/lib_obj.c:368:29: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
_CFFI_GETARG(g->type_op));
^~~~~~~~~~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:16:
c/lib_obj.c:389:38: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
_CFFI_GETARG(g->type_op));
^~~~~~~~~~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:16:
c/lib_obj.c:403:29: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
_CFFI_GETARG(g->type_op));
^~~~~~~~~~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:17:
c/cdlopen.c:190:44: warning: implicit conversion loses integer precision:
'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
ffi->types_builder.ctx.num_types = n;
~ ^
c/cdlopen.c:235:46: warning: implicit conversion loses integer precision:
'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
ffi->types_builder.ctx.num_globals = n;
~ ^
c/cdlopen.c:267:38: warning: implicit conversion loses integer precision:
'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
nstructs[i].type_index = cdl_4bytes(s); s += 4;
~ ^~~~~~~~~~~~~
c/cdlopen.c:268:33: warning: implicit conversion loses integer precision:
'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
nstructs[i].flags = cdl_4bytes(s); s += 4;
~ ^~~~~~~~~~~~~
c/cdlopen.c:280:49: warning: implicit conversion loses integer precision:
'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
nstructs[i].first_field_index = nf;
~ ^~
c/cdlopen.c:281:42: warning: implicit conversion loses integer precision:
'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
nstructs[i].num_fields = nf1;
~ ^~~
c/cdlopen.c:301:52: warning: implicit conversion loses integer precision:
'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
ffi->types_builder.ctx.num_struct_unions = n;
~ ^
c/cdlopen.c:321:36: warning: implicit conversion loses integer precision:
'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
nenums[i].type_index = cdl_4bytes(e); e += 4;
~ ^~~~~~~~~~~~~
c/cdlopen.c:322:35: warning: implicit conversion loses integer precision:
'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
nenums[i].type_prim = cdl_4bytes(e); e += 4;
~ ^~~~~~~~~~~~~
c/cdlopen.c:327:44: warning: implicit conversion loses integer precision:
'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
ffi->types_builder.ctx.num_enums = n;
~ ^
c/cdlopen.c:347:40: warning: implicit conversion loses integer precision:
'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
ntypenames[i].type_index = cdl_4bytes(t); t += 4;
~ ^~~~~~~~~~~~~
c/cdlopen.c:351:48: warning: implicit conversion loses integer precision:
'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
ffi->types_builder.ctx.num_typenames = n;
~ ^
In file included from c/_cffi_backend.c:6740:
In file included from c/cffi1_module.c:19:
c/call_python.c:90:25: warning: implicit conversion loses integer precision:
'intptr_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
_CFFI_GETARG(g->type_op));
^~~~~~~~~~~~~~~~~~~~~~~~
c/../cffi/parse_c_type.h:9:62: note: expanded from macro '_CFFI_GETARG'
#define _CFFI_GETARG(cffi_opcode) (((intptr_t)cffi_opcode) >> 8)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
70 warnings generated.

Installed /Users/pthap5/Downloads/cryptography-1.7.1/.eggs/cffi-1.9.1-py2.7-macosx-10.11-intel.egg
running install
running bdist_egg
running egg_info
writing requirements to src/cryptography.egg-info/requires.txt
writing src/cryptography.egg-info/PKG-INFO
writing top-level names to src/cryptography.egg-info/top_level.txt
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing entry points to src/cryptography.egg-info/entry_points.txt
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.11-intel/egg
running install_lib
running build_py
creating build
creating build/lib.macosx-10.11-intel-2.7
creating build/lib.macosx-10.11-intel-2.7/cryptography
copying src/cryptography/about.py -> build/lib.macosx-10.11-intel-2.7/cryptography
copying src/cryptography/init.py -> build/lib.macosx-10.11-intel-2.7/cryptography
copying src/cryptography/exceptions.py -> build/lib.macosx-10.11-intel-2.7/cryptography
copying src/cryptography/fernet.py -> build/lib.macosx-10.11-intel-2.7/cryptography
copying src/cryptography/utils.py -> build/lib.macosx-10.11-intel-2.7/cryptography
creating build/lib.macosx-10.11-intel-2.7/cryptography/hazmat
copying src/cryptography/hazmat/init.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat
creating build/lib.macosx-10.11-intel-2.7/cryptography/x509
copying src/cryptography/x509/init.py -> build/lib.macosx-10.11-intel-2.7/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.macosx-10.11-intel-2.7/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.macosx-10.11-intel-2.7/cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.macosx-10.11-intel-2.7/cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.macosx-10.11-intel-2.7/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.macosx-10.11-intel-2.7/cryptography/x509
creating build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/init.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/multibackend.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends
creating build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/init.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/bindings
creating build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/init.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives
creating build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/init.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/backend.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/hashes.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/hmac.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/commoncrypto
creating build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/init.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/backends/openssl
creating build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/init.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/binding.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/bindings/commoncrypto
creating build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/init.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/bindings/openssl
creating build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/init.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/asymmetric
creating build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/init.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/ciphers
creating build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/interfaces
copying src/cryptography/hazmat/primitives/interfaces/init.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/interfaces
creating build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/init.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/kdf
creating build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/init.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.macosx-10.11-intel-2.7/cryptography/hazmat/primitives/twofactor
running build_ext
generating cffi module 'build/temp.macosx-10.11-intel-2.7/_commoncrypto.c'
creating build/temp.macosx-10.11-intel-2.7
generating cffi module 'build/temp.macosx-10.11-intel-2.7/_padding.c'
generating cffi module 'build/temp.macosx-10.11-intel-2.7/_constant_time.c'
generating cffi module 'build/temp.macosx-10.11-intel-2.7/_openssl.c'
building '_openssl' extension
creating build/temp.macosx-10.11-intel-2.7/build
creating build/temp.macosx-10.11-intel-2.7/build/temp.macosx-10.11-intel-2.7
cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/temp.macosx-10.11-intel-2.7/_openssl.c -o build/temp.macosx-10.11-intel-2.7/build/temp.macosx-10.11-intel-2.7/_openssl.o
build/temp.macosx-10.11-intel-2.7/_openssl.c:434:10: fatal error:
'openssl/opensslv.h' file not found
#include <openssl/opensslv.h>
^
1 error generated.
error: command 'cc' failed with exit status 1

@reaperhulk
Copy link
Member

cryptography ships with a binary wheel on macOS, but that wheel can only be selected if you have an up-to-date pip. Since the wheel is not being selected it is attempting to compile it from scratch, which requires OpenSSL to be installed (system OpenSSL is too old and does not ship with development headers).

The fix here is to update your pip and then the install will work.

@alex alex closed this as completed Jan 26, 2017
@parmeshwor11
Copy link
Author

Thank you. It worked with updated pip.

@dpatz
Copy link

dpatz commented May 17, 2017

For macOS >= 10.11:

brew install openssl
env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography

@reaperhulk
Copy link
Member

That should not be necessary on macOS with an updated pip and Python 2.7 or 3.x.

@thiagofigueiro
Copy link

@reaperhulk FYI, I had to use @dpatz's LDFLAGS on macOS 10.12.6 (16G29) with pip 9.0.1 and python 2.7.11. I don't expect you to do anything about it - just looking to help anyone who finds this issue like I did.

$ pip --version
pip 9.0.1 from /Users/thiago/.pyenv/versions/2.7.11/envs/somenv/lib/python2.7/site-packages (python 2.7)
$ python --version
Python 2.7.11
    build/temp.macosx-10.11-x86_64-2.7/_openssl.c:434:10: fatal error: 'openssl/opensslv.h' file not found
    #include <openssl/opensslv.h>
             ^
    1 error generated.
    error: command 'clang' failed with exit status 1

    ----------------------------------------
Command "/Users/thiago/.pyenv/versions/2.7.11/envs/somenv/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/7q/h9382nsd3bg26z95yt8lyc0w0000gn/T/pip-build-lU5mZ9/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/7q/h9382nsd3bg26z95yt8lyc0w0000gn/T/pip-SqT__f-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/thiago/.pyenv/versions/2.7.11/envs/somenv/include/site/python2.7/cryptography" failed with error code 1 in /private/var/folders/7q/h9382nsd3bg26z95yt8lyc0w0000gn/T/pip-build-lU5mZ9/cryptography/

@reaperhulk
Copy link
Member

@thiagofigueiro If you update pyenv and rebuild your pyenv python you won't have to do that. If you run this command: python -c "import sys;print(sys.maxunicode)" and the number is larger than 65535 then the issue is that you're using a wide unicode (UCS-4) build. pyenv briefly built these last year, but switched back to narrow unicode (UCS-2) on macOS for a variety of reasons. Since UCS-2 and UCS-4 builds have a a different ABI they require a different wheel and we only ship UCS-2 wheels for macOS on 2.7.

@jalanb
Copy link

jalanb commented Nov 13, 2017

Also fixed an install of errorbot:

$ pip install errorbot
#include <openssl/opensslv.h>
^
1 error generated.

Try again:

$ brew install openssl
$ _flags="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include"
$ LDFLAGS=$_flags pip install errbot

No errors

@pyca pyca locked and limited conversation to collaborators Nov 13, 2017
@reaperhulk
Copy link
Member

For people who continue to find this via Google: Please, please, please upgrade your pip to the latest version and then install cryptography. On macOS, Windows, and Linux using glibc (e.g. not Alpine) this will make it so you can install a precompiled wheel. More detailed information can be found, as always, within our install documentation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

6 participants