I was building a project with vcpkg in manifest mode.
When reaching libiconv it failed in the install step because vcpkg could not locate powershell-core.
It was a fresh Windows and vcpkg setup.
The error was:
Could not find PowerShell Core. Please open an issue to report this.
When running `vcpkg install libiconv:x64-windows` on the command line vcpkg did recognize that no suitable powershell-core was installed and did download it correctly. This way libiconv was able to be built.
The upper log shows the install log from the manifest mode.
The lower log shows the call in classic mode.
Any ideas what went wrong or what I should have done differently?
C:\Users\Administrator\Desktop>call "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvarsall.bat" x64
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.9.4
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
C:\v>vcpkg install libiconv:x64-windows
Computing installation plan...
The following packages will be built and installed:
libiconv:x64-windows@1.17#3
Detecting compiler hash for triplet x64-windows...
A suitable version of powershell-core was not found (required v7.2.16) Downloading portable powershell-core 7.2.16...
Extracting powershell-core...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe
A suitable version of 7zip was not found (required v23.1.0) Downloading portable 7zip 23.1.0...
Extracting 7zip...
Restored 0 package(s) from C:\Users\Administrator\AppData\Local\vcpkg\archives in 99.5 us. Use --debug to see more details.
Restored 0 package(s) from NuGet in 797 ms. Use --debug to see more details.
Installing 1/1 libiconv:x64-windows@1.17#3...
Building libiconv:x64-windows@1.17#3...
-- Using cached libiconv-1.17.tar.gz.
-- Cleaning sources at C:/v/buildtrees/libiconv/src/v1.17-84a471678e.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/v/downloads/libiconv-1.17.tar.gz
-- Applying patch 0002-Config-for-MSVC.patch
-- Applying patch 0003-Add-export.patch
-- Applying patch 0004-ModuleFileName.patch
-- Applying patch clang-fortify.patch
-- Using source at C:/v/buildtrees/libiconv/src/v1.17-84a471678e.clean
-- Getting CMake variables for x64-windows
-- Using cached msys2-autoconf-wrapper-20221207-1-any.pkg.tar.zst.
-- Using cached msys2-automake-wrapper-20221207-2-any.pkg.tar.zst.
-- Using cached msys2-binutils-2.42-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libtool-2.4.7-3-x86_64.pkg.tar.zst.
-- Using cached msys2-make-4.4.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-pkgconf-2.1.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-which-2.21-4-x86_64.pkg.tar.zst.
-- Using cached msys2-bash-5.2.026-1-x86_64.pkg.tar.zst.
-- Using cached msys2-coreutils-8.32-5-x86_64.pkg.tar.zst.
-- Using cached msys2-file-5.45-1-x86_64.pkg.tar.zst.
-- Using cached msys2-gawk-5.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-grep-1~3.0-6-x86_64.pkg.tar.zst.
-- Using cached msys2-gzip-1.13-1-x86_64.pkg.tar.zst.
-- Using cached msys2-diffutils-3.10-1-x86_64.pkg.tar.zst.
-- Using cached msys2-sed-4.9-1-x86_64.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.10-4-x86_64.pkg.tar.zst.
-- Using cached msys2-autoconf2.71-2.71-3-any.pkg.tar.zst.
-- Using cached msys2-automake1.16-1.16.5-1-any.pkg.tar.zst.
-- Using cached msys2-libiconv-1.17-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libintl-0.22.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-zlib-1.3.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-tar-1.35-2-x86_64.pkg.tar.zst.
-- Using cached msys2-findutils-4.9.0-3-x86_64.pkg.tar.zst.
-- Using cached msys2-gmp-6.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-gcc-libs-13.2.0-2-x86_64.pkg.tar.zst.
-- Using cached msys2-libbz2-1.0.8-4-x86_64.pkg.tar.zst.
-- Using cached msys2-liblzma-5.4.6-2-x86_64.pkg.tar.zst.
-- Using cached msys2-libzstd-1.5.5-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libreadline-8.2.010-1-x86_64.pkg.tar.zst.
-- Using cached msys2-mpfr-4.2.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libpcre-8.45-4-x86_64.pkg.tar.zst.
-- Using cached msys2-m4-1.4.19-2-x86_64.pkg.tar.zst.
-- Using cached msys2-perl-5.38.2-1-x86_64.pkg.tar.zst.
-- Using cached msys2-ncurses-6.4-2-x86_64.pkg.tar.zst.
-- Using cached msys2-libxcrypt-4.4.36-1-x86_64.pkg.tar.zst.
-- Using msys root at C:/v/downloads/tools/msys2/09133458fed80fcb
-- Using cached msys2-mingw-w64-x86_64-pkgconf-1~2.1.0-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.10-4-x86_64.pkg.tar.zst.
-- Using msys root at C:/v/downloads/tools/msys2/fdbea3694fb5c0d4
-- Configuring x64-windows-dbg
-- Configuring x64-windows-rel
-- Building x64-windows-dbg
-- Installing x64-windows-dbg
-- Building x64-windows-rel
-- Installing x64-windows-rel
-- Installing: C:/v/packages/libiconv_x64-windows/share/libiconv/usage
-- Performing post-build validation
Uploading binaries for 'libiconv:x64-windows' to 'NuGet config' source "C:\Tools\NuGet.Config".
Stored binaries in 2 destinations in 2.2 s.
Elapsed time to handle libiconv:x64-windows: 4.7 min
libiconv:x64-windows package ABI: 3bb6ac73adb5b9a9f9be9d4a33528b17ef8c227a004a68e62f8c1714dc1e6aa2
Total install time: 4.7 min
The package libiconv provides CMake targets:
find_package(Iconv)
target_link_libraries(main PRIVATE Iconv::Iconv)
Operating system
Windows
Compiler
MSVC
Steps to reproduce the behavior
Failure logs
Manifest mode logs
Classic mode logs
Additional context
No response