Skip to content

sha3 build error [Windows10] #10

Description

@yupnano

Hi, I have encountered an build error when running pip install sha3 on Windows10, the error is sha3.c(33): error C2016: C requires that a struct or union has at least one member in sha3.c(33)

Does anyone know how resolve this problem?

And here is the error message:

>pip install sha3
Collecting sha3
Using cached https://files.pythonhosted.org/packages/b3/b4/d23c8e8843226dcf54c6c533a6717d34d50358f74496cfa77e6e8c7e146a/sha3-0.2.1.tar.gz
Installing collected packages: sha3
Running setup.py install for sha3 ... error
Complete output from command c:\users\yupna\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='d:\\Temp\\pip-build-r_s0v2k3\\sha3\\setup.py';f=getattr(tokenize, '
open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record d:\Temp\pip-3_ffm8vz-record\install-record.txt --single-version-externally-managed --
compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\sha3
copying sha3\__init__.py -> build\lib.win-amd64-3.6\sha3
running build_ext
building '_sha3' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\src
creating build\temp.win-amd64-3.6\Release\src\64
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Isrc/ -Isrc/64 -Ic:\users\yupna\appdata\local\programs\python\python36\include -Ic:\users\yup
na\appdata\local\programs\python\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86
)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcsha3.c /Fobuild\temp.win-amd64-3.6\Release\sha3.obj
sha3.c
d:\temp\pip-build-r_s0v2k3\sha3\src\KeccakSponge.h: warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\temp\pip-build-r_s0v2k3\sha3\src\SnP-Relaned.h: warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
sha3.c(33): error C2016: C requires that a struct or union has at least one member
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
----------------------------------------
Command "c:\users\yupna\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='d:\\Temp\\pip-build-r_s0v2k3\\sha3\\setup.py';f=getattr(tokenize, 'open', open)(__file__);c
ode=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record d:\Temp\pip-3_ffm8vz-record\install-record.txt --single-version-externally-managed --compile" failed with err
or code 1 in d:\Temp\pip-build-r_s0v2k3\sha3\
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions