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

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

Closed
SamuelMarks opened this issue Jun 28, 2021 · 4 comments
Closed

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

SamuelMarks opened this issue Jun 28, 2021 · 4 comments
Assignees
Labels
requires:repro The issue is not currently repro-able

Comments

@SamuelMarks
Copy link
Contributor

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

@NancyLi1013 NancyLi1013 self-assigned this Jun 28, 2021
@NancyLi1013 NancyLi1013 added the requires:repro The issue is not currently repro-able label Jun 28, 2021
@NancyLi1013
Copy link
Contributor

Hi @SamuelMarks

Thanks for posting this issue.

Have you tried to build with the latest vcpkg? I cannot reproduce this on my machine.

@dg0yt
Copy link
Contributor

dg0yt commented Jun 28, 2021

IIUC the specific problem is: vcpkg upgrade --no-dry-run shall not report success when the vcpkg tool is outdated.

The general problem is: vcpkg doesn't properly report that the user should upgrade vcpkg itself. A simple health check is needed either during each run, or at least after catching some error like invalid command: x-download.

@SamuelMarks
Copy link
Contributor Author

Yeah agreed.

PS: Removed vcpkg and redid the whole process. It worked, no error.

Total elapsed time: 1.29 h

@LilyWangLL
Copy link
Contributor

Thanks for posting this issue. This issue hasn’t been updated for a long time. Please reopen this issue if this is still a problem for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able
Projects
None yet
Development

No branches or pull requests

4 participants