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

tpm2_pytss._libtpm2_pytss.c: error C2223 #597

Open
ace-loo-83 opened this issue Sep 5, 2024 · 2 comments
Open

tpm2_pytss._libtpm2_pytss.c: error C2223 #597

ace-loo-83 opened this issue Sep 5, 2024 · 2 comments

Comments

@ace-loo-83
Copy link

While running pip install tpm2-pytss for Windows, the following error is generated at runtime:

Building wheels for collected packages: tpm2-pytss
Building wheel for tpm2-pytss (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for tpm2-pytss (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [50 lines of output]
adding path: C:\Users(user)\AppData\Local\Temp\pip-install-wly8fltl\tpm2-pytss_a353bbd08c85497faad3a2f9981bb1d8\scripts
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
creating build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\constants.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\cryptography.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\encoding.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\ESAPI.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\FAPI.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\fapi_info.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\policy.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\TCTI.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\TCTILdr.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\TCTISPIHelper.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\TSS2_Exception.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\tsskey.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\types.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\utils.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss_init_.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
creating build\lib.win-amd64-cpython-312\tpm2_pytss\internal
copying src\tpm2_pytss\internal\crypto.py -> build\lib.win-amd64-cpython-312\tpm2_pytss\internal
copying src\tpm2_pytss\internal\templates.py -> build\lib.win-amd64-cpython-312\tpm2_pytss\internal
copying src\tpm2_pytss\internal\utils.py -> build\lib.win-amd64-cpython-312\tpm2_pytss\internal
copying src\tpm2_pytss\internal_init_.py -> build\lib.win-amd64-cpython-312\tpm2_pytss\internal
running build_ext
generating cffi module 'build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c'
creating build\temp.win-amd64-cpython-312
creating build\temp.win-amd64-cpython-312\Release
building 'tpm2_pytss._libtpm2_pytss' extension
creating build\temp.win-amd64-cpython-312\Release\build
creating build\temp.win-amd64-cpython-312\Release\build\temp.win-amd64-cpython-312
creating build\temp.win-amd64-cpython-312\Release\build\temp.win-amd64-cpython-312\Release
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:/usr/local/include -IC:/usr/local/include/tss2 -I -I/tss2 -I/tss -IC:\Users(user)\AppData\Local\Programs\Python\Python312\include -IC:\Users(user)\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" /Tcbuild\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c /Fobuild\temp.win-amd64-cpython-312\Release\build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.obj
tpm2_pytss._libtpm2_pytss.c
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(61686): error C2223: left of '->fd' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(61687): error C2223: left of '->events' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(61688): error C2223: left of '->revents' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64641): error C2223: left of '->fd' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64642): error C2223: left of '->fd' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64644): error C2223: left of '->events' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64645): error C2223: left of '->events' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64647): error C2223: left of '->revents' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64648): error C2223: left of '->revents' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64643): warning C4047: 'initializing': 'size_t' differs in levels of indirection from '_cffi_opcode_t'
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64646): warning C4047: 'initializing': 'size_t' differs in levels of indirection from '_cffi_opcode_t'
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64649): warning C4047: 'initializing': 'size_t' differs in levels of indirection from '_cffi_opcode_t'
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for tpm2-pytss
Failed to build tpm2-pytss
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (tpm2-pytss)

@whooo
Copy link
Contributor

whooo commented Sep 5, 2024

Windows is currently not supported by tpm2-pytss

@RAGHURH1
Copy link

when will get the Windows supported tpm2-pytss,
any expected date

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

No branches or pull requests

3 participants