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

Python-3.13.0rc2 cannot build in windows 11 with visual studio 2022 and windows sdk 10.0.26100 #124487

Closed
joshuafc opened this issue Sep 25, 2024 · 9 comments
Labels
3.12 bugs and security fixes 3.13 bugs and security fixes 3.14 new features, bugs and security fixes build The build process and cross-build OS-windows type-bug An unexpected behavior, bug, or error

Comments

@joshuafc
Copy link

joshuafc commented Sep 25, 2024

Bug report

Bug description:

same as
Error when building _freeze_module

in C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um\ProcessSnapshot.h#L370

#if (NTDDI_VERSION >= NTDDI_WINBLUE)

// Win32 APIs.
_Success_(return == ERROR_SUCCESS)
STDAPI_(DWORD)
PssCaptureSnapshot(
    _In_ HANDLE ProcessHandle,
    _In_ PSS_CAPTURE_FLAGS CaptureFlags,
    _In_opt_ DWORD ThreadContextFlags,
    _Out_ HPSS* SnapshotHandle
    );

but in pyconfig.h#L165

#define Py_WINVER 0x0602 /* _WIN32_WINNT_WIN8 */
#define Py_NTDDI NTDDI_WIN8

in Msi.h#L45

#ifndef NTDDI_WIN8
#define NTDDI_WIN8                          0x06020000
#endif
#ifndef NTDDI_WINBLUE
#define NTDDI_WINBLUE                       0x06030000
#endif

May be that is the problem, with NTDDI not large enough, the PssCaptureSnapshot is not defined, then build failed.

below is full log

E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild>build.bat -p x64 -c Release -t Build -v --disable-gil
Using "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\\..\externals\pythonx86\tools\python.exe" (found in externals directory)
Fetching external libraries...
bzip2-1.0.8 already exists, skipping.
mpdecimal-4.0.0 already exists, skipping.
sqlite-3.45.3.0 already exists, skipping.
xz-5.2.5 already exists, skipping.
zlib-1.3.1 already exists, skipping.
Fetching external binaries...
libffi-3.4.4 already exists, skipping.
openssl-bin-3.0.15 already exists, skipping.
tcltk-8.6.14.0 already exists, skipping.
Finished.
Using "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\MSBuild.exe"  (found in the PATH)
Using "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\\..\externals\pythonx86\tools\python.exe" (found in externals directory)

E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild>"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\MSBuild.exe"  "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\pcbuild.proj" /t:Build /m /v:n /p:Configuration=Release /p:Platform=x64 /p:IncludeExternals=true /p:IncludeCTypes=true /p:IncludeSSL=true /p:IncludeTkinter=true /p:DisableGil=true /p:UseTestMarker= /p:GIT="C:\Program Files\Git\cmd\git.exe" /p:UseJIT= /p:UseTIER2=
适用于 .NET Framework MSBuild 版本 17.11.9+a69bbaaf5
生成启动时间为 2024-09-25 10:18:45。

     1>项目“E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\pcbuild.proj”在节点 1 上(Build 个目标)。
     1>项目“E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\pcbuild.proj”(1)正在节点 1 上生成“E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj”(2) (Build 个目标)。
     2>PrepareForBuild:
         已启用结构化输出。编译器诊断的格式设置将反映错误层次结构。有关详细信息,请参阅 https://aka.ms/cpp/structured-output。
       InitializeBuildStatus:
         正在对“E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\_freeze_module.tlog\unsuccessfulbuild”执行 Touch 任务。
       VcpkgTripletSelection:
         Using triplet "x86-windows" from "C:\Users\joshu\Codes\vcpkg\installed\x86-windows\"
         Using normalized configuration "Release"
       ClCompile:
         C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX86\x86\CL.exe /c /I"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\\
         " /I"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\Include" /I"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\Include\internal" /I"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\Include\internal\mimalloc" /I"E:
         \Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\\313win32_Release\pythoncore\\" /I"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PC" /I"C:\Users\joshu\Codes\vcpkg\installed\x86-windows\include" /Zi
          /nologo /W3 /WX- /diagnostics:column /MP /Od /Oi /Oy- /D Py_NO_ENABLE_SHARED /D Py_BUILD_CORE /D _CONSOLE /D WIN32 /D "PY3_DLLNAME=L\"python3t\"" /D _WIN32 /D NDEBUG /D _UNICODE /D UNICODE /GF /Gm-
         /MD /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\\" /Fd"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc
         2\PCbuild\obj\313win32_Release\_freeze_module\vc143.pdb" /external:W3 /Gd /TC /analyze- /FC /errorReport:queue /utf-8 ..\Programs\_freeze_module.c ..\PC\config_minimal.c ..\Modules\atexitmodule.c ..\
         Modules\faulthandler.c ..\Modules\gcmodule.c ..\Modules\getbuildinfo.c ..\Modules\getpath_noop.c ..\Modules\posixmodule.c ..\Modules\signalmodule.c ..\Modules\timemodule.c ..\Modules\_tracemalloc.c .
         .\Modules\_io\_iomodule.c ..\Modules\_io\bufferedio.c ..\Modules\_io\bytesio.c ..\Modules\_io\fileio.c ..\Modules\_io\iobase.c ..\Modules\_io\stringio.c ..\Modules\_io\textio.c ..\Modules\_io\wincons
         oleio.c ..\Objects\abstract.c ..\Objects\boolobject.c ..\Objects\bytearrayobject.c ..\Objects\bytes_methods.c ..\Objects\bytesobject.c ..\Objects\call.c ..\Objects\capsule.c ..\Objects\cellobject.c .
         .\Objects\classobject.c ..\Objects\codeobject.c ..\Objects\complexobject.c ..\Objects\descrobject.c ..\Objects\dictobject.c ..\Objects\enumobject.c ..\Objects\exceptions.c ..\Objects\fileobject.c ..\
         Objects\floatobject.c ..\Objects\frameobject.c ..\Objects\funcobject.c ..\Objects\genericaliasobject.c ..\Objects\genobject.c ..\Objects\iterobject.c ..\Objects\listobject.c ..\Objects\longobject.c .
         .\Objects\memoryobject.c ..\Objects\methodobject.c ..\Objects\moduleobject.c ..\Objects\namespaceobject.c ..\Objects\object.c ..\Objects\obmalloc.c ..\Objects\odictobject.c ..\Objects\picklebufobject
         .c ..\Objects\rangeobject.c ..\Objects\setobject.c ..\Objects\sliceobject.c ..\Objects\structseq.c ..\Objects\tupleobject.c ..\Objects\typeobject.c ..\Objects\typevarobject.c ..\Objects\unicodectype.
         c ..\Objects\unicodeobject.c ..\Objects\unionobject.c ..\Objects\weakrefobject.c ..\Parser\myreadline.c ..\Parser\parser.c ..\Parser\peg_api.c ..\Parser\pegen.c ..\Parser\pegen_errors.c ..\Parser\act
         ion_helpers.c ..\Parser\string_parser.c ..\Parser\token.c ..\Parser\lexer\buffer.c ..\Parser\lexer\state.c ..\Parser\lexer\lexer.c ..\Parser\tokenizer\string_tokenizer.c ..\Parser\tokenizer\file_toke
         nizer.c ..\Parser\tokenizer\utf8_tokenizer.c ..\Parser\tokenizer\readline_tokenizer.c ..\Parser\tokenizer\helpers.c ..\PC\invalid_parameter_handler.c ..\PC\msvcrtmodule.c ..\PC\winreg.c ..\Python\_wa
         rnings.c ..\Python\asdl.c ..\Python\assemble.c ..\Python\ast.c ..\Python\ast_opt.c ..\Python\ast_unparse.c ..\Python\bltinmodule.c ..\Python\brc.c ..\Python\bootstrap_hash.c ..\Python\ceval.c ..\Pyth
         on\codecs.c ..\Python\compile.c ..\Python\context.c ..\Python\critical_section.c ..\Python\crossinterp.c ..\Python\dtoa.c ..\Python\dynamic_annotations.c ..\Python\dynload_win.c ..\Python\errors.c ..
         \Python\fileutils.c ..\Python\flowgraph.c ..\Python\formatter_unicode.c ..\Python\frame.c ..\Python\future.c ..\Python\gc.c ..\Python\gc_gil.c ..\Python\gc_free_threading.c ..\Python\getargs.c ..\Pyt
         hon\getcompiler.c ..\Python\getcopyright.c ..\Python\getopt.c ..\Python\getplatform.c ..\Python\getversion.c ..\Python\ceval_gil.c ..\Python\hamt.c ..\Python\hashtable.c ..\Python\import.c ..\Python\
         importdl.c ..\Python\initconfig.c ..\Python\instruction_sequence.c ..\Python\interpconfig.c ..\Python\intrinsics.c ..\Python\instrumentation.c ..\Python\jit.c ..\Python\legacy_tracing.c ..\Python\loc
         k.c ..\Python\marshal.c ..\Python\modsupport.c ..\Python\mysnprintf.c ..\Python\mystrtoul.c ..\Python\object_stack.c ..\Python\optimizer.c ..\Python\optimizer_analysis.c ..\Python\optimizer_symbols.c
          ..\Python\parking_lot.c ..\Python\pathconfig.c ..\Python\perf_trampoline.c ..\Python\perf_jit_trampoline.c ..\Python\preconfig.c ..\Python\pyarena.c ..\Python\pyctype.c ..\Python\pyfpe.c ..\Python\p
         yhash.c ..\Python\pylifecycle.c ..\Python\pymath.c ..\Python\pystate.c ..\Python\pystrcmp.c ..\Python\pystrhex.c ..\Python\pystrtod.c "..\Python\Python-ast.c" ..\Python\pythonrun.c "..\Python\Python-
         tokenize.c" ..\Python\pytime.c ..\Python\qsbr.c ..\Python\specialize.c ..\Python\structmember.c ..\Python\suggestions.c ..\Python\symtable.c ..\Python\thread.c ..\Python\traceback.c ..\Python\tracema
         lloc.c
         _freeze_module.c
         config_minimal.c
         atexitmodule.c
         faulthandler.c
         gcmodule.c
         getbuildinfo.c
         getpath_noop.c
         posixmodule.c
         signalmodule.c
         timemodule.c
         _tracemalloc.c
         _iomodule.c
         bufferedio.c
         bytesio.c
         fileio.c
     2>E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\Modules\posixmodule.c(9366,13): warning C4013: “PssCaptureSnapshot”未定义;假设外部返回 int [E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj]
     2>E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\Modules\posixmodule.c(9372,13): warning C4013: “PssQuerySnapshot”未定义;假设外部返回 int [E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj]
     2>E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\Modules\posixmodule.c(9381,5): warning C4013: “PssFreeSnapshot”未定义;假设外部返回 int [E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj]
         iobase.c
         stringio.c
         textio.c
         winconsoleio.c
         abstract.c
         boolobject.c
         bytearrayobject.c
         bytes_methods.c
         bytesobject.c
         call.c
         capsule.c
         cellobject.c
         classobject.c
         codeobject.c
         complexobject.c
         descrobject.c
         dictobject.c
         enumobject.c
         exceptions.c
         fileobject.c
         floatobject.c
         frameobject.c
         funcobject.c
         genericaliasobject.c
         genobject.c
         iterobject.c
         listobject.c
         longobject.c
         memoryobject.c
         methodobject.c
         moduleobject.c
         namespaceobject.c
         object.c
         obmalloc.c
         odictobject.c
         picklebufobject.c
         rangeobject.c
         setobject.c
         sliceobject.c
         structseq.c
         tupleobject.c
         typeobject.c
         typevarobject.c
         unicodectype.c
         unicodeobject.c
         unionobject.c
         weakrefobject.c
         myreadline.c
         parser.c
         peg_api.c
         pegen.c
         pegen_errors.c
         action_helpers.c
         string_parser.c
         token.c
         buffer.c
         state.c
         lexer.c
         string_tokenizer.c
         file_tokenizer.c
         utf8_tokenizer.c
         readline_tokenizer.c
         helpers.c
         invalid_parameter_handler.c
         msvcrtmodule.c
         winreg.c
         _warnings.c
         asdl.c
         assemble.c
         ast.c
         ast_opt.c
         ast_unparse.c
         bltinmodule.c
         brc.c
         bootstrap_hash.c
         ceval.c
         codecs.c
         compile.c
         context.c
         critical_section.c
         crossinterp.c
         dtoa.c
         dynamic_annotations.c
         dynload_win.c
         errors.c
         fileutils.c
         flowgraph.c
         formatter_unicode.c
         frame.c
         future.c
         gc.c
         gc_gil.c
         gc_free_threading.c
         getargs.c
         getcompiler.c
         getcopyright.c
         getopt.c
         getplatform.c
         getversion.c
         ceval_gil.c
         hamt.c
         hashtable.c
         import.c
         importdl.c
         initconfig.c
         instruction_sequence.c
         interpconfig.c
         intrinsics.c
         instrumentation.c
         jit.c
         legacy_tracing.c
         lock.c
         marshal.c
         modsupport.c
         mysnprintf.c
         mystrtoul.c
         object_stack.c
         optimizer.c
         optimizer_analysis.c
         optimizer_symbols.c
         parking_lot.c
         pathconfig.c
         perf_trampoline.c
         perf_jit_trampoline.c
         preconfig.c
         pyarena.c
         pyctype.c
         pyfpe.c
         pyhash.c
         pylifecycle.c
         pymath.c
         pystate.c
         pystrcmp.c
         pystrhex.c
         pystrtod.c
         Python-ast.c
         pythonrun.c
         Python-tokenize.c
         pytime.c
         qsbr.c
         specialize.c
         structmember.c
         suggestions.c
         symtable.c
         thread.c
         traceback.c
         tracemalloc.c
         C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX86\x86\CL.exe /c /I"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\\
         " /I"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\Include" /I"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\Include\internal" /I"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\Include\internal\mimalloc" /I"E:
         \Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\\313win32_Release\pythoncore\\" /I"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PC" /I"C:\Users\joshu\Codes\vcpkg\installed\x86-windows\include" /Zi
          /nologo /W3 /WX- /diagnostics:column /MP /Od /Oi /Oy- /D "VPATH=\"..\\..\"" /D Py_NO_ENABLE_SHARED /D Py_BUILD_CORE /D _CONSOLE /D WIN32 /D "PY3_DLLNAME=L\"python3t\"" /D _WIN32 /D NDEBUG /D _UNICOD
         E /D UNICODE /GF /Gm- /MD /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\\" /Fd"E:\Codes\Python-3.1
         3.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\vc143.pdb" /external:W3 /Gd /TC /analyze- /FC /errorReport:queue /utf-8 ..\Python\sysmodule.c
         sysmodule.c
       Link:
         C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX86\x86\link.exe /ERRORREPORT:QUEUE /OUT:"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\win32\_freeze_mo
         dule.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\win32\\" /LIBPATH:"C:\Users\joshu\Codes\vcpkg\installed\x86-windows\lib" /LIBPATH:"C:\Users\joshu\Codes\
         vcpkg\installed\x86-windows\lib\manual-link" version.lib ws2_32.lib pathcch.lib bcrypt.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
         advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "C:\Users\joshu\Codes\vcpkg\installed\x86-windows\lib\*.lib" /NODEFAULTLIB:LIBC /MANIFEST:NO /DEBUG /PDB:"E:\Codes\Pyt
         hon-3.13.0rc2\Python-3.13.0rc2\PCbuild\win32\_freeze_module.pdb" /SUBSYSTEM:CONSOLE /LTCGOUT:"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\_freeze_module.iob
         j" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\win32\_freeze_module.lib" /MACHINE:X86 /SAFESEH /OPT:REF,NOICF "E:\Codes\Python-3.13.0rc2\Python-3.13.0r
         c2\PCbuild\obj\313win32_Release\_freeze_module\_freeze_module.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\config_minimal.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\atexitmodule.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\faulthandler.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\gcmodule.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\getbuildinfo.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\getpath_noop.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\posixmodule.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\signalmodule.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\timemodule.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\_tracemalloc.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\_iomodule.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\bufferedio.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\bytesio.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\fileio.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\iobase.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\stringio.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\textio.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\winconsoleio.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\abstract.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\boolobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\bytearrayobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\bytes_methods.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\bytesobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\call.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\capsule.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\cellobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\classobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\codeobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\complexobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\descrobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\dictobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\enumobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\exceptions.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\fileobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\floatobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\frameobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\funcobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\genericaliasobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\genobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\iterobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\listobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\longobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\memoryobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\methodobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\moduleobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\namespaceobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\object.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\obmalloc.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\odictobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\picklebufobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\rangeobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\setobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\sliceobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\structseq.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\tupleobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\typeobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\typevarobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\unicodectype.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\unicodeobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\unionobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\weakrefobject.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\myreadline.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\parser.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\peg_api.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\pegen.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\pegen_errors.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\action_helpers.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\string_parser.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\token.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\buffer.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\state.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\lexer.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\string_tokenizer.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\file_tokenizer.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\utf8_tokenizer.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\readline_tokenizer.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\helpers.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\invalid_parameter_handler.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\msvcrtmodule.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\winreg.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\_warnings.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\asdl.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\assemble.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\ast.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\ast_opt.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\ast_unparse.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\bltinmodule.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\brc.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\bootstrap_hash.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\ceval.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\codecs.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\compile.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\context.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\critical_section.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\crossinterp.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\dtoa.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\dynamic_annotations.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\dynload_win.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\errors.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\fileutils.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\flowgraph.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\formatter_unicode.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\frame.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\future.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\gc.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\gc_gil.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\gc_free_threading.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\getargs.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\getcompiler.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\getcopyright.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\getopt.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\getplatform.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\getversion.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\ceval_gil.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\hamt.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\hashtable.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\import.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\importdl.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\initconfig.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\instruction_sequence.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\interpconfig.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\intrinsics.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\instrumentation.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\jit.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\legacy_tracing.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\lock.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\marshal.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\modsupport.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\mysnprintf.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\mystrtoul.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\object_stack.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\optimizer.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\optimizer_analysis.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\optimizer_symbols.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\parking_lot.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\pathconfig.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\perf_trampoline.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\perf_jit_trampoline.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\preconfig.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\pyarena.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\pyctype.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\pyfpe.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\pyhash.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\pylifecycle.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\pymath.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\pystate.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\pystrcmp.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\pystrhex.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\pystrtod.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\Python-ast.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\pythonrun.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\Python-tokenize.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\pytime.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\qsbr.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\specialize.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\structmember.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\suggestions.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\symtable.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\sysmodule.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\thread.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\traceback.obj"
         "E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\obj\313win32_Release\_freeze_module\tracemalloc.obj"
     2>posixmodule.obj : error LNK2019: 无法解析的外部符号 _PssCaptureSnapshot,函数 _win32_getppid 中引用了该符号 [E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj]
     2>posixmodule.obj : error LNK2019: 无法解析的外部符号 _PssQuerySnapshot,函数 _win32_getppid 中引用了该符号 [E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj]
     2>posixmodule.obj : error LNK2019: 无法解析的外部符号 _PssFreeSnapshot,函数 _win32_getppid 中引用了该符号 [E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj]
     2>E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\win32\_freeze_module.exe : fatal error LNK1120: 3 个无法解析的外部命令 [E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj]
     2>已完成生成项目“E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj”(Build 个目标)的操作 - 失败。
     1>已完成生成项目“E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\pcbuild.proj”(Build 个目标)的操作 - 失败。

生成失败。

       “E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\pcbuild.proj”(Build 目标) (1) ->
       “E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj”(Build 目标) (2) ->
       (ClCompile 目标) ->
         E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\Modules\posixmodule.c(9366,13): warning C4013: “PssCaptureSnapshot”未定义;假设外部返回 int [E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj
       ]
         E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\Modules\posixmodule.c(9372,13): warning C4013: “PssQuerySnapshot”未定义;假设外部返回 int [E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj]
         E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\Modules\posixmodule.c(9381,5): warning C4013: “PssFreeSnapshot”未定义;假设外部返回 int [E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj]


       “E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\pcbuild.proj”(Build 目标) (1) ->
       “E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj”(Build 目标) (2) ->
       (Link 目标) ->
         posixmodule.obj : error LNK2019: 无法解析的外部符号 _PssCaptureSnapshot,函数 _win32_getppid 中引用了该符号 [E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj]
         posixmodule.obj : error LNK2019: 无法解析的外部符号 _PssQuerySnapshot,函数 _win32_getppid 中引用了该符号 [E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj]
         posixmodule.obj : error LNK2019: 无法解析的外部符号 _PssFreeSnapshot,函数 _win32_getppid 中引用了该符号 [E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj]
         E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\win32\_freeze_module.exe : fatal error LNK1120: 3 个无法解析的外部命令 [E:\Codes\Python-3.13.0rc2\Python-3.13.0rc2\PCbuild\_freeze_module.vcxproj]

    3 个警告
    4 个错误

已用时间 00:00:26.57

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Linked PRs

@joshuafc joshuafc added the type-bug An unexpected behavior, bug, or error label Sep 25, 2024
@joshuafc
Copy link
Author

currently i modify the header file in windows sdk:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um\ProcessSnapshot.h
it can works now

// #if (NTDDI_VERSION >= NTDDI_WINBLUE)
#if (NTDDI_VERSION >= NTDDI_WIN8)

@Eclips4 Eclips4 added OS-windows build The build process and cross-build labels Sep 25, 2024
@zooba
Copy link
Member

zooba commented Sep 25, 2024

Looks like it was a bug in the earlier version of the headers, and our build wouldn't have worked on Windows 8 as the API was not added until 8.1.

I guess it's time to move our NTDDI_VERSION to Win 10. That ought to be safe enough to do in 3.13.1 provided we don't have to make other code changes, but it'll be hard to tell until we've got a diff.

Anyone who wants to give it a go, go right ahead. I'll get to it eventually, but someone else might be faster.

@zooba zooba added 3.13 bugs and security fixes 3.14 new features, bugs and security fixes labels Sep 25, 2024
@rruuaanng
Copy link
Contributor

rruuaanng commented Sep 26, 2024

You need to redirect the project to the latest WinSDK installed on your local machine.
Instead of compiling without making any modifications.

@zooba
Copy link
Member

zooba commented Sep 26, 2024

The latest WinSDK is the "problem", because they fixed the definition. You'd need to redirect to an older WinSDK that still has the bug in its headers.

@joshuafc
Copy link
Author

I have solved my problem by modify ProcessSnapshot.h in windows sdk.

Should I close this issue or keep it open until the Python code is adapted to the new version of Windows SDK?

@zooba
Copy link
Member

zooba commented Sep 27, 2024

Leave it open. We have a genuine bug here, and modifying the Windows SDK is not a suitable solution.

Thanks for reporting. If you don't feel the need to contribute any further, don't worry about it.

@zooba
Copy link
Member

zooba commented Sep 27, 2024

Looks like 3.12 is also affected, but there we should only move the API version to 8.1. No installer changes will be required for that.

Have asked RM on Discord which way to go for 3.13 - either move the API version to 8.1 and allow installs, or move to 10 and block installs on 8.1.

@rruuaanng
Copy link
Contributor

It seems that these errors do not occur when I compile version 3.13, perhaps you haven't redirected the project's winSDK.

@zooba
Copy link
Member

zooba commented Sep 27, 2024

You'll need to install the latest Windows SDK, which released three days ago. And if you're just running a Visual Studio update to get it, then you'll likely need to opt into a preview release and explicitly select the checkbox.

But once the new SDK is installed, these errors do occur.

Yhg1s pushed a commit that referenced this issue Sep 27, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 27, 2024
…thonGH-124676)

(cherry picked from commit a4916e6)

Co-authored-by: Steve Dower <steve.dower@python.org>
pythongh-124487: Update Windows API version to Windows 8.1
Yhg1s pushed a commit that referenced this issue Sep 27, 2024
… (#124702)

gh-124487: Update Windows API version to Windows 8.1 (GH-124676)
(cherry picked from commit a4916e6)

Co-authored-by: Steve Dower <steve.dower@python.org>
@zooba zooba closed this as completed Sep 30, 2024
zooba pushed a commit that referenced this issue Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.12 bugs and security fixes 3.13 bugs and security fixes 3.14 new features, bugs and security fixes build The build process and cross-build OS-windows type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

4 participants