Host Environment
To Reproduce
Steps to reproduce the behavior:
.\vcpkg.exe install gtk:x64-windows
Failure logs
stdout-x64-windows:
Using cached C:/Tools/vcpkg/downloads/anholt-libepoxy-1.5.3.tar.gz
-- Extracting source C:/Tools/vcpkg/downloads/anholt-libepoxy-1.5.3.tar.gz
-- Using source at C:/Tools/vcpkg/buildtrees/libepoxy/src/1.5.3-d7b9d32fcb
-- Acquiring MSYS Packages...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
Command failed: C:/Tools/vcpkg/downloads/tools/msys2/msys64/usr/bin/bash.exe --noprofile --norc -c "pacman -Sy --noconfirm --needed pkg-config"
Working Directory: C:/Tools/vcpkg/downloads/tools/msys2
Error code: 255
See logs for more information:
C:\Tools\vcpkg\buildtrees\libepoxy\msys-pacman-x64-windows-err.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_acquire_msys.cmake:108 (vcpkg_execute_required_process)
scripts/cmake/vcpkg_configure_meson.cmake:106 (vcpkg_acquire_msys)
ports/libepoxy/portfile.cmake:12 (vcpkg_configure_meson)
scripts/ports.cmake:90 (include)
msys-pacman-x64-windows-err:
error: failed to initialize alpm library
(could not find or read directory: /var/lib/pacman/)
Additional context
VS language packs English is installed.
vcpkg new build.
It looks like the msys2/mingw tool is corrupt or was unable to download all the appropriate files.
My suggestion would be:
full access rights are given to the userid used to access the C:\Tools\vcpkg folder/files and all sub-folders/filesC:\Tools\vcpkg\downloads\tools\msys2 to _msys2.old_ and try againC:\Tools\vcpkg\downloads\tools\msys2.old folder.Hello Tim,
your suggestion was successful.
Thank you and stay healthy.
-- Stefan
Installing package libepoxy[core]:x64-windows... done
Installing package gtk[core]:x64-windows... done
Most helpful comment
It looks like the msys2/mingw tool is corrupt or was unable to download all the appropriate files.
My suggestion would be:
full accessrights are given to the userid used to access theC:\Tools\vcpkgfolder/files and all sub-folders/filesC:\Tools\vcpkg\downloads\tools\msys2to _msys2.old_ and try againC:\Tools\vcpkg\downloads\tools\msys2.oldfolder.