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

Compilation failed on Windows with MSVC, python3.12 #261

Open
ldeluigi opened this issue May 24, 2024 · 1 comment
Open

Compilation failed on Windows with MSVC, python3.12 #261

ldeluigi opened this issue May 24, 2024 · 1 comment

Comments

@ldeluigi
Copy link

Logs ``` Building wheels for collected packages: vmprof Building wheel for vmprof (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [50 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
creating build\lib.win-amd64-cpython-312\jitlog
copying jitlog\constants.py -> build\lib.win-amd64-cpython-312\jitlog
copying jitlog\marks.py -> build\lib.win-amd64-cpython-312\jitlog
copying jitlog\merge_point.py -> build\lib.win-amd64-cpython-312\jitlog
copying jitlog\objects.py -> build\lib.win-amd64-cpython-312\jitlog
copying jitlog\parser.py -> build\lib.win-amd64-cpython-312\jitlog
copying jitlog\prettyprinter.py -> build\lib.win-amd64-cpython-312\jitlog
copying jitlog\query.py -> build\lib.win-amd64-cpython-312\jitlog
copying jitlog\upload.py -> build\lib.win-amd64-cpython-312\jitlog
copying jitlog_init_.py -> build\lib.win-amd64-cpython-312\jitlog
copying jitlog_main_.py -> build\lib.win-amd64-cpython-312\jitlog
creating build\lib.win-amd64-cpython-312\vmprof
copying vmprof\cli.py -> build\lib.win-amd64-cpython-312\vmprof
copying vmprof\profiler.py -> build\lib.win-amd64-cpython-312\vmprof
copying vmprof\reader.py -> build\lib.win-amd64-cpython-312\vmprof
copying vmprof\show.py -> build\lib.win-amd64-cpython-312\vmprof
copying vmprof\stats.py -> build\lib.win-amd64-cpython-312\vmprof
copying vmprof\upload.py -> build\lib.win-amd64-cpython-312\vmprof
copying vmprof_init_.py -> build\lib.win-amd64-cpython-312\vmprof
copying vmprof_main_.py -> build\lib.win-amd64-cpython-312\vmprof
creating build\lib.win-amd64-cpython-312\vmshare
copying vmshare\binary.py -> build\lib.win-amd64-cpython-312\vmshare
copying vmshare\service.py -> build\lib.win-amd64-cpython-312\vmshare
copying vmshare_init_.py -> build\lib.win-amd64-cpython-312\vmshare
running build_ext
building '_vmprof' extension
creating build\temp.win-amd64-cpython-312
creating build\temp.win-amd64-cpython-312\Release
creating build\temp.win-amd64-cpython-312\Release\src
"D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:\AppData\Python312\include -ID:\AppData\Python312\Include "-ID:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include" "-ID:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\ATLMFC\include" "-ID:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-ID:\Windows Kits\10\include\10.0.22621.0\ucrt" "-ID:\Windows Kits\10\include\10.0.22621.0\um" "-ID:\Windows Kits\10\include\10.0.22621.0\shared" "-ID:\Windows Kits\10\include\10.0.22621.0\winrt" "-ID:\Windows Kits\10\include\10.0.22621.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc/_vmprof.c /Fobuild\temp.win-amd64-cpython-312\Release\src/_vmprof.obj -DVMPROF_WINDOWS=1 "-I src/" "-I src/libbacktrace"
_vmprof.c
src/_vmprof.c(68): warning C4090: '=': different 'const' qualifiers
src/_vmprof.c(71): warning C4090: '=': different 'const' qualifiers
src/_vmprof.c(111): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
src/_vmprof.c(295): error C2039: 'frame': is not a member of '_ts'
D:\AppData\Python312\include\cpython/pystate.h(115): note: see declaration of '_ts'
src/_vmprof.c(295): warning C4047: 'function': 'PyFrameObject *' differs in levels of indirection from 'void **'
src/_vmprof.c(295): warning C4024: 'vmp_walk_and_record_stack': different types for formal and actual parameter 1
src/_vmprof.c(295): warning C4022: 'vmp_walk_and_record_stack': pointer mismatch for actual parameter 2
src/_vmprof.c(295): error C2198: 'vmp_walk_and_record_stack': too few arguments for call
src/_vmprof.c(299): error C2065: 'ssize_t': undeclared identifier
src/_vmprof.c(299): error C2146: syntax error: missing ')' before identifier 'routine_ip'
src/_vmprof.c(299): error C2059: syntax error: ')'
src/_vmprof.c(299): error C2059: syntax error: ')'
error: command 'D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\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 vmprof
Running setup.py clean for vmprof
Failed to build vmprof
ERROR: Could not build wheels for vmprof, which is required to install pyproject.toml-based projects

</details>
@mattip mattip changed the title Compilation failed on Windows with MSVC Compilation failed on Windows with MSVC, python3.12 Sep 26, 2024
@mattip
Copy link
Contributor

mattip commented Sep 26, 2024

I don't think we support python3.12 yet. PRs welcome.

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

2 participants