metalicjames/lyra2re-hash-python

Issues with Sponge.h file

OmniFace opened this issue · 3 comments

I'm having issues with the https://github.com/vertcoin/p2pool-vtc "Running P2Pool" description not working on a Windows machine. When I try running "setup.py" they mention, which adds lyra2re-hash-python as a dependency, or even using "pip install lyra2re2-hash==1.1.2" to install this manually, I 'm getting errors about the Sponge.h file:

Any help would be appreciated.

Installed c:\python27\lib\site-packages\p2pool_vtc-0.2.0-py2.7.egg
Processing dependencies for p2pool-vtc==0.2.0
Searching for lyra2re2-hash
Reading https://pypi.python.org/simple/lyra2re2-hash/
Downloading https://pypi.python.org/packages/38/e1/c449b7e9709a5f328068fe4e0346db67368f58d8ece7f3f4d38a470bdc2b/lyra2re2_hash-1.1.2.tar.gz#md5=29428ca65251f31d98af2d8bf7c90b4f
Best match: lyra2re2-hash 1.1.2
Processing lyra2re2_hash-1.1.2.tar.gz
Writing c:\users\omniface\appdata\local\temp\easy_install-bdjcks\lyra2re2_hash-1.1.2\setup.cfg
Running lyra2re2_hash-1.1.2\setup.py -q bdist_egg --dist-dir c:\users\omniface\appdata\local\temp\easy_install-bdjcks\lyra2re2_hash-1.1.2\egg-dist-tmp-ohauyl
lyra2re2module.c
Lyra2RE.c
Sponge.c
c:\users\omniface\appdata\local\temp\easy_install-bdjcks\lyra2re2_hash-1.1.2\Sponge.h(46) : error C2054: expected '(' to follow 'inline'
c:\users\omniface\appdata\local\temp\easy_install-bdjcks\lyra2re2_hash-1.1.2\Sponge.h(46) : error C2085: 'rotr64' : not in formal parameter list
c:\users\omniface\appdata\local\temp\easy_install-bdjcks\lyra2re2_hash-1.1.2\Sponge.h(46) : error C2143: syntax error : missing ';' before '{'
Sponge.c(40) : error C2054: expected '(' to follow 'inline'
Sponge.c(40) : error C2082: redefinition of formal parameter 'initState'
Sponge.c(40) : error C2143: syntax error : missing ';' before '{'
Sponge.c(59) : error C2054: expected '(' to follow 'inline'
Sponge.c(59) : error C2085: 'blake2bLyra' : not in formal parameter list
Sponge.c(59) : error C2143: syntax error : missing ';' before '{'
Sponge.c(78) : error C2054: expected '(' to follow 'inline'
Sponge.c(78) : error C2085: 'reducedBlake2bLyra' : not in formal parameter list
Sponge.c(78) : error C2143: syntax error : missing ';' before '{'
Sponge.c(90) : error C2054: expected '(' to follow 'inline'
Sponge.c(90) : error C2082: redefinition of formal parameter 'squeeze'
Sponge.c(90) : error C2143: syntax error : missing ';' before '{'
Sponge.c(112) : error C2054: expected '(' to follow 'inline'
Sponge.c(112) : error C2082: redefinition of formal parameter 'absorbBlock'
Sponge.c(112) : error C2143: syntax error : missing ';' before '{'
Sponge.c(138) : error C2054: expected '(' to follow 'inline'
Sponge.c(138) : error C2082: redefinition of formal parameter 'absorbBlockBlake2Safe'
Sponge.c(138) : error C2143: syntax error : missing ';' before '{'
Sponge.c(164) : error C2054: expected '(' to follow 'inline'
Sponge.c(164) : error C2082: redefinition of formal parameter 'reducedSqueezeRow0'
Sponge.c(164) : error C2143: syntax error : missing ';' before '{'
Sponge.c(199) : error C2054: expected '(' to follow 'inline'
Sponge.c(199) : error C2082: redefinition of formal parameter 'reducedDuplexRow1'
Sponge.c(199) : error C2143: syntax error : missing ';' before '{'
Sponge.c(259) : error C2054: expected '(' to follow 'inline'
Sponge.c(259) : error C2082: redefinition of formal parameter 'reducedDuplexRowSetup'
Sponge.c(259) : error C2143: syntax error : missing ';' before '{'
Sponge.c(333) : error C2054: expected '(' to follow 'inline'
Sponge.c(333) : error C2082: redefinition of formal parameter 'reducedDuplexRow'
Sponge.c(333) : error C2143: syntax error : missing ';' before '{'
Sponge.c(739) : warning C4018: '<' : signed/unsigned mismatch
error: Setup script exited with error: command 'C:\Users\OmniFace\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe' failed with exit status 2

Coming in for the same reason... having the same issue. I was able to fix the inline issues by replacing all inline with __inline , but that just introduced a whole new amassment of issues with Sponge...

I always use MinGW to compile this on Windows. I doubt it will work properly with VC.

Closing due to inactivity.