[Cryptography-dev] Latest release does not build on Windows

Khalid [KAB] khabkr at yahoo.com
Mon Mar 3 18:50:31 CET 2014


I am on Windows 7 x64 using Python 2.7.6 x64:

J:\projs\cryptography-0.2.1>python
Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit
(AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>>

Here is the build attempt:
-------------------------------------------------------------

J:\projs\cryptography-0.2.1>set LIB=F:\dev\openssl\lib;

J:\projs\cryptography-0.2.1>set INCLUDE=F:\dev\openssl\include;

J:\projs\cryptography-0.2.1>python setup.py build
running build
running build_ext
building '_cffi__xcfd0a060xfba2f231' extension
creating
J:\projs\cryptography-0.2.1\cryptography\hazmat\primitives\__pycache__\
Release
creating
J:\projs\cryptography-0.2.1\cryptography\hazmat\primitives\__pycache__\
Release\cryptography
creating
J:\projs\cryptography-0.2.1\cryptography\hazmat\primitives\__pycache__\
Release\cryptography\hazmat
creating
J:\projs\cryptography-0.2.1\cryptography\hazmat\primitives\__pycache__\
Release\cryptography\hazmat\primitives
creating
J:\projs\cryptography-0.2.1\cryptography\hazmat\primitives\__pycache__\
Release\cryptography\hazmat\primitives\__pycache__
f:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe
/c /nolog
o /Ox /MD /W3 /GS- /DNDEBUG -IF:\Python27\include -IF:\Python27\PC
/Tccryptograp
hy\hazmat\primitives\__pycache__\_cffi__xcfd0a060xfba2f231.c
/FoJ:\projs\cryptog
raphy-0.2.1\cryptography\hazmat\primitives\__pycache__\Release\cryptography\hazm
at\primitives\__pycache__\_cffi__xcfd0a060xfba2f231.obj
_cffi__xcfd0a060xfba2f231.c
f:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\link.exe
/DLL /n
ologo /INCREMENTAL:NO /LIBPATH:F:\Python27\libs
/LIBPATH:F:\Python27\PCbuild\amd
64 /EXPORT:init_cffi__xcfd0a060xfba2f231
J:\projs\cryptography-0.2.1\cryptograph
y\hazmat\primitives\__pycache__\Release\cryptography\hazmat\primitives\__pycache
__\_cffi__xcfd0a060xfba2f231.obj
/OUT:J:\projs\cryptography-0.2.1\cryptography\h
azmat\primitives\__pycache__\_cffi__xcfd0a060xfba2f231.pyd
/IMPLIB:J:\projs\cryp
tography-0.2.1\cryptography\hazmat\primitives\__pycache__\Release\cryptography\h
azmat\primitives\__pycache__\_cffi__xcfd0a060xfba2f231.lib
/MANIFESTFILE:J:\proj
s\cryptography-0.2.1\cryptography\hazmat\primitives\__pycache__\Release\cryptogr
aphy\hazmat\primitives\__pycache__\_cffi__xcfd0a060xfba2f231.pyd.manifest
_cffi__xcfd0a060xfba2f231.obj : warning LNK4197: export
'init_cffi__xcfd0a060xfb
a2f231' specified multiple times; using first specification
   Creating library
J:\projs\cryptography-0.2.1\cryptography\hazmat\primitives\_
_pycache__\Release\cryptography\hazmat\primitives\__pycache__\_cffi__xcfd0a060xf
ba2f231.lib and object
J:\projs\cryptography-0.2.1\cryptography\hazmat\primitive
s\__pycache__\Release\cryptography\hazmat\primitives\__pycache__\_cffi__xcfd0a06
0xfba2f231.exp
running build_ext
building '_cffi__x5fea2bacx4a8b9ec1' extension
f:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe
/c /nolog
o /Ox /MD /W3 /GS- /DNDEBUG -IF:\Python27\include -IF:\Python27\PC
/Tccryptograp
hy\hazmat\primitives\__pycache__\_cffi__x5fea2bacx4a8b9ec1.c
/FoJ:\projs\cryptog
raphy-0.2.1\cryptography\hazmat\primitives\__pycache__\Release\cryptography\hazm
at\primitives\__pycache__\_cffi__x5fea2bacx4a8b9ec1.obj
_cffi__x5fea2bacx4a8b9ec1.c
cryptography\hazmat\primitives\__pycache__\_cffi__x5fea2bacx4a8b9ec1.c(218)
: wa
rning C4244: '=' : conversion from 'unsigned __int64' to 'uint8_t',
possible los
s of data
f:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\link.exe
/DLL /n
ologo /INCREMENTAL:NO /LIBPATH:F:\Python27\libs
/LIBPATH:F:\Python27\PCbuild\amd
64 /EXPORT:init_cffi__x5fea2bacx4a8b9ec1
J:\projs\cryptography-0.2.1\cryptograph
y\hazmat\primitives\__pycache__\Release\cryptography\hazmat\primitives\__pycache
__\_cffi__x5fea2bacx4a8b9ec1.obj
/OUT:J:\projs\cryptography-0.2.1\cryptography\h
azmat\primitives\__pycache__\_cffi__x5fea2bacx4a8b9ec1.pyd
/IMPLIB:J:\projs\cryp
tography-0.2.1\cryptography\hazmat\primitives\__pycache__\Release\cryptography\h
azmat\primitives\__pycache__\_cffi__x5fea2bacx4a8b9ec1.lib
/MANIFESTFILE:J:\proj
s\cryptography-0.2.1\cryptography\hazmat\primitives\__pycache__\Release\cryptogr
aphy\hazmat\primitives\__pycache__\_cffi__x5fea2bacx4a8b9ec1.pyd.manifest
_cffi__x5fea2bacx4a8b9ec1.obj : warning LNK4197: export
'init_cffi__x5fea2bacx4a
8b9ec1' specified multiple times; using first specification
   Creating library
J:\projs\cryptography-0.2.1\cryptography\hazmat\primitives\_
_pycache__\Release\cryptography\hazmat\primitives\__pycache__\_cffi__x5fea2bacx4
a8b9ec1.lib and object
J:\projs\cryptography-0.2.1\cryptography\hazmat\primitive
s\__pycache__\Release\cryptography\hazmat\primitives\__pycache__\_cffi__x5fea2ba
cx4a8b9ec1.exp
running build_ext
building '_cffi__xd7f460e7x5223a62c' extension
creating
J:\projs\cryptography-0.2.1\cryptography\hazmat\bindings\__pycache__\Re
lease
creating
J:\projs\cryptography-0.2.1\cryptography\hazmat\bindings\__pycache__\Re
lease\cryptography
creating
J:\projs\cryptography-0.2.1\cryptography\hazmat\bindings\__pycache__\Re
lease\cryptography\hazmat
creating
J:\projs\cryptography-0.2.1\cryptography\hazmat\bindings\__pycache__\Re
lease\cryptography\hazmat\bindings
creating
J:\projs\cryptography-0.2.1\cryptography\hazmat\bindings\__pycache__\Re
lease\cryptography\hazmat\bindings\__pycache__
f:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe
/c /nolog
o /Ox /MD /W3 /GS- /DNDEBUG -IF:\Python27\include -IF:\Python27\PC
/Tccryptograp
hy\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c
/FoJ:\projs\cryptogra
phy-0.2.1\cryptography\hazmat\bindings\__pycache__\Release\cryptography\hazmat\b
indings\__pycache__\_cffi__xd7f460e7x5223a62c.obj
_cffi__xd7f460e7x5223a62c.c
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(1535)
: war
ning C4048: different array subscripts : 'unsigned char (*)[]' and
'unsigned cha
r (*)[32]'
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(1536)
: war
ning C4048: different array subscripts : 'unsigned char (*)[]' and
'unsigned cha
r (*)[32]'
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(1560)
: war
ning C4048: different array subscripts : 'unsigned char (*)[]' and
'unsigned cha
r (*)[48]'
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(4410)
: war
ning C4308: negative integral constant converted to unsigned type
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(4429)
: war
ning C4308: negative integral constant converted to unsigned type
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(4448)
: war
ning C4308: negative integral constant converted to unsigned type
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(4467)
: war
ning C4308: negative integral constant converted to unsigned type
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(4486)
: war
ning C4308: negative integral constant converted to unsigned type
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(4505)
: war
ning C4308: negative integral constant converted to unsigned type
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(4524)
: war
ning C4308: negative integral constant converted to unsigned type
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(4543)
: war
ning C4308: negative integral constant converted to unsigned type
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(4562)
: war
ning C4308: negative integral constant converted to unsigned type
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(4581)
: war
ning C4308: negative integral constant converted to unsigned type
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(5702)
: err
or C2065: 'EVP_R_DISABLED_FOR_FIPS' : undeclared identifier
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(5702)
: err
or C2065: 'EVP_R_DISABLED_FOR_FIPS' : undeclared identifier
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(5703)
: err
or C2065: 'EVP_R_DISABLED_FOR_FIPS' : undeclared identifier
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(5704)
: err
or C2065: 'EVP_R_DISABLED_FOR_FIPS' : undeclared identifier
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(5705)
: err
or C2065: 'EVP_R_DISABLED_FOR_FIPS' : undeclared identifier
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(5707)
: err
or C2065: 'EVP_R_DISABLED_FOR_FIPS' : undeclared identifier
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(8473)
: war
ning C4308: negative integral constant converted to unsigned type
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(11004)
: wa
rning C4267: 'function' : conversion from 'size_t' to 'long', possible
loss of d
ata
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(11004)
: wa
rning C4267: 'function' : conversion from 'size_t' to 'unsigned long',
possible
loss of data
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(11031)
: wa
rning C4267: 'function' : conversion from 'size_t' to 'long', possible
loss of d
ata
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(11031)
: wa
rning C4267: 'function' : conversion from 'size_t' to 'unsigned long',
possible
loss of data
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(13630)
: wa
rning C4244: 'function' : conversion from 'uintptr_t' to 'long',
possible loss o
f data
cryptography\hazmat\bindings\__pycache__\_cffi__xd7f460e7x5223a62c.c(13630)
: wa
rning C4244: 'function' : conversion from 'uintptr_t' to 'unsigned
long', possib
le loss of data
Traceback (most recent call last):
  File "setup.py", line 113, in <module>
    "build": cffi_build,
  File "F:\Python27\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "F:\Python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "F:\Python27\lib\distutils\dist.py", line 971, in run_command
    cmd_obj.ensure_finalized()
  File "F:\Python27\lib\distutils\cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "setup.py", line 55, in finalize_options
    OpenSSLBinding().ffi.verifier.get_extension(),
  File
"J:\projs\cryptography-0.2.1\cryptography\hazmat\bindings\openssl\binding
.py", line 83, in __init__
    self._ensure_ffi_initialized()
  File
"J:\projs\cryptography-0.2.1\cryptography\hazmat\bindings\openssl\binding
.py", line 99, in _ensure_ffi_initialized
    libraries)
  File
"J:\projs\cryptography-0.2.1\cryptography\hazmat\bindings\utils.py", line
 72, in build_ffi
    ext_package="cryptography",
  File "F:\Python27\lib\site-packages\cffi\api.py", line 339, in verify
    lib = self.verifier.load_library()
  File "F:\Python27\lib\site-packages\cffi\verifier.py", line 74, in
load_librar
y
    self._compile_module()
  File "F:\Python27\lib\site-packages\cffi\verifier.py", line 139, in
_compile_m
odule
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
  File "F:\Python27\lib\site-packages\cffi\ffiplatform.py", line 25, in
compile
    outputfilename = _build(tmpdir, ext)
  File "F:\Python27\lib\site-packages\cffi\ffiplatform.py", line 50, in
_build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
cffi.ffiplatform.VerificationError: CompileError: command '"f:\Program
Files (x8
6)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe"' failed with exit
status 2



On 3/3/2014 7:28 PM, Paul Kehrer wrote:
> Could you provide the specific error you're seeing on 0.2.1 as well as
> whether you're 32 or 64-bit? Our CI infrastructure built wheels
> successfully for the 0.2.1 release.
>
> On Monday, March 3, 2014 at 1:21 PM, Khalid [KAB] wrote:
>
>> I want to report that unlike the 0.1 release, the latest cryptography
>> release-- namely 0.2.1-- does not build on Windows.
>>
>> Building from the repository now succeeds however. For reference, this
>> was tested after commit 930eed8bcbea6f6250998f0ee042babd62667a9f.
>>
>> Regards,
>> Khalid
>>
>>
>> _______________________________________________
>> Cryptography-dev mailing list
>> Cryptography-dev at python.org <mailto:Cryptography-dev at python.org>
>> https://mail.python.org/mailman/listinfo/cryptography-dev
>
>
>
> _______________________________________________
> Cryptography-dev mailing list
> Cryptography-dev at python.org
> https://mail.python.org/mailman/listinfo/cryptography-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cryptography-dev/attachments/20140303/16d8d31c/attachment-0001.html>


More information about the Cryptography-dev mailing list