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

[metis] Build error #26719

Closed
Phoenix-64 opened this issue Sep 7, 2022 · 2 comments
Closed

[metis] Build error #26719

Phoenix-64 opened this issue Sep 7, 2022 · 2 comments
Assignees
Labels
category:question This issue is a question

Comments

@Phoenix-64
Copy link

Package: metis[core]:x64-windows -> 5.1.0#8
Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.30.30705.0
  • vcpkg-tool version: 2022-06-17-9268e366206712e38102b28dbd1617697a99ff2e
    vcpkg-scripts version: 467509e 2022-06-23 (3 months ago)

To Reproduce
vcpkg install ceres[suitesparse,cxsparse]

Unable to reach address: http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz

Failure logs

-- Note: metis only supports static library linkage. Building static library.
-- Downloading http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz -> metis-5.1.0.tar.gz...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[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] Downloading http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz
[DEBUG] Download failed -- retrying after 1000 ms.
[DEBUG] Download failed -- retrying after 2000 ms.
[DEBUG] Download failed -- retrying after 4000 ms.
Error: Failed to download from mirror set:
http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz: WinHttpSendRequest() failed: 12002
http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz: WinHttpSendRequest() failed: 12002
http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz: WinHttpSendRequest() failed: 12002
http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz: WinHttpSendRequest() failed: 12002

[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(788): 
[DEBUG] Time in subprocesses: 0 us
[DEBUG] Time in parsing JSON: 2 us
[DEBUG] Time in JSON reader: 0 us
[DEBUG] Time in filesystem: 942 us
[DEBUG] Time in loading ports: 0 us
[DEBUG] Exiting after 1.523 min (91343962 us)

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:24 (message):
      
      Failed to download file with error: 1
      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. Your 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_download_distfile.cmake:249 (z_vcpkg_download_distfile_show_proxy_and_fail)
  ports/metis/portfile.cmake:6 (vcpkg_download_distfile)
  scripts/ports.cmake:146 (include)



Additional context

@FrankXie05
Copy link
Contributor

@Phoenix-64 Thanks for posting this issue.
Port metis has changed to download the build source code from github since PR #26020 , please run the command git pull to use the latest vcpkg and try again.

vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH

@FrankXie05 FrankXie05 added the category:question This issue is a question label Sep 8, 2022
@Phoenix-64
Copy link
Author

It was already up to date but somehow it fixed itself thanks for helping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants