Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azure-storage-cpp:x64-windows build failure #12583

Closed
ashmereyna opened this issue Jul 26, 2020 · 3 comments
Closed

azure-storage-cpp:x64-windows build failure #12583

ashmereyna opened this issue Jul 26, 2020 · 3 comments

Comments

@ashmereyna
Copy link

Host Environment

  • OS: windows10
  • Compiler: Microsoft (R) C/C++ Optimizing Compiler Version 19.26.28806 for x86

To Reproduce
Steps to reproduce the behavior:
./vcpkg install azure-storage-cpp:x64-windows

Failure logs
F:\dv>.\vcpkg\vcpkg install azure-storage-cpp:x64-windows
Computing installation plan...
A suitable version of cmake was not found (required v3.17.2). Downloading portable cmake v3.17.2...
Downloading cmake...
https://github.com/Kitware/CMake/releases/download/v3.17.2/cmake-3.17.2-win32-x86.zip -> F:\dv\vcpkg\downloads\cmake-3.17.2-win32-x86.zip
Extracting cmake...
A suitable version of 7zip was not found (required v18.1.0). Downloading portable 7zip v18.1.0...
Downloading 7zip...
https://www.nuget.org/api/v2/package/7-Zip.CommandLine/18.1.0 -> F:\dv\vcpkg\downloads\7-zip.commandline.18.1.0.nupkg
Extracting 7zip...
A suitable version of nuget was not found (required v5.5.1). Downloading portable nuget v5.5.1...
Downloading nuget...
https://dist.nuget.org/win-x86-commandline/v5.5.1/nuget.exe -> F:\dv\vcpkg\downloads\22ea847d-nuget.exe
The following packages will be built and installed:

  • atlmfc[core]:x64-windows
    azure-storage-cpp[core]:x64-windows
  • brotli[core]:x64-windows
  • cpprestsdk[brotli,compression,core,default-features]:x64-windows
  • zlib[core]:x64-windows
    Additional packages (*) will be modified to complete this operation.
    Detecting compiler hash for triplet x64-windows...
    A suitable version of git was not found (required v2.26.2). Downloading portable git v2.26.2...
    Downloading git...
    https://github.com/git-for-windows/git/releases/download/v2.26.2.windows.1/PortableGit-2.26.2-32-bit.7z.exe -> F:\dv\vcpkg\downloads\PortableGit-2.26.2-32-bit.7z.exe
    Extracting git...
    A suitable version of powershell-core was not found (required v6.2.1). Downloading portable powershell-core v6.2.1...
    Downloading powershell-core...
    https://github.com/PowerShell/PowerShell/releases/download/v6.2.1/PowerShell-6.2.1-win-x86.zip -> F:\dv\vcpkg\downloads\PowerShell-6.2.1-win-x86.zip
    Extracting powershell-core...
    Starting package 1/5: atlmfc:x64-windows
    Building package atlmfc[core]:x64-windows...
    Could not locate cached archive: C:\Users\danbe\AppData\Local\vcpkg\archives\80\80f63f6fd9f2f14d01bb78a11ae08b73b2cd63b6.zip
    -- Performing post-build validation
    -- Performing post-build validation done
    Stored binary cache: C:\Users\danbe\AppData\Local\vcpkg\archives\80\80f63f6fd9f2f14d01bb78a11ae08b73b2cd63b6.zip
    Building package atlmfc[core]:x64-windows... done
    Installing package atlmfc[core]:x64-windows...
    Installing package atlmfc[core]:x64-windows... done
    Elapsed time for package atlmfc:x64-windows: 173.3 ms
    Starting package 2/5: brotli:x64-windows
    Building package brotli[core]:x64-windows...
    Using cached binary package: C:\Users\danbe\AppData\Local\vcpkg\archives\5d\5d44267b857cfe9cd6c18c987453ffb28d098967.zip
    Building package brotli[core]:x64-windows... done
    Installing package brotli[core]:x64-windows...
    Installing package brotli[core]:x64-windows... done
    Elapsed time for package brotli:x64-windows: 558.5 ms
    Starting package 3/5: zlib:x64-windows
    Building package zlib[core]:x64-windows...
    Could not locate cached archive: C:\Users\danbe\AppData\Local\vcpkg\archives\03\0351ec94d04fdb48771e041a2fd936602b3f9189.zip
    -- Downloading http://www.zlib.net/zlib-1.2.11.tar.gz...
    -- Extracting source F:/dv/vcpkg/downloads/zlib1211.tar.gz
    -- Applying patch cmake_dont_build_more_than_needed.patch
    -- Using source at F:/dv/vcpkg/buildtrees/zlib/src/1.2.11-deec42f53b.clean
    -- Configuring x64-windows
    -- Building x64-windows-dbg
    -- Building x64-windows-rel
    -- Fixing pkgconfig
    -- Acquiring MSYS2...
    -- Downloading https://sourceforge.net/projects/msys2/files/Base/x86_64/msys2-base-x86_64-20190524.tar.xz/download...
    gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
    gpg: no ultimately trusted keys found
    gpg: starting migration from earlier GnuPG versions
    gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
    gpg: migration succeeded
    gpg: Generating pacman keyring master key...
    gpg: key E95718813F093C59 marked as ultimately trusted
    gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
    gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/3D6BA53AE645DB53E11888E6E95718813F093C59.rev'
    gpg: Done
    ==> Updating trust database...
    gpg: marginals needed: 3 completes needed: 1 trust model: pgp
    gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
    ==> Appending keys from msys2.gpg...
    ==> Locally signing trusted keys in keyring...
    -> Locally signing key D55E7A6D7CE9BA1587C0ACACF40D263ECA25678A...
    -> Locally signing key 123D4D51A1793859C2BE916BBBE514E53E0D0813...
    -> Locally signing key B91BCF3303284BF90CC043CA9F418C233E652008...
    -> Locally signing key 9DD0D4217D75A33B896159E6DA7EF2ABAEEA755C...
    ==> Importing owner trust values...
    gpg: setting ownertrust to 4
    gpg: setting ownertrust to 4
    gpg: setting ownertrust to 4
    gpg: inserting ownertrust of 4
    ==> Updating trust database...
    gpg: marginals needed: 3 completes needed: 1 trust model: pgp
    gpg: depth: 0 valid: 1 signed: 4 trust: 0-, 0q, 0n, 0m, 0f, 1u
    gpg: depth: 1 valid: 4 signed: 3 trust: 0-, 0q, 0n, 4m, 0f, 0u
    gpg: depth: 2 valid: 3 signed: 0 trust: 3-, 0q, 0n, 0m, 0f, 0u
    :: Synchronizing package databases...
    downloading mingw32.db...
    downloading mingw32.db.sig...
    error: mingw32: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown
    error: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" could not be looked up remotely
    error: failed to update mingw32 (invalid or corrupted database (PGP signature))
    downloading mingw64.db...
    downloading mingw64.db.sig...
    error: mingw64: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown
    error: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" could not be looked up remotely
    error: failed to update mingw64 (invalid or corrupted database (PGP signature))
    downloading msys.db...
    downloading msys.db.sig...
    error: msys: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown
    error: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" could not be looked up remotely
    error: failed to update msys (invalid or corrupted database (PGP signature))
    error: failed to synchronize all databases
    error: mingw32: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown
    error: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" could not be looked up remotely
    error: mingw64: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown
    error: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" could not be looked up remotely
    error: msys: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown
    error: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" could not be looked up remotely
    checking dependencies...

Packages (2) rebase-4.4.4-1 dash-0.5.10.2-1

Total Removed Size: 1.12 MiB

:: Do you want to remove these packages? [Y/n]
:: Processing package changes...
removing rebase...
removing dash...
error: mingw32: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown
error: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" could not be looked up remotely
error: mingw64: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown
error: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" could not be looked up remotely
error: msys: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown
error: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" could not be looked up remotely
:: Synchronizing package databases...
downloading mingw32.db...
downloading mingw32.db.sig...
error: mingw32: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown
error: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" could not be looked up remotely
error: failed to update mingw32 (invalid or corrupted database (PGP signature))
downloading mingw64.db...
downloading mingw64.db.sig...
error: mingw64: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown
error: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" could not be looked up remotely
error: failed to update mingw64 (invalid or corrupted database (PGP signature))
downloading msys.db...
downloading msys.db.sig...
error: msys: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown
error: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" could not be looked up remotely
error: failed to update msys (invalid or corrupted database (PGP signature))
error: failed to synchronize all databases
-- Acquiring MSYS2... OK
-- Acquiring MSYS Packages...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
Command failed: F:/dv/vcpkg/downloads/tools/msys2/msys64/usr/bin/bash.exe --noprofile --norc -c "pacman -S --noconfirm --needed pkg-config"
Working Directory: F:/dv/vcpkg/downloads/tools/msys2
Error code: 1
See logs for more information:
F:\dv\vcpkg\buildtrees\zlib\msys-pacman-x64-windows-err.log
msys-pacman-x64-windows-err.log
msys-pacman-x64-windows-err.log
msys-pacman-x64-windows-err.log

Call Stack (most recent call first):
scripts/cmake/vcpkg_acquire_msys.cmake:127 (vcpkg_execute_required_process)
scripts/cmake/vcpkg_fixup_pkgconfig.cmake:281 (vcpkg_acquire_msys)
ports/zlib/portfile.cmake:46 (vcpkg_fixup_pkgconfig)
scripts/ports.cmake:79 (include)

Additional context
vcpkg.exe hangs at end. Does not exit.

@StarGate-One
Copy link
Contributor

StarGate-One commented Jul 26, 2020

See #12565 - There are 2 issues:

  1. vcpkg_fixup_pkconfig.cmake needs to be reworked - PR [vcpkg_fixup_pkgconfig] Remove required in first find_program call for pkg-config #12569 is in the works but in the mean time you can make the changes shown by myself @StarGate-One to the script found in <vcpkg-root>\scripts\cmake to temporarily fix this issue.
    vcpkg_fixup_pkgconfig.cmake.txt

  2. vcpkg_acquire_msys.cmake needs to have the MSYS/mingw crypto keyrings added, @ImmaturityRules has attached a copy to this same issue which fix this issue, but a PR needs to be done with those changes. You can download dthe file and put it in the same location <vcpkg-root>\scripts\cmake to temporarily fix this issue.
    vcpkg_acquire_msys.cmake.txt

I have attached a copy of both, download, remove the .txt extension and copy to <vcpkg-root>\scripts\cmake folder and it should work.

@ashmereyna
Copy link
Author

Thanks so much, that worked.
I had to start with a new vcpkg install because the one I had was corrupt after initial failure.

@kcgen
Copy link

kcgen commented Jul 31, 2020

@ashmereyna , please keep this issue open until it's proven to be fixed without the manual work around. Thank you!
As of today, this issue continues to affect other CI workflows - so it's very much still open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants