[tahoe-dev] Windows 7 Build Fails

Paul Grunwald pgrunwald at comcast.net
Mon May 28 22:42:19 UTC 2012


Slowly making progress - Crypto is installed, only one test fails.  2.6 was the available version of Pycrypto

G:\Python27\pycrypto-2.6>python setup.py test
running test
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
............................................SelfTest: You can ignore the RandomP
ool_DeprecationWarning that follows.
.........E...................
======================================================================
ERROR: test_negative_number_roundtrip_mpzToLongObj_longObjToMPZ (Crypto.SelfTest
.Util.test_number.MiscTests)
Test that mpzToLongObj and longObjToMPZ (internal functions) roundtrip negative
numbers correctly.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "build\lib.win-amd64-2.7\Crypto\SelfTest\Util\test_number.py", line 283,
in test_negative_number_roundtrip_mpzToLongObj_longObjToMPZ
    k = number._fastmath.rsa_construct(n, e)
AttributeError: 'NoneType' object has no attribute 'rsa_construct'

----------------------------------------------------------------------
Ran 1033 tests in 203.131s

FAILED (errors=1)
Traceback (most recent call last):
  File "setup.py", line 456, in <module>
    core.setup(**kw)
  File "g:\python27\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "g:\python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "g:\python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 336, in run
    SelfTest.run(module=moduleObj, verbosity=self.verbose, stream=sys.stdout, co
nfig=self.config)
  File "build\lib.win-amd64-2.7\Crypto\SelfTest\__init__.py", line 74, in run
    raise SelfTestError("Self-test failed", result)
Crypto.SelfTest.SelfTestError: ('Self-test failed', <unittest.runner.TextTestRes
ult run=1033 errors=1 failures=0>)

-----------------------------------------------

Building the egg does not work:
G:\Python27\pycrypto-2.6>python setup.py bdist_egg
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'bdist_egg'

I'm still getting this in the build:

G:\allmydata-tahoe-1.9.1>python setup.py build
running update_version
no version-control data found, leaving _version.py alone
running develop
Not found: tahoe-deps
Not found: ../tahoe-deps
running egg_info
writing requirements to src\allmydata_tahoe.egg-info\requires.txt
writing src\allmydata_tahoe.egg-info\PKG-INFO
writing top-level names to src\allmydata_tahoe.egg-info\top_level.txt
writing dependency_links to src\allmydata_tahoe.egg-info\dependency_links.txt
writing entry points to src\allmydata_tahoe.egg-info\entry_points.txt
reading manifest file 'src\allmydata_tahoe.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.png' under directory 'src'
warning: no previously-included files matching '*~' found anywhere in distributi
on
writing manifest file 'src\allmydata_tahoe.egg-info\SOURCES.txt'
running build_ext
Processing darcsver-1.7.2.egg
removing 'g:\allmydata-tahoe-1.9.1\support\lib\site-packages\darcsver-1.7.2.egg'
 (and everything under it)
Copying darcsver-1.7.2.egg to g:\allmydata-tahoe-1.9.1\support\lib\site-packages

darcsver 1.7.2 is already the active version in easy-install.pth
Deleting support/Scripts\darcsver
Deleting support/Scripts\darcsver.pyscript
Installing darcsver.pyscript script to support/Scripts
Installing darcsver script to support/Scripts

Installed g:\allmydata-tahoe-1.9.1\support\lib\site-packages\darcsver-1.7.2.egg
Creating g:\allmydata-tahoe-1.9.1\support\lib\site-packages\allmydata-tahoe.egg-
link (link to src)
allmydata-tahoe 1.9.1 is already the active version in easy-install.pth
Deleting support/Scripts\tahoe
Deleting support/Scripts\tahoe.pyscript
Installing tahoe.pyscript script to support/Scripts
Installing tahoe script to support/Scripts

Installed g:\allmydata-tahoe-1.9.1\src
Processing dependencies for allmydata-tahoe==1.9.1
Searching for pycryptopp>=0.5.20
Reading http://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-dep-sdists/
Reading http://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-lafs-dep-eggs/
Best match: pycryptopp 0.6.0.1206569328141510525648634803928199668821045408958
Downloading https://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-dep-sdists/pycry
ptopp-0.6.0.1206569328141510525648634803928199668821045408958.tar.gz
Processing pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958.ta
r.gz
Running pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958\setup
.py -q bdist_egg --dist-dir c:\users\paul\appdata\local\temp\easy_install-oa0f4x
\pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958\egg-dist-tmp
-mxvyz_

Setting up environment to run scripts for the current user...
Already done: associate the filetype .pyscript with Python.File for the current
user.
Already done: add .pyscript to the user environment variable PATHEXT.
Already done: add .pyw to the user environment variable PATHEXT.
cl : Command line warning D9025 : overriding '/W3' with '/w'
algebra.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
algparam.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
asn.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
basecode.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
cpu.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
cryptlib.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
des.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
dessp.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
dll.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
dsa.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
ec2n.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
eccrypto.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
ecp.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
eprecomp.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
filters.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
fips140.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
gf2n.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
gfpcrypt.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
hex.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
hmac.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
integer.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
iterhash.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
misc.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
modes.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
mqueue.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
nbtheory.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
oaep.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
osrng.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
pkcspad.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
pssr.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
pubkey.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
queue.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
randpool.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
rdtables.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
rijndael.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
rng.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
rsa.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
salsa.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
serpent.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
sha.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
sosemanuk.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
strciphr.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
tiger.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
tigertab.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
_pycryptoppmodule.cpp
cl : Command line warning D9025 : overriding '/W3' with '/w'
rsamodule.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
sha256module.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
aesmodule.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
xsalsa20module.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
cl : Command line warning D9025 : overriding '/W3' with '/w'
ecdsamodule.cpp
G:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exce
ption handler used, but unwind semantics are not enabled. Specify /EHsc
_pycryptoppmodule.obj : warning LNK4197: export 'init_pycryptopp' specified mult
iple times; using first specification
   Creating library build\temp.win-amd64-2.7\Release\src-cryptopp\_pycryptopp.li
b and object build\temp.win-amd64-2.7\Release\src-cryptopp\_pycryptopp.exp
integer.obj : error LNK2019: unresolved external symbol Baseline_Add referenced
in function "void __cdecl CryptoPP::RecursiveMultiply(unsigned __int64 *,unsigne
d __int64 *,unsigned __int64 const *,unsigned __int64 const *,unsigned __int64)"
 (?RecursiveMultiply at CryptoPP@@YAXPEA_K0PEB_K1_K at Z)
integer.obj : error LNK2019: unresolved external symbol Baseline_Sub referenced
in function "void __cdecl CryptoPP::RecursiveMultiply(unsigned __int64 *,unsigne
d __int64 *,unsigned __int64 const *,unsigned __int64 const *,unsigned __int64)"
 (?RecursiveMultiply at CryptoPP@@YAXPEA_K0PEB_K1_K at Z)
rijndael.obj : error LNK2019: unresolved external symbol Rijndael_Enc_AdvancedPr
ocessBlocks referenced in function "public: virtual unsigned __int64 __cdecl Cry
ptoPP::Rijndael::Enc::AdvancedProcessBlocks(unsigned char const *,unsigned char
const *,unsigned char *,unsigned __int64,unsigned int)const " (?AdvancedProcessB
locks at Enc@Rijndael at CryptoPP@@UEBA_KPEBE0PEAE_KI at Z)
salsa.obj : error LNK2019: unresolved external symbol Salsa20_OperateKeystream r
eferenced in function "protected: virtual void __cdecl CryptoPP::Salsa20_Policy:
:OperateKeystream(enum CryptoPP::KeystreamOperation,unsigned char *,unsigned cha
r const *,unsigned __int64)" (?OperateKeystream at Salsa20_Policy@CryptoPP@@MEAAXW4
KeystreamOperation at 2@PEAEPEBE_K at Z)
sha.obj : error LNK2019: unresolved external symbol X86_SHA256_HashBlocks refere
nced in function "public: virtual unsigned __int64 __cdecl CryptoPP::SHA256::Has
hMultipleBlocks(unsigned int const *,unsigned __int64)" (?HashMultipleBlocks at SHA
256 at CryptoPP@@UEAA_KPEBI_K at Z)
sosemanuk.obj : error LNK2019: unresolved external symbol Sosemanuk_OperateKeyst
ream referenced in function "protected: virtual void __cdecl CryptoPP::Sosemanuk
Policy::OperateKeystream(enum CryptoPP::KeystreamOperation,unsigned char *,unsig
ned char const *,unsigned __int64)" (?OperateKeystream at SosemanukPolicy@CryptoPP@
@MEAAXW4KeystreamOperation at 2@PEAEPEBE_K at Z)
build\lib.win-amd64-2.7\pycryptopp\_pycryptopp.pyd : fatal error LNK1120: 6 unre
solved externals
error: Setup script exited with error: command '"G:\Microsoft Visual Studio 9.0\
VC\BIN\amd64\link.exe"' failed with exit status 1120


-----Original Message-----
From: David-Sarah Hopwood [mailto:djhopwood at googlemail.com] On Behalf Of David-Sarah Hopwood
Sent: Monday, May 28, 2012 9:10 AM
To: Tahoe-LAFS development
Cc: Paul Grunwald
Subject: Re: [tahoe-dev] Windows 7 Build Fails

On 28/05/12 01:44, Paul Grunwald wrote:
> I'm happy to help,  what compiler should I install?.  MingW was 32-bit 
> only.  Is there a preferred version of Microsoft Visual C++ I can install?

Yes: Express Edition 2008. See
<http://blog.victorjabur.com/2011/06/05/compiling-python-2-7-modules-on-windows-32-and-64-using-msvc-2008-express/>,
and use 'python setup.py bdist_egg' at the end to produce the egg distribution.

--
David-Sarah Hopwood ⚥




More information about the tahoe-dev mailing list