microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.74k stars 6.29k forks source link

libharu build failure #27031

Closed nathan-mxr closed 1 year ago

nathan-mxr commented 1 year ago

Following error was generated after adding "visualization" feature to pcl:

Package: libharu[core,notiffsymbols]:x64-windows -> 2017-08-15#10

Host Environment

To Reproduce

vcpkg install

Failure logs

-- Downloading https://github.com/libharu/libharu/pull/157.diff -> libharu-shading-pr-157.patch...
[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 https://github.com/libharu/libharu/pull/157.diff
Error: Failed to download from mirror set:
File does not have the expected hash:
             url : [ https://github.com/libharu/libharu/pull/157.diff ]
       File path : [ N:\dev\vcpkg\downloads\libharu-shading-pr-157.patch.31160.part ]
   Expected hash : [ f2ddb22b54b4eccc79400b6a4b2d245a221898f75456a5a559523eab7a523a87dfc5dfd0ec5fb17a771697e03c7ea6ed4c6095eff73e0a4302cd6eb24584c957 ]
     Actual hash : [ 10562c8c9c6975b74d625912e7d3b850376941d5e46136679371ce1315f416b6b8e91d73fd1257b907327b2d71d50b8c026547203f280e42fb7b1901245de03c ]

[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(766): 
[DEBUG] Time in subprocesses: 0 us
[DEBUG] Time in parsing JSON: 8 us
[DEBUG] Time in JSON reader: 0 us
[DEBUG] Time in filesystem: 1638 us
[DEBUG] Time in loading ports: 0 us
[DEBUG] Exiting after 747.6 ms (736370 us)

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (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:273 (z_vcpkg_download_distfile_show_proxy_and_fail)
  buildtrees/versioning_/versions/libharu/312f4b697d2f46818c218e270bd447cdeb76322c/portfile.cmake:6 (vcpkg_download_distfile)
  scripts/ports.cmake:147 (include)

Additional context

vcpkg.json ``` { "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json", "name": "data-processing-pipeline", "version": "0.0.1", "builtin-baseline": "b49b2bdf22559c89eddbf29a29621a1dc6929320", "dependencies": [ "xtensor-io", "xsimd", "xtensor-fftw", "nanoflann", "eigen3", "cxxopts", "openblas", "lapack", "xtensor-blas", "nanobench", "spdlog", { "name": "pcl", "features": [ "visualization" ] }, { "name": "highfive", "features": [ "xtensor" ] }, { "name": "xtensor", "features": [ "xsimd" ] }, { "name": "opencv4", "features": [ "openexr", "lapack", "cuda", "openmp", "png" ] } ], "overrides": [ { "name": "xtensor", "version": "0.24.0" }, { "name": "xtensor-io", "version": "0.13.0#1" }, { "name": "xsimd", "version": "8.1.0" }, { "name": "xtensor-fftw", "version": "2019-11-30#2" }, { "name": "opencv4", "version": "4.5.5#5" }, { "name": "nanoflann", "version": "1.4.2" }, { "name": "highfive", "version": "2.3#2" }, { "name": "cxxopts", "version": "3.0.0" }, { "name": "openblas", "version": "0.3.20" }, { "name": "lapack", "version": "2022-02-22" }, { "name": "xtensor-blas", "version": "0.17.2#2" }, { "name": "eigen", "version": "3.4.0#2" } ] } ```
JackBoosY commented 1 year ago

Since libharu has been updated in vcpkg, please use overlay-ports to update this patch file hash to fix this issue. Sorry for that.

Aperion commented 1 year ago

I know this comment won't be helpful, but damnit, what the hell happened to simply specifying the version to be used in a package management system.

JackBoosY commented 1 year ago

I know this comment won't be helpful, but damnit, what the hell happened to simply specifying the version to be used in a package management system.

vcpkg only guarantees the correctness of the latest version of the port. Since we do not have multiple branch controls for each version, it will be difficult to fix bugs in a previous version.

LilyWangLL commented 1 year ago

We hope your question was answered to your satisfaction; if it wasn't, you can reopen with more info.