microsoft / vcpkg

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

[glib] Build error on x64-windows #41869

Open vipcxj opened 3 weeks ago

vipcxj commented 3 weeks ago

Package: glib:x64-windows@2.80.0#1

Host Environment

To Reproduce

vcpkg install Failure logs

-- Found Python version '3.12.7 at D:/vcpkg/downloads/tools/python/python-3.12.7-x64/python.exe'
-- Using meson: D:/vcpkg/downloads/tools/meson-1.6.0-ac58a9/meson.py
-- Using cached glib-2.80.0.tar.xz.
-- Cleaning sources at D:/vcpkg/buildtrees/glib/src/glib-2-0931cd8d4d.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/vcpkg/downloads/glib-2.80.0.tar.xz
-- Applying patch use-libiconv-on-windows.patch
-- Applying patch libintl.patch
-- Applying patch 0005-pr-4133-4143-avoid-package-packaging.patch
-- Using source at D:/vcpkg/buildtrees/glib/src/glib-2-0931cd8d4d.clean
-- Using cached msys2-mingw-w64-x86_64-pkgconf-1~2.3.0-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst.
-- Using msys root at D:/vcpkg/downloads/tools/msys2/21caed2f81ec917b
-- Configuring x64-windows-dbg
-- Getting CMake variables for x64-windows
-- Configuring x64-windows-dbg done
-- Configuring x64-windows-rel
-- Configuring x64-windows-rel done
-- Package x64-windows-dbg
-- find python at D:/vcpkg/downloads/tools/python/python-3.12.7-x64
-- set env PYTHONHOME to D:/vcpkg/downloads/tools/python/python-3.12.7-x64
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: D:/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe install -v
    Working Directory: D:/vcpkg/buildtrees/glib/x64-windows-dbg
    Error code: 1
    See logs for more information:
      D:\vcpkg\buildtrees\glib\package-x64-windows-dbg-out.log

Call Stack (most recent call first):
  D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/share/vcpkg-tool-meson/vcpkg_install_meson.cmake:38 (vcpkg_execute_required_process)
  C:/Users/vipcx/AppData/Local/vcpkg/registries/git-trees/3898752019d0ae61bd13a758b603325c152aec87/portfile.cmake:59 (vcpkg_install_meson)
  scripts/ports.cmake:192 (include)
D:\vcpkg\buildtrees\glib\package-x64-windows-dbg-out.log ``` [1/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:/vcpkg/buildtrees/glib/src/glib-2-0931cd8d4d.clean/tools/gen-visibility-macros.py" "2.80.0" "visibility-macros" "GLIB" "glib/glib-visibility.h" [2/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "../src/glib-2-0931cd8d4d.clean/gio/data-to-c.py" "../src/glib-2-0931cd8d4d.clean/gio/../glib/gconstructor.h" "gconstructor_code" "gio/gconstructor_as_data.h" [3/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:/vcpkg/buildtrees/glib/src/glib-2-0931cd8d4d.clean/tools/gen-visibility-macros.py" "2.80.0" "visibility-macros" "GI" "girepository/gi-visibility.h" [4/661] "C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/rc.exe" "-c65001" "-DWIN32" "-D_DEBUG" "/nologo" "/foglib/glib_glib.rc_glib.res" "glib/glib.rc" [5/661] "C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/rc.exe" "-c65001" "-DWIN32" "-D_DEBUG" "/nologo" "/fogobject/gobject_gobject.rc_gobject.res" "gobject/gobject.rc" [6/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:/vcpkg/buildtrees/glib/src/glib-2-0931cd8d4d.clean/tools/gen-visibility-macros.py" "2.80.0" "visibility-macros" "GOBJECT" "gobject/gobject-visibility.h" [7/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:/vcpkg/buildtrees/glib/src/glib-2-0931cd8d4d.clean/tools/gen-visibility-macros.py" "2.80.0" "visibility-macros" "GMODULE" "gmodule/gmodule-visibility.h" [8/661] "C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/rc.exe" "-c65001" "-DWIN32" "-D_DEBUG" "/nologo" "/fogmodule/gmodule_gmodule.rc_gmodule.res" "gmodule/gmodule.rc" [9/661] "C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/rc.exe" "-c65001" "-DWIN32" "-D_DEBUG" "/nologo" "/fogthread/gthread_gthread.rc_gthread.res" "gthread/gthread.rc" [10/661] "C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/rc.exe" "-c65001" "-DWIN32" "-D_DEBUG" "/nologo" "/fogio/gio_gio.rc_gio.res" "gio/gio.rc" [11/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/be@latin/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/be@latin.po" [12/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:/vcpkg/buildtrees/glib/src/glib-2-0931cd8d4d.clean/tools/gen-visibility-macros.py" "2.80.0" "visibility-macros" "GIO" "gio/gio-visibility.h" [13/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/af/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/af.po" [14/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/be/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/be.po" [15/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/ast/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/ast.po" [16/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/an/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/an.po" [17/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/az/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/az.po" [18/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:/vcpkg/downloads/tools/meson-1.6.0-ac58a9/meson.py" "--internal" "copy" "../src/glib-2-0931cd8d4d.clean/gio/gdbus-2.0/codegen/codegen_rst.py" "gio/gdbus-2.0/codegen/codegen_rst.py" [19/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:/vcpkg/downloads/tools/meson-1.6.0-ac58a9/meson.py" "--internal" "copy" "../src/glib-2-0931cd8d4d.clean/gio/gdbus-2.0/codegen/codegen.py" "gio/gdbus-2.0/codegen/codegen.py" [20/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:/vcpkg/downloads/tools/meson-1.6.0-ac58a9/meson.py" "--internal" "copy" "../src/glib-2-0931cd8d4d.clean/gio/gdbus-2.0/codegen/__init__.py" "gio/gdbus-2.0/codegen/__init__.py" [21/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:/vcpkg/downloads/tools/meson-1.6.0-ac58a9/meson.py" "--internal" "copy" "../src/glib-2-0931cd8d4d.clean/gio/gdbus-2.0/codegen/codegen_md.py" "gio/gdbus-2.0/codegen/codegen_md.py" [22/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:/vcpkg/downloads/tools/meson-1.6.0-ac58a9/meson.py" "--internal" "copy" "../src/glib-2-0931cd8d4d.clean/gio/gdbus-2.0/codegen/parser.py" "gio/gdbus-2.0/codegen/parser.py" [23/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/en_CA/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/en_CA.po" [24/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/am/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/am.po" [25/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/ar/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/ar.po" [26/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:/vcpkg/downloads/tools/meson-1.6.0-ac58a9/meson.py" "--internal" "copy" "../src/glib-2-0931cd8d4d.clean/gio/gdbus-2.0/codegen/utils.py" "gio/gdbus-2.0/codegen/utils.py" [27/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/as/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/as.po" [28/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:/vcpkg/downloads/tools/meson-1.6.0-ac58a9/meson.py" "--internal" "copy" "../src/glib-2-0931cd8d4d.clean/gio/gdbus-2.0/codegen/codegen_main.py" "gio/gdbus-2.0/codegen/codegen_main.py" [29/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:/vcpkg/downloads/tools/meson-1.6.0-ac58a9/meson.py" "--internal" "copy" "../src/glib-2-0931cd8d4d.clean/gio/gdbus-2.0/codegen/codegen_docbook.py" "gio/gdbus-2.0/codegen/codegen_docbook.py" [30/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:/vcpkg/downloads/tools/meson-1.6.0-ac58a9/meson.py" "--internal" "copy" "../src/glib-2-0931cd8d4d.clean/gio/gdbus-2.0/codegen/dbustypes.py" "gio/gdbus-2.0/codegen/dbustypes.py" [31/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/ab/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/ab.po" [32/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/bg/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/bg.po" [33/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/bs/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/bs.po" [34/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/dz/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/dz.po" [35/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/da/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/da.po" [36/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/de/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/de.po" [37/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/cy/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/cy.po" [38/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/ca@valencia/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/ca@valencia.po" [39/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/cs/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/cs.po" [40/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/bn/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/bn.po" [41/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/en@shaw/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/en@shaw.po" [42/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/ca/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/ca.po" [43/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/bn_IN/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/bn_IN.po" [44/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/eu/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/eu.po" [45/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/el/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/el.po" [46/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/eo/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/eo.po" [47/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/es/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/es.po" [48/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:\vcpkg\downloads\tools\meson-1.6.0-ac58a9\meson.py" "--internal" "exe" "--capture" "gobject\glib-enumtypes.h" "--" "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "gobject/glib-mkenums" "--template" "../src/glib-2-0931cd8d4d.clean/gobject/glib-enumtypes.h.template" "../src/glib-2-0931cd8d4d.clean/gobject/../glib/gunicode.h" [49/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/fi/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/fi.po" [50/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/fa/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/fa.po" [51/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "gio/gdbus-2.0/codegen/gdbus-codegen" "--interface-prefix" "org." "--output-directory" "gio" "--generate-c-code" "gdbus-daemon-generated" "--c-namespace" "_G" "../src/glib-2-0931cd8d4d.clean/gio/dbus-daemon.xml" FAILED: gio/gdbus-daemon-generated.h gio/gdbus-daemon-generated.c "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "gio/gdbus-2.0/codegen/gdbus-codegen" "--interface-prefix" "org." "--output-directory" "gio" "--generate-c-code" "gdbus-daemon-generated" "--c-namespace" "_G" "../src/glib-2-0931cd8d4d.clean/gio/dbus-daemon.xml" Traceback (most recent call last): File "D:\vcpkg\buildtrees\glib\x64-windows-dbg\gio\gdbus-2.0\codegen\gdbus-codegen", line 53, in from codegen import codegen_main File "D:\vcpkg\buildtrees\glib\x64-windows-dbg\gio\gdbus-2.0\codegen\codegen_main.py", line 31, in from . import parser File "D:\vcpkg\buildtrees\glib\x64-windows-dbg\gio\gdbus-2.0\codegen\parser.py", line 22, in import xml.parsers.expat File "xml\parsers\expat.py", line 4, in ImportError: DLL load failed while importing pyexpat: Ҳ ָ ģ 顣 [52/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/ga/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/ga.po" [53/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/fur/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/fur.po" [54/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/fr/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/fr.po" [55/661] "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe" "-DWIN32" "-D_WINDOWS" "-utf-8" "-MP" "-D_DEBUG" "-MDd" "-Z7" "-Ob0" "-Od" "-RTC1" "-Iglib\libcharset\libcharset.a.p" "-Iglib\libcharset" "-I..\src\glib-2-0931cd8d4d.clean\glib\libcharset" "-I." "-I..\src\glib-2-0931cd8d4d.clean" "-ID:/projects/conference-go-client/build/vcpkg_installed/x64-windows/include" "/MDd" "/nologo" "/showIncludes" "/utf-8" "/W4" "/Zi" "/FIglib/msvc_recommended_pragmas.h" "/utf-8" "-D_GNU_SOURCE" "-DUNICODE" "-D_UNICODE" "-DG_DISABLE_CAST_CHECKS" "/wo4057" "/wd4068" "/wo4090" "/wd4100" "/wd4116" "/wo4125" "/wd4127" "/wd4146" "/wd4152" "/wd4201" "/wd4232" "/wo4245" "/wo4267" "/wd4334" "/wo4389" "/wo4702" "/wd4706" "-nologo" "-DWIN32" "-D_WINDOWS" "-utf-8" "-MP" "-D_DEBUG" "-MDd" "-Z7" "-Ob0" "-Od" "-RTC1" "-DGLIB_CHARSETALIAS_DIR=\"D:/vcpkg/packages/glib_x64-windows/debug/lib\"" "/Fdglib\libcharset\libcharset.a.p\localcharset.c.pdb" /Foglib/libcharset/libcharset.a.p/localcharset.c.obj "/c" ../src/glib-2-0931cd8d4d.clean/glib/libcharset/localcharset.c cl : Command line warning D9025 : overriding '/Z7' with '/Zi' cl : Command line warning D9025 : overriding '/Zi' with '/Z7' [56/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/et/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/et.po" [57/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/en_GB/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/en_GB.po" [58/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/ie/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/ie.po" [59/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/hu/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/hu.po" [60/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/id/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/id.po" [61/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/hy/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/hy.po" [62/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/he/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/he.po" [63/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/gd/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/gd.po" [64/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/hr/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/hr.po" [65/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/hi/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/hi.po" [66/661] "D:/projects/conference-go-client/build/vcpkg_installed/x64-windows/tools/gettext/bin\msgfmt.EXE" "-o" "po/gl/LC_MESSAGES/glib20.mo" "../src/glib-2-0931cd8d4d.clean/po/gl.po" [67/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:\vcpkg\downloads\tools\meson-1.6.0-ac58a9\meson.py" "--internal" "exe" "--capture" "gobject\glib-enumtypes.c" "--" "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "gobject/glib-mkenums" "--template" "../src/glib-2-0931cd8d4d.clean/gobject/glib-enumtypes.c.template" "../src/glib-2-0931cd8d4d.clean/gobject/../glib/gunicode.h" [68/661] "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "D:\vcpkg\downloads\tools\meson-1.6.0-ac58a9\meson.py" "--internal" "exe" "--capture" "gio\gioenumtypes.h" "--" "D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "gobject/glib-mkenums" "--template" "../src/glib-2-0931cd8d4d.clean/gio/gioenumtypes.h.template" "../src/glib-2-0931cd8d4d.clean/gio/gappinfo.h" "../src/glib-2-0931cd8d4d.clean/gio/gasyncinitable.h" "../src/glib-2-0931cd8d4d.clean/gio/gasyncresult.h" "../src/glib-2-0931cd8d4d.clean/gio/gbufferedinputstream.h" "../src/glib-2-0931cd8d4d.clean/gio/gbufferedoutputstream.h" "../src/glib-2-0931cd8d4d.clean/gio/gbytesicon.h" "../src/glib-2-0931cd8d4d.clean/gio/gcancellable.h" "../src/glib-2-0931cd8d4d.clean/gio/gcontenttype.h" "../src/glib-2-0931cd8d4d.clean/gio/gcharsetconverter.h" "../src/glib-2-0931cd8d4d.clean/gio/gconverter.h" "../src/glib-2-0931cd8d4d.clean/gio/gconverterinputstream.h" "../src/glib-2-0931cd8d4d.clean/gio/gconverteroutputstream.h" "../src/glib-2-0931cd8d4d.clean/gio/gdatagrambased.h" "../src/glib-2-0931cd8d4d.clean/gio/gdatainputstream.h" "../src/glib-2-0931cd8d4d.clean/gio/gdataoutputstream.h" "../src/glib-2-0931cd8d4d.clean/gio/gdebugcontroller.h" "../src/glib-2-0931cd8d4d.clean/gio/gdebugcontrollerdbus.h" "../src/glib-2-0931cd8d4d.clean/gio/gdrive.h" "../src/glib-2-0931cd8d4d.clean/gio/gemblem.h" "../src/glib-2-0931cd8d4d.clean/gio/gemblemedicon.h" "../src/glib-2-0931cd8d4d.clean/gio/gfile.h" "../src/glib-2-0931cd8d4d.clean/gio/gfileattribute.h" "../src/glib-2-0931cd8d4d.clean/gio/gfileenumerator.h" "../src/glib-2-0931cd8d4d.clean/gio/gfileicon.h" "../src/glib-2-0931cd8d4d.clean/gio/gfileinfo.h" "../src/glib-2-0931cd8d4d.clean/gio/gfileinputstream.h" "../src/glib-2-0931cd8d4d.clean/gio/gfilemonitor.h" "../src/glib-2-0931cd8d4d.clean/gio/gfilenamecompleter.h" "../src/glib-2-0931cd8d4d.clean/gio/gfileoutputstream.h" "../src/glib-2-0931cd8d4d.clean/gio/gfileiostream.h" "../src/glib-2-0931cd8d4d.clean/gio/gfilterinputstream.h" "../src/glib-2-0931cd8d4d.clean/gio/gfilteroutputstream.h" "../src/glib-2-0931cd8d4d.clean/gio/gicon.h" "../src/glib-2-0931cd8d4d.clean/gio/ginetaddress.h" "../src/glib-2-0931cd8d4d.clean/gio/ginetaddressmask.h" "../src/glib-2-0931cd8d4d.clean/gio/ginetsocketaddress.h" "../src/glib-2-0931cd8d4d.clean/gio/ginitable.h" "../src/glib-2-0931cd8d4d.clean/gio/ginputstream.h" "../src/glib-2-0931cd8d4d.clean/gio/gio.h" "../src/glib-2-0931cd8d4d.clean/gio/gio-autocleanups.h" "../src/glib-2-0931cd8d4d.clean/gio/gioenums.h" "../src/glib-2-0931cd8d4d.clean/gio/gioerror.h" "../src/glib-2-0931cd8d4d.clean/gio/giomodule.h" "../src/glib-2-0931cd8d4d.clean/gio/gioscheduler.h" "../src/glib-2-0931cd8d4d.clean/gio/giostream.h" "../src/glib-2-0931cd8d4d.clean/gio/giotypes.h" "../src/glib-2-0931cd8d4d.clean/gio/gloadableicon.h" "../src/glib-2-0931cd8d4d.clean/gio/gmount.h" "../src/glib-2-0931cd8d4d.clean/gio/gmemoryinputstream.h" "../src/glib-2-0931cd8d4d.clean/gio/gmemorymonitor.h" "../src/glib-2-0931cd8d4d.clean/gio/gmemoryoutputstream.h" "../src/glib-2-0931cd8d4d.clean/gio/gmountoperation.h" "../src/glib-2-0931cd8d4d.clean/gio/gnativesocketaddress.h" "../src/glib-2-0931cd8d4d.clean/gio/gnativevolumemonitor.h" "../src/glib-2-0931cd8d4d.clean/gio/gnetworkaddress.h" "../src/glib-2-0931cd8d4d.clean/gio/gnetworkmonitor.h" "../src/glib-2-0931cd8d4d.clean/gio/gnetworkservice.h" "../src/glib-2-0931cd8d4d.clean/gio/goutputstream.h" "../src/glib-2-0931cd8d4d.clean/gio/gpermission.h" "../src/glib-2-0931cd8d4d.clean/gio/gpollableinputstream.h" "../src/glib-2-0931cd8d4d.clean/gio/gpollableoutputstream.h" "../src/glib-2-0931cd8d4d.clean/gio/gpollableutils.h" "../src/glib-2-0931cd8d4d.clean/gio/gpowerprofilemonitor.h" "../src/glib-2-0931cd8d4d.clean/gio/gproxy.h" "../src/glib-2-0931cd8d4d.clean/gio/gproxyaddress.h" "../src/glib-2-0931cd8d4d.clean/gio/gproxyaddressenumerator.h" "../src/glib-2-0931cd8d4d.clean/gio/gproxyresolver.h" "../src/glib-2-0931cd8d4d.clean/gio/gresolver.h" "../src/glib-2-0931cd8d4d.clean/gio/gresource.h" "../src/glib-2-0931cd8d4d.clean/gio/gseekable.h" "../src/glib-2-0931cd8d4d.clean/gio/gsimpleasyncresult.h" "../src/glib-2-0931cd8d4d.clean/gio/gsimpleiostream.h" "../src/glib-2-0931cd8d4d.clean/gio/gsimplepermission.h" "../src/glib-2-0931cd8d4d.clean/gio/gsimpleproxyresolver.h" "../src/glib-2-0931cd8d4d.clean/gio/gsocket.h" "../src/glib-2-0931cd8d4d.clean/gio/gsocketaddress.h" "../src/glib-2-0931cd8d4d.clean/gio/gsocketaddressenumerator.h" "../src/glib-2-0931cd8d4d.clean/gio/gsocketclient.h" "../src/glib-2-0931cd8d4d.clean/gio/gsocketconnectable.h" "../src/glib-2-0931cd8d4d.clean/gio/gsocketconnection.h" "../src/glib-2-0931cd8d4d.clean/gio/gsocketcontrolmessage.h" "../src/glib-2-0931cd8d4d.clean/gio/gsocketlistener.h" "../src/glib-2-0931cd8d4d.clean/gio/gsocketservice.h" "../src/glib-2-0931cd8d4d.clean/gio/gsrvtarget.h" "../src/glib-2-0931cd8d4d.clean/gio/gsubprocess.h" "../src/glib-2-0931cd8d4d.clean/gio/gsubprocesslauncher.h" "../src/glib-2-0931cd8d4d.clean/gio/gtask.h" "../src/glib-2-0931cd8d4d.clean/gio/gtcpconnection.h" "../src/glib-2-0931cd8d4d.clean/gio/gtcpwrapperconnection.h" "../src/glib-2-0931cd8d4d.clean/gio/gthemedicon.h" "../src/glib-2-0931cd8d4d.clean/gio/gthreadedsocketservice.h" "../src/glib-2-0931cd8d4d.clean/gio/gtlsbackend.h" "../src/glib-2-0931cd8d4d.clean/gio/gtlscertificate.h" "../src/glib-2-0931cd8d4d.clean/gio/gtlsclientconnection.h" "../src/glib-2-0931cd8d4d.clean/gio/gtlsconnection.h" "../src/glib-2-0931cd8d4d.clean/gio/gtlsdatabase.h" "../src/glib-2-0931cd8d4d.clean/gio/gtlsfiledatabase.h" "../src/glib-2-0931cd8d4d.clean/gio/gtlsinteraction.h" "../src/glib-2-0931cd8d4d.clean/gio/gtlspassword.h" "../src/glib-2-0931cd8d4d.clean/gio/gtlsserverconnection.h" "../src/glib-2-0931cd8d4d.clean/gio/gdtlsconnection.h" "../src/glib-2-0931cd8d4d.clean/gio/gdtlsclientconnection.h" "../src/glib-2-0931cd8d4d.clean/gio/gdtlsserverconnection.h" "../src/glib-2-0931cd8d4d.clean/gio/gunixconnection.h" "../src/glib-2-0931cd8d4d.clean/gio/gunixcredentialsmessage.h" "../src/glib-2-0931cd8d4d.clean/gio/gunixfdlist.h" "../src/glib-2-0931cd8d4d.clean/gio/gunixsocketaddress.h" "../src/glib-2-0931cd8d4d.clean/gio/gvfs.h" "../src/glib-2-0931cd8d4d.clean/gio/gvolume.h" "../src/glib-2-0931cd8d4d.clean/gio/gvolumemonitor.h" "../src/glib-2-0931cd8d4d.clean/gio/gzlibcompressor.h" "../src/glib-2-0931cd8d4d.clean/gio/gzlibdecompressor.h" "../src/glib-2-0931cd8d4d.clean/gio/glistmodel.h" "../src/glib-2-0931cd8d4d.clean/gio/gliststore.h" "../src/glib-2-0931cd8d4d.clean/gio/gapplication.h" "../src/glib-2-0931cd8d4d.clean/gio/gapplicationcommandline.h" "../src/glib-2-0931cd8d4d.clean/gio/gactiongroup.h" "../src/glib-2-0931cd8d4d.clean/gio/gactionmap.h" "../src/glib-2-0931cd8d4d.clean/gio/gsimpleactiongroup.h" "../src/glib-2-0931cd8d4d.clean/gio/gremoteactiongroup.h" "../src/glib-2-0931cd8d4d.clean/gio/gactiongroupexporter.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusactiongroup.h" "../src/glib-2-0931cd8d4d.clean/gio/gaction.h" "../src/glib-2-0931cd8d4d.clean/gio/gpropertyaction.h" "../src/glib-2-0931cd8d4d.clean/gio/gsimpleaction.h" "../src/glib-2-0931cd8d4d.clean/gio/gmenumodel.h" "../src/glib-2-0931cd8d4d.clean/gio/gmenu.h" "../src/glib-2-0931cd8d4d.clean/gio/gmenuexporter.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusmenumodel.h" "../src/glib-2-0931cd8d4d.clean/gio/gnotification.h" "../src/glib-2-0931cd8d4d.clean/gio/gsettingsbackend.h" "../src/glib-2-0931cd8d4d.clean/gio/gsettingsschema.h" "../src/glib-2-0931cd8d4d.clean/gio/gsettings.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusauthobserver.h" "../src/glib-2-0931cd8d4d.clean/gio/gcredentials.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusutils.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbuserror.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusaddress.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusconnection.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusmessage.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusnameowning.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusnamewatching.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusproxy.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusintrospection.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusmethodinvocation.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusserver.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusinterface.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusinterfaceskeleton.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusobject.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusobjectskeleton.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusobjectproxy.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusobjectmanager.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusobjectmanagerclient.h" "../src/glib-2-0931cd8d4d.clean/gio/gdbusobjectmanagerserver.h" "../src/glib-2-0931cd8d4d.clean/gio/gtestdbus.h" "gio/gnetworking.h" ninja: build stopped: subcommand failed. ```

Additional context

vcpkg.json ``` { "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", "name": "cgclient", "version": "0.1.0", "dependencies": [ "asiochan", "boost-asio", "boost-beast", "boost-core", "boost-uuid", "boost-circular-buffer", "boost-algorithm", "boost-url", "yamc", "cuda", "cuda-api-wrappers", "fmt", "cpptrace", "spdlog", "nlohmann-json", "libuvc", { "name": "opencv", "features": [ "ffmpeg" ] }, { "name": "ffmpeg", "features": [ "swscale", "x264", "x265", "nvcodec" ] }, { "name": "libdatachannel", "features": [ "srtp" ] }, { "name": "gstreamer", "features": [ "plugins-good", "nvcodec" ] }, "gtest", { "name": "libunwind", "platform": "linux" } ] } ```

After digging deeper, I realized that it was a problem with python's sys.path. According to the log above, the command that went wrong was

"D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "gio/gdbus-2.0/codegen/gdbus-codegen" "--interface-prefix" "org." "-- output-directory" "gio" "--generate-c-code" "gdbus-daemon-generated" "--c-namespace" "_G" "... /src/glib-2-0931cd8d4d.clean/gio/dbus-daemon.xml"

I cd to the build directory and execute D:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe to get into the interactive environment of python. Execute

import pyexpat

Repeated the same error. Then I cd to "D:\vcpkg\downloads\tools\python\python-3.12.7-x64" and execute python again to get into the interactive environment of python. Execute

import pyexpat

The error disappeared. After that, I was able to reproduce the error by locating a random directory different from "D:\vcpkg\downloads\tools\python\python-3.12.7-x64". After consulting the python documentation, I found that setting both PYTHONHOME and PYTHONPATH can affect sys.path. I tried changing PYTHONHOME and PYTHONPATH to "D:\vcpkg\downloads\tools\python\ python-3.12.7-x64", and found that only changing PYTHONHOME can fix the error. So far I have found a solution. But now I'm facing a new problem, how to pass the modified PYTHONHOME to ninja. after googling, I found out that ninja doesn't support environment variables, and I changed the environment variables in vcpkg_install_meson.cmake, but still no effect!

By the way, if not set PYTHONHOME, my sys.path is

['', 'D:\\vcpkg\\downloads\\tools\\python\\python-3.12.7-x64\\python312.zip', 'C:\\Users\\vipcx\\miniforge3\\Lib', 'C:\\Users\\vipcx\\miniforge3\\DLLs', 'C:\\Python312\\Lib', 'C:\\Python312\\DLLs', 'D:\\vcpkg\\downloads\\tools\\python\\python-3.12.7-x64', 'D:\\vcpkg\\downloads\\tools\\python\\python-3.12.7-x64\\Lib']

After set PYTHONHOME, my sys.path is

['', 'D:\\vcpkg\\downloads\\tools\\python\\python-3.12.7-x64\\python312.zip', 'D:\\vcpkg\\downloads\\tools\\python\\python-3.12.7-x64\\DLLs', 'D:\\vcpkg\\downloads\\tools\\python\\python-3.12.7-x64\\Lib', 'D:\\vcpkg\\downloads\\tools\\python\\python-3.12.7-x64']

So I think the problem is by default my global python is detected, and usd by meson.

update: Changing the environment variable PYTHONHOME in vcpkg_install_meson.cmake works

        vcpkg_find_acquire_program(PYTHON3)
        get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
        set(ENV{PYTHONHOME} ${PYTHON3_DIR})
        vcpkg_execute_required_process(
            COMMAND "${NINJA}" install -v
            WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-${short_buildtype}"
            LOGNAME package-${TARGET_TRIPLET}-${short_buildtype}
        )

vcpkg_configure_meson.cmake should be changed as well

vipcxj commented 3 weeks ago

I don't think vcpkg builds should be affected by the host machine's python installation, you can't ask everyone using vcpkg to uninstall their local python environment