microsoft / vcpkg

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

[python3] Build error on x64-mingw-static #38119

Open Bloody-cpp opened 4 months ago

Bloody-cpp commented 4 months ago

Package: python3:x64-mingw-static@3.11.8#1

Host Environment

To Reproduce

vcpkg install boost --allow-unsupported Failure logs

-- Downloading https://github.com/python/cpython/archive/v3.11.8.tar.gz -> python-cpython-v3.11.8.tar.gz...
-- Extracting source C:/Data/C++/vcpkg/downloads/python-cpython-v3.11.8.tar.gz
-- Applying patch 0001-only-build-required-projects.patch
-- Applying patch 0003-use-vcpkg-zlib.patch
-- Applying patch 0004-devendor-external-dependencies.patch
-- Applying patch 0005-dont-copy-vcruntime.patch
-- Applying patch 0008-python.pc.patch
-- Applying patch 0010-dont-skip-rpath.patch
-- Applying patch 0012-force-disable-modules.patch
-- Applying patch 0014-fix-get-python-inc-output.patch
-- Applying patch 0015-dont-use-WINDOWS-def.patch
-- Applying patch 0016-undup-ffi-symbols.patch
-- Applying patch 0018-fix-sysconfig-include.patch
-- Applying patch 0002-static-library.patch
-- Applying patch 0017-fix-win.patch
-- Using source at C:/Data/C++/vcpkg/buildtrees/python3/src/v3.11.8-fd93e58c1e.clean
-- WARNING: Static builds of Python will not have C extension modules available.
-- Found external ninja('1.11.1').
-- Getting CMake variables for x64-mingw-static
-- Building PCbuild/pcbuild.proj for Release
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: msbuild C:/Data/C++/vcpkg/buildtrees/python3/x64-mingw-static-rel/PCbuild/pcbuild.proj /p:Configuration=Release /p:IncludeExtensions=false /p:IncludeExternals=false /p:IncludeTests=false /p:ForceImportBeforeCppTargets=C:/Data/C++/vcpkg/buildtrees/python3/src/v3.11.8-fd93e58c1e.clean/PCbuild/python_vcpkg.props /p:IncludeUwp=false /p:_VcpkgPythonLinkage=StaticLibrary /p:ForceImportAfterCppProps=C:/Data/C++/vcpkg/buildtrees/python3/x64-mingw-static/vcpkg_msbuild.props /p:ForceImportAfterCppTargets=C:/Data/C++/vcpkg/buildtrees/python3/x64-mingw-static/vcpkg_msbuild.targets /t:Rebuild /p:UseMultiToolTask=true /p:MultiProcMaxCount=13 /p:EnforceProcessCountAcrossBuilds=true /m:13 -maxCpuCount:13 /p:Platform=x64 /p:PlatformTarget=x64 /p:PlatformToolset=external /p:WindowsTargetPlatformVersion= /p:VcpkgApplocalDeps=false /p:VcpkgManifestInstall=false /p:VcpkgManifestEnabled=false /p:VcpkgEnabled=false /p:VcpkgTriplet=x64-mingw-static /p:VcpkgInstalledDir=C:/Data/C++/vcpkg/installed /p:WholeProgramOptimization=false
    Working Directory: C:/Data/C++/vcpkg/buildtrees/python3/x64-mingw-static-rel
    Error code: no such file or directory
    See logs for more information:

Call Stack (most recent call first):
  installed/x64-mingw-static/share/vcpkg-msbuild/vcpkg_msbuild_install.cmake:108 (vcpkg_execute_required_process)
  ports/python3/portfile.cmake:176 (vcpkg_msbuild_install)
  scripts/ports.cmake:175 (include)
Osyotr commented 4 months ago

It's simply unsupported https://github.com/python/cpython/issues/89701

Bloody-cpp commented 4 months ago

It's simply unsupported https://github.com/python/cpython/issues/89701

sooo, how i can build boost?

Osyotr commented 4 months ago

Don't build all of boost. Use only libraries you need, for example boost-beast, boost-filesystem, etc.