vmprof / vmprof-python

vmprof - a statistical program profiler
http://vmprof.com
Other
433 stars 54 forks source link

Compilation failed on Windows with MSVC #261

Open ldeluigi opened 3 months ago

ldeluigi commented 3 months ago
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 ```