microsoft / vcpkg

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

[inih] Build error on x64-windows #42021

Open jcfp0003 opened 1 week ago

jcfp0003 commented 1 week ago

Package: inih[core,cpp]:x64-windows@58

Host Environment

To Reproduce

vcpkg install inih

Failure logs

-- Downloading https://github.com/mesonbuild/meson/archive/1.6.0.tar.gz -> meson-1.6.0.tar.gz...
-- Applying patch C:/vcpkg/installed/x64-windows/share/vcpkg-tool-meson/meson-intl.patch
-- Applying patch C:/vcpkg/installed/x64-windows/share/vcpkg-tool-meson/adjust-python-dep.patch
-- Applying patch C:/vcpkg/installed/x64-windows/share/vcpkg-tool-meson/adjust-args.patch
-- Applying patch C:/vcpkg/installed/x64-windows/share/vcpkg-tool-meson/remove-freebsd-pcfile-specialization.patch
-- Downloading https://www.python.org/ftp/python/3.12.7/python-3.12.7-embed-amd64.zip -> python-3.12.7-embed-amd64.zip...
-- Found Python version '3.12.7 at C:/vcpkg/downloads/tools/python/python-3.12.7-x64/python.exe'
-- Using meson: C:/vcpkg/downloads/tools/meson-1.6.0-ac58a9/meson.py
-- Note: inih only supports static library linkage. Building static library.
-- Downloading https://github.com/benhoyt/inih/archive/r58.tar.gz -> benhoyt-inih-r58.tar.gz...
-- Extracting source C:/vcpkg/downloads/benhoyt-inih-r58.tar.gz
-- Using source at C:/vcpkg/buildtrees/inih/src/r58-2aa5ec8387.clean
-- Found external ninja('1.11.0').
-- Downloading https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.3.0-1-any.pkg.tar.zst;https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.3.0-1-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.3.0-1-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.3.0-1-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.3.0-1-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.3.0-1-any.pkg.tar.zst -> msys2-mingw-w64-x86_64-pkgconf-1~2.3.0-1-any.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst -> msys2-msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst...
-- Using msys root at C:/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
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" install -v
    Working Directory: C:/vcpkg/buildtrees/inih/x64-windows-dbg
    Error code: 1
    See logs for more information:
      C:\vcpkg\buildtrees\inih\package-x64-windows-dbg-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-tool-meson/vcpkg_install_meson.cmake:33 (vcpkg_execute_required_process)
  ports/inih/portfile.cmake:37 (vcpkg_install_meson)
  scripts/ports.cmake:192 (include)
C:\vcpkg\buildtrees\inih\package-x64-windows-dbg-out.log ``` [1/5] "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe" "-DWIN32" "-D_WINDOWS" "-utf-8" "-MP" "-D_DEBUG" "-MDd" "-Z7" "-Ob0" "-Od" "-RTC1" "-Ilibinih.a.p" "-I." "-I..\src\r58-2aa5ec8387.clean" "-IC:/vcpkg/installed/x64-windows/include" "/MDd" "/nologo" "/showIncludes" "/utf-8" "/W2" "/Zi" "-nologo" "-DWIN32" "-D_WINDOWS" "-utf-8" "-MP" "-D_DEBUG" "-MDd" "-Z7" "-Ob0" "-Od" "-RTC1" "/Fdlibinih.a.p\ini.c.pdb" /Folibinih.a.p/ini.c.obj "/c" ../src/r58-2aa5ec8387.clean/ini.c cl : Command line warning D9025 : overriding '/Z7' with '/Zi' cl : Command line warning D9025 : overriding '/Zi' with '/Z7' [2/5] "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/lib.exe" "-machine:x64" "-nologo" "/NOLOGO" /MACHINE:x64 /OUT:libinih.a libinih.a.p/ini.c.obj [3/5] "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe" "-DWIN32" "-D_WINDOWS" "-utf-8" "-GR" "-EHsc" "-MP" "-D_DEBUG" "-MDd" "-Z7" "-Ob0" "-Od" "-RTC1" "-IlibINIReader.a.p" "-I." "-I..\src\r58-2aa5ec8387.clean" "-I..\src\r58-2aa5ec8387.clean\cpp" "-IC:/vcpkg/installed/x64-windows/include" "/MDd" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W2" "/EHsc" "/std:c++14" "/permissive-" "/Zi" "-nologo" "-DWIN32" "-D_WINDOWS" "-utf-8" "-GR" "-EHsc" "-MP" "-D_DEBUG" "-MDd" "-Z7" "-Ob0" "-Od" "-RTC1" "/FdlibINIReader.a.p\cpp_INIReader.cpp.pdb" /FolibINIReader.a.p/cpp_INIReader.cpp.obj "/c" ../src/r58-2aa5ec8387.clean/cpp/INIReader.cpp cl : Command line warning D9025 : overriding '/Z7' with '/Zi' cl : Command line warning D9025 : overriding '/Zi' with '/Z7' [4/5] "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/lib.exe" "-machine:x64" "-nologo" "/NOLOGO" /MACHINE:x64 /OUT:libINIReader.a libINIReader.a.p/cpp_INIReader.cpp.obj [4/5] "C:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "C:\vcpkg\downloads\tools\meson-1.6.0-ac58a9\meson.py" "install" "--no-rebuild" FAILED: meson-internal__install "C:\vcpkg\downloads\tools\python\python-3.12.7-x64\python.exe" "C:\vcpkg\downloads\tools\meson-1.6.0-ac58a9\meson.py" "install" "--no-rebuild" ninja: build stopped: subcommand failed. ```
jimwang118 commented 1 week ago

Sorry, i cannot reproduce this issue locally. Image

dg0yt commented 1 week ago

I guess this belongs into the current group of issues for "multiple versions of python available".

jcfp0003 commented 1 week ago

Reverting to 6ebf8c123bc8077dc9216db6438eeabaa154c473 (just before the python version update from 3.11.10 to 3.12.7) fixes the building issue: Image

But if I revert to the python update commit (7dcb4ca95bfde3cfca3a9f0a7e933f1d17cc4836) the issue shows up again: Image

Thanks for that guess, we can manage using the reverted head for now.