Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Windows build fails with error C2039 in deepfreeze.c #94781

Closed
Labels
OS-windowstype-bugAn unexpected behavior, bug, or error
@pfmoore

Description

@pfmoore

Bug report

Building CPython on windows fails with the following error:

❯ .\build.batUsing py -3.10 (found 3.10 with py.exe)Fetching external libraries...bzip2-1.0.8 already exists, skipping.sqlite-3.38.4.0 already exists, skipping.xz-5.2.5 already exists, skipping.zlib-1.2.12 already exists, skipping.Fetching external binaries...libffi-3.4.2 already exists, skipping.openssl-bin-1.1.1n already exists, skipping.tcltk-8.6.12.1 already exists, skipping.Finished.Using "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\msbuild.exe" (found in the Visual Studio installation)Using py -3.10 (found 3.10 with py.exe)C:\Work\Projects\cpython\PCbuild>"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\msbuild.exe" "C:\Work\Projects\cpython\PCbuild\pcbuild.proj" /t:Build /m /nologo /v:m /clp:summary /p:Configuration=Release /p:Platform=x64 /p:IncludeExternals=true /p:IncludeCTypes=true /p:IncludeSSL=true /p:IncludeTkinter=true /p:UseTestMarker= /p:GIT="C:\Users\Gustav\scoop\shims\git.exe"  _freeze_module.vcxproj -> C:\Work\Projects\cpython\PCbuild\win32\_freeze_module.exe  Killing any running python.exe instances...  Generated sources are up to date  Getting build info from C:\Users\Gustav\scoop\shims\git.exe  Building heads/main:cfafd3adf8 main  deepfreeze.cC:\Work\Projects\cpython\Python\deepfreeze\deepfreeze.c(48335,14): error C2039: '_zipimporter': is not a member of '<unnamed-tag>' [C:\Work\Projects\cpython\PCbuild\pythoncore.vcxproj]C:\Work\Projects\cpython\Include\internal\pycore_global_strings.h(54): message : see declaration of '<unnamed-tag>' [C:\Work\Projects\cpython\PCbuild\pythoncore.vcxproj]C:\Work\Projects\cpython\Python\deepfreeze\deepfreeze.c(48436,17): error C2039: '_zipimporter': is not a member of '<unnamed-tag>' [C:\Work\Projects\cpython\PCbuild\pythoncore.vcxproj]C:\Work\Projects\cpython\Include\internal\pycore_global_strings.h(54): message : see declaration of '<unnamed-tag>' [C:\Work\Projects\cpython\PCbuild\pythoncore.vcxproj]C:\Work\Projects\cpython\Python\deepfreeze\deepfreeze.c(48437,21): error C2039: '_zipimporter': is not a member of '<unnamed-tag>' [C:\Work\Projects\cpython\PCbuild\pythoncore.vcxproj]C:\Work\Projects\cpython\Include\internal\pycore_global_strings.h(54): message : see declaration of '<unnamed-tag>' [C:\Work\Projects\cpython\PCbuild\pythoncore.vcxproj]C:\Work\Projects\cpython\Python\deepfreeze\deepfreeze.c(52201,14): error C2039: '_zipimporter': is not a member of '<unnamed-tag>' [C:\Work\Projects\cpython\PCbuild\pythoncore.vcxproj]C:\Work\Projects\cpython\Include\internal\pycore_global_strings.h(54): message : see declaration of '<unnamed-tag>' [C:\Work\Projects\cpython\PCbuild\pythoncore.vcxproj]C:\Work\Projects\cpython\Python\deepfreeze\deepfreeze.c(52297,14): error C2039: '_zipimporter': is not a member of '<unnamed-tag>' [C:\Work\Projects\cpython\PCbuild\pythoncore.vcxproj]C:\Work\Projects\cpython\Include\internal\pycore_global_strings.h(54): message : see declaration of '<unnamed-tag>' [C:\Work\Projects\cpython\PCbuild\pythoncore.vcxproj]Build FAILED.C:\Work\Projects\cpython\Python\deepfreeze\deepfreeze.c(48335,14): error C2039: '_zipimporter': is not a member of '<unnamed-tag>' [C:\Work\Projects\cpython\PCbuild\pythoncore.vcxproj]C:\Work\Projects\cpython\Python\deepfreeze\deepfreeze.c(48436,17): error C2039: '_zipimporter': is not a member of '<unnamed-tag>' [C:\Work\Projects\cpython\PCbuild\pythoncore.vcxproj]C:\Work\Projects\cpython\Python\deepfreeze\deepfreeze.c(48437,21): error C2039: '_zipimporter': is not a member of '<unnamed-tag>' [C:\Work\Projects\cpython\PCbuild\pythoncore.vcxproj]C:\Work\Projects\cpython\Python\deepfreeze\deepfreeze.c(52201,14): error C2039: '_zipimporter': is not a member of '<unnamed-tag>' [C:\Work\Projects\cpython\PCbuild\pythoncore.vcxproj]C:\Work\Projects\cpython\Python\deepfreeze\deepfreeze.c(52297,14): error C2039: '_zipimporter': is not a member of '<unnamed-tag>' [C:\Work\Projects\cpython\PCbuild\pythoncore.vcxproj]    0 Warning(s)    5 Error(s)Time Elapsed 00:00:07.59

This is from a clean checkout ofhttps://github.com/python/cpython, changing directory to PCBuild and running ./build.bat

Your environment

My system is Windows 11, with Visual Studio 2022 and Visual Studio 2019 installed. As can be seen from the messages, VS2022 is picked bybuild.bat.

  • CPython versions tested on: main branch commitcfafd3a
  • Operating system and architecture: Windows 11, 64-bit

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowstype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp