microsoft / microsoft/vcpkg

[glib] Build error on x64-mingw-dynamic

Open
#46,232 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
CMake
Stars
27.5k
Forks
7.7k
Avg merge
2d 19h
Merged PRs (30d)
321

Description

Package: glib:x64-mingw-dynamic@2.84.2#1

**Host Environment**

- Host: x64-windows
- Compiler: GNU 4.9.2
- vcpkg-tool version: 2025-06-02-145689e84b7637525510e2c9b4ee603fda046b56
vcpkg-scripts version: f2bf7d935a 2025-06-18 (11 days ago)

**To Reproduce**

`vcpkg install glib:x64-mingw-dynamic`

**Failure logs**

```
-- Found Python version '3.12.7 at C:/Dev/vcpkg/downloads/tools/python/python-3.12.7-x64-1/python.exe'
-- Using meson: C:/Dev/vcpkg/downloads/tools/meson-1.7.2-549ef7/meson.py
-- Using cached glib-2.84.2.tar.xz
-- Cleaning sources at C:/Dev/vcpkg/buildtrees/glib/src/glib-2-2240d0273c.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Dev/vcpkg/downloads/glib-2.84.2.tar.xz
-- Applying patch use-libiconv-on-windows.patch
-- Applying patch libintl.patch
-- Using source at C:/Dev/vcpkg/buildtrees/glib/src/glib-2-2240d0273c.clean
CMake Warning at scripts/cmake/vcpkg_replace_string.cmake:17 (message):
vcpkg_replace_string made no changes.
Call Stack (most recent call first):
ports/glib/portfile.cmake:17 (vcpkg_replace_string)
scripts/ports.cmake:206 (include)

CMake Warning at scripts/cmake/vcpkg_replace_string.cmake:17 (message):
vcpkg_replace_string made no changes.
Call Stack (most recent call first):
ports/glib/portfile.cmake:20 (vcpkg_replace_string)
scripts/ports.cmake:206 (include)

-- OM Patching Meson for ninja install compatibility
-- Using cached msys2-mingw-w64-x86_64-pkgconf-1~2.4.3-1-any.pkg.tar.zst
-- Using cached msys2-msys2-runtime-3.6.2-2-x86_64.pkg.tar.zst
-- Using msys root at C:/Dev/vcpkg/downloads/tools/msys2/9272adbcaf19caef
-- Configuring x64-mingw-dynamic-dbg
-- Getting CMake variables for x64-mingw-dynamic
-- Loading CMake variables from C:/Dev/vcpkg/buildtrees/glib/cmake-get-vars_C_CXX-x64-mingw-dynamic.cmake.log
-- Configuring x64-mingw-dynamic-dbg done
-- Configuring x64-mingw-dynamic-rel
-- Configuring x64-mingw-dynamic-rel done
-- Package x64-mingw-dynamic-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: C:/Dev/vcpkg/downloads/tools/ninja/1.12.1-windows/ninja.exe install -v
Working Directory: C:/Dev/vcpkg/buildtrees/glib/x64-mingw-dynamic-dbg
Error code: 1
See logs for more information:
C:\Dev\vcpkg\buildtrees\glib\package-x64-mingw-dynamic-dbg-err.log

Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-tool-meson/vcpkg_install_meson.cmake:33 (vcpkg_execute_required_process)
ports/glib/portfile.cmake:74 (vcpkg_install_meson)
scripts/ports.cmake:206 (include)

```

C:\Dev\vcpkg\buildtrees\glib\package-x64-mingw-dynamic-dbg-err.log

```
ninja: error: unknown target 'install'
```

Contributor guide

Open the contributing guide

Research direction

Start with ports/glib/portfile.cmake and the package-x64-mingw-dynamic-dbg-err.log, then inspect how vcpkg_install_meson invokes Ninja for the x64-mingw-dynamic build. Reproduce with `vcpkg install glib:x64-mingw-dynamic` and determine why the generated build has no `install` target. Done means the package installs successfully for this triplet.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.