Skip to content

[google-cloud-cpp] build failure on x64-windows #18676

@SamuelMarks

Description

@SamuelMarks

invalid command: x-download

Host Environment

  • OS: Windows 10 Pro 21H1 (19043.1081)
  • Compiler: 19.00.24215.1 (MSVC)

To Reproduce
Steps to reproduce the behavior:

vcpkg @ bb002cd:
./vcpkg install google-cloud-cpp

Failure logs

vcpkg>git pull origin master
remote: Enumerating objects: 2373, done.
remote: Counting objects: 100% (2373/2373), done.
remote: Compressing objects: 100% (1025/1025), done.
Receiving objects:  97% (1864/1921)used 1485 (delta 895), pack-reused 0
Receiving objects: 100% (1921/1921), 500.47 KiB | 11.64 MiB/s, done.
Resolving deltas: 100% (1240/1240), completed with 302 local objects.
From https://github.com/microsoft/vcpkg
 * branch                master     -> FETCH_HEAD
   7bc5b8cdf..bb002cdd1  master     -> origin/master
Updating 7bc5b8cdf..bb002cdd1
Fast-forward
[omitted for brevity]
Elapsed time for package grpc:x64-windows: 11.78 min
Starting package 12/16: google-cloud-cpp:x64-windows
Building package google-cloud-cpp[core]:x64-windows...
-- Note: google-cloud-cpp only supports static library linkage. Building static library.
-- Downloading https://github.com/googleapis/google-cloud-cpp/archive/v1.28.0.tar.gz -> googleapis-google-cloud-cpp-v1.28.0.tar.gz...
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'manifests' = off
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] BuiltinRegistry initialized with: ""
[DEBUG] Using vcpkg-root: \vcpkg
[DEBUG] Using installed-root: \vcpkg\installed
[DEBUG] BuiltinRegistry initialized with: ""
[DEBUG] Using buildtrees-root: \vcpkg\buildtrees
[DEBUG] Using downloads-root: \vcpkg\downloads
[DEBUG] Using packages-root: \vcpkg\packages
[DEBUG] Using scripts-root: \vcpkg\scripts
[DEBUG] Using ports-root: \vcpkg\ports
[DEBUG] Using versions-root: \vcpkg\versions
invalid command: x-download
Commands:
  vcpkg search [pat]              Search for packages available to be built
  vcpkg install <pkg>...          Install a package
  vcpkg remove <pkg>...           Uninstall a package
  vcpkg remove --outdated         Uninstall all out-of-date packages
  vcpkg list                      List installed packages
  vcpkg update                    Display list of packages for updating
  vcpkg upgrade                   Rebuild all outdated packages
  vcpkg x-history <pkg>           (Experimental) Shows the history of CONTROL versions of a package
  vcpkg hash <file> [alg]         Hash a file by specific algorithm, default SHA512
  vcpkg help topics               Display the list of help topics
  vcpkg help <topic>              Display help for a specific topic

  vcpkg integrate install         Make installed packages available user-wide. Requires admin
                                  privileges on first use
  vcpkg integrate remove          Remove user-wide integration
  vcpkg integrate project         Generate a referencing nuget package for individual VS project use
  vcpkg integrate powershell      Enable PowerShell tab-completion

  vcpkg export <pkg>... [opt]...  Exports a package
  vcpkg edit <pkg>                Open up a port for editing (uses %EDITOR%, default 'code')
  vcpkg create <pkg> <url> [archivename]
                                  Create a new package
  vcpkg owns <pat>                Search for files in installed packages
  vcpkg depend-info <pkg>...      Display a list of dependencies for packages
  vcpkg env                       Creates a clean shell environment for development or compiling
  vcpkg version                   Display version information
  vcpkg contact                   Display contact information to send feedback

Options:
  --triplet=<t>                   Specify the target architecture triplet. See 'vcpkg help triplet'
                                  (default: %VCPKG_DEFAULT_TRIPLET%)
  --host-triplet=<t>              Specify the host architecture triplet. See 'vcpkg help triplet'
                                  (default: %VCPKG_DEFAULT_HOST_TRIPLET%)
  --overlay-ports=<path>          Specify directories to be used when searching for ports
                                  (also: %VCPKG_OVERLAY_PORTS%)
  --overlay-triplets=<path>       Specify directories containing triplets files
                                  (also: %VCPKG_OVERLAY_TRIPLETS%)
  --binarysource=<path>           Add sources for binary caching. See 'vcpkg help binarycaching'
  --downloads-root=<path>         Specify the downloads root directory
                                  (default: %VCPKG_DOWNLOADS%)
  --vcpkg-root=<path>             Specify the vcpkg root directory
                                  (default: %VCPKG_ROOT%)
  --x-buildtrees-root=<path>      (Experimental) Specify the buildtrees root directory
  --x-install-root=<path>         (Experimental) Specify the install root directory
  --x-packages-root=<path>        (Experimental) Specify the packages root directory
  --x-scripts-root=<path>         (Experimental) Specify the scripts root directory
  --x-builtin-ports-root=<path>   (Experimental) Specify the packages root directory
  --x-builtin-registry-versions-dir=<path>
                                  (Experimental) Specify the versions root directory
  --x-json                        (Experimental) Request JSON output

  @response_file                  Specify a response file to provide additional parameters

For more help (including examples) see the accompanying README.md and docs folder.
[DEBUG] C:\A\1\70\s\src\vcpkg.cpp(46)
[DEBUG] Exiting after 12170 us (11855 us)

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:240 (message):

      Failed to download file.
      If you use a proxy, please check your proxy setting. Possible causes are:

      1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable
         to `https://address:port`. This is not correct, because `https://` prefix
         claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr
         , etc..) is an HTTP proxy. Try setting `http://address:port` to both
         HTTP_PROXY and HTTPS_PROXY instead.

      2. You are using Fiddler. Currently a bug (https://github.com/microsoft/vcpkg/issues/17752)
         will set HTTPS_PROXY to `https://fiddler_address:port` which lead to problem 1 above.
         Workaround is open Windows 10 Settings App, and search for Proxy Configuration page,
         Change `http=address:port;https=address:port` to `address`, and fill the port number.

      3. You proxy's remote server is out of service.

      In future vcpkg releases, if you are using Windows, you no longer need to set
      HTTP(S)_PROXY environment variables. Vcpkg will simply apply Windows IE Proxy
      Settings set by your proxy software. See (https://github.com/microsoft/vcpkg-tool/pull/49)
      and (https://github.com/microsoft/vcpkg-tool/pull/77)

      Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues

Call Stack (most recent call first):
  scripts/cmake/vcpkg_from_github.cmake:147 (vcpkg_download_distfile)
  ports/google-cloud-cpp/portfile.cmake:5 (vcpkg_from_github)
  scripts/ports.cmake:139 (include)


Error: Building package google-cloud-cpp:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: google-cloud-cpp:x64-windows
  Vcpkg version: 2021-01-13-d67989bce1043b98092ac45996a8230a059a2d7e

Additionally, attach any relevant sections from the log files above.

\vcpkg>vcpkg upgrade --no-dry-run
All installed packages are up-to-date with the local portfiles.

Additional context
I actually ran vcpkg upgrade

So let's say I am missing a new vcpkg bootstrap line. Even in that scenario it shouldn't end with success when I rerun vcpkg upgrade

Metadata

Metadata

Assignees

Labels

requires:reproThe issue is not currently repro-able

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions