microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.24k stars 6.4k forks source link

[qtinterfaceframework] Build error on x64-windows #41707

Open lilmik opened 3 weeks ago

lilmik commented 3 weeks ago

Package: qtinterfaceframework:x64-windows@6.7.3

Host Environment

To Reproduce

vcpkg install qt

Failure logs

-- Using cached C:/vcpkg/downloads/qtinterfaceframework-4b0f0b7cf669b5be55a300ff8f5df457d4a6ec69.tar.gz
-- Cleaning sources at C:/vcpkg/buildtrees/qtinterfaceframework/src/57d4a6ec69-042ec7d83f.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/vcpkg/downloads/qtinterfaceframework-4b0f0b7cf669b5be55a300ff8f5df457d4a6ec69.tar.gz
-- Using source at C:/vcpkg/buildtrees/qtinterfaceframework/src/57d4a6ec69-042ec7d83f.clean
-- Using cached msys2-mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.5.3-3-x86_64.pkg.tar.zst.
-- Using msys root at C:/vcpkg/downloads/tools/msys2/1e74ca60daa10104
-- Using cached pypa-get-pip-24.2.tar.gz.
-- Cleaning sources at C:/vcpkg/buildtrees/qtinterfaceframework/src/24.2-36e81c02c7.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/vcpkg/downloads/pypa-get-pip-24.2.tar.gz
-- Using source at C:/vcpkg/buildtrees/qtinterfaceframework/src/24.2-36e81c02c7.clean
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: C:/vcpkg/downloads/tools/python/python-3.12.7-x64/python.exe C:/vcpkg/buildtrees/qtinterfaceframework/src/24.2-36e81c02c7.clean/public/get-pip.py --no-warn-script-location
    Working Directory: C:/vcpkg/buildtrees/qtinterfaceframework
    Error code: Access violation
    See logs for more information:

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-get-python-packages/x_vcpkg_get_python_packages.cmake:44 (vcpkg_execute_required_process)
  ports/qtinterfaceframework/portfile.cmake:18 (x_vcpkg_get_python_packages)
  scripts/ports.cmake:192 (include)
FrankXie05 commented 3 weeks ago

Please check your current vcpkg permissions. And it may also be your PowerShell version. Please keep your PowerShell version no less than 7.3.0.

DesireOverDose commented 3 weeks ago

I encountered the same issue, and then used PowerShell 7.4.5, which resolved it. Thanks.