microsoft / vcpkg

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

[libpng] Build error on arm64-osx #41936

Open avelino opened 2 days ago

avelino commented 2 days ago

Package: libpng[apng,core]:arm64-osx@1.6.43#1

Host Environment

To Reproduce

vcpkg install --no-print-usage

Failure logs

-- Downloading https://downloads.sourceforge.net/project/libpng-apng/libpng16/1.6.43/libpng-1.6.43-apng.patch.gz -> libpng-1.6.43-apng.patch.gz...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Trying to load bundleconfig from /Users/avelino/Downloads/ladybird/Toolchain/Tarballs/vcpkg/vcpkg-bundle.json
[DEBUG] Failed to open: /Users/avelino/Downloads/ladybird/Toolchain/Tarballs/vcpkg/vcpkg-bundle.json
[DEBUG] Bundle config: readonly=false, usegitregistry=false, embeddedsha=nullopt, deployment=Git, vsversion=nullopt
[DEBUG] Metrics enabled.
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Feature flag 'dependencygraph' unset
[DEBUG] 1000: execute_process(curl --fail -L https://downloads.sourceforge.net/project/libpng-apng/libpng16/1.6.43/libpng-1.6.43-apng.patch.gz --create-dirs --output /Users/avelino/Downloads/ladybird/Toolchain/Tarballs/vcpkg/downloads/libpng-1.6.43-apng.patch.gz.17239.part)
[DEBUG] 1000: cmd_execute_and_stream_data() returned 56 after   806493 us
error: Missing libpng-1.6.43-apng.patch.gz and downloads are blocked by x-block-origin.
error: https://downloads.sourceforge.net/project/libpng-apng/libpng16/1.6.43/libpng-1.6.43-apng.patch.gz: curl failed to download with exit code 56
#=#=#                                                                          
##O#-#                                                                         
##O=#  #                                                                       

######################################################################## 100.0%#=#=-#  #                                                                      
curl: (56) The requested URL returned error: 403

[DEBUG] /Users/runner/work/1/s/src/vcpkg/base/downloads.cpp(1030): 
[DEBUG] Time in subprocesses: 806493us
[DEBUG] Time in parsing JSON: 4us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 1387us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 813 ms (809780us)

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

      Failed to download file with error: 1
      If you are using 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. If you are using Windows, vcpkg will automatically use your Windows IE Proxy Settings
         set by your proxy software. See https://github.com/microsoft/vcpkg-tool/pull/77
         The value set by your proxy might be wrong, or have same `https://` prefix issue.

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

      If you've tried directly download the link, and believe this is not a temporary
      download server failure, please submit an issue at https://github.com/Microsoft/vcpkg/issues
      to report this upstream download server failure.

Call Stack (most recent call first):
  scripts/cmake/vcpkg_download_distfile.cmake:270 (z_vcpkg_download_distfile_show_proxy_and_fail)
  buildtrees/versioning_/versions/libpng/1b0781214ef5a3497d0e7db2c0ed7f7fae74248b/portfile.cmake:13 (vcpkg_download_distfile)
  scripts/ports.cmake:192 (include)

Additional context

vcpkg.json ``` { "builtin-baseline": "2960d7d80e8d09c84ae8abf15c12196c2ca7d39a", "dependencies": [ { "name": "curl", "features": [ "brotli", "http2" ] }, { "name": "fontconfig", "platform": "linux | freebsd | openbsd | osx | windows" }, "harfbuzz", "icu", "libjpeg-turbo", "libjxl", { "name": "libpng", "features": [ "apng" ] }, { "name": "libavif", "features": [ "dav1d" ] }, { "name": "libwebp", "features": [ "anim", "libwebpmux", "simd" ] }, "simdutf", { "name": "skia", "platform": "osx", "features": [ "metal", "fontconfig" ] }, { "name": "skia", "platform": "linux | freebsd | openbsd | windows", "features": [ "vulkan" ] }, { "name": "skia", "platform": "android" }, "sqlite3", { "name": "vulkan", "platform": "!android" }, { "name": "vulkan-headers", "platform": "!android" }, "woff2" ], "overrides": [ { "name": "curl", "version": "8.10.1#0" }, { "name": "fontconfig", "version": "2.14.2#1" }, { "name": "icu", "version": "74.2#2" }, { "name": "libjpeg-turbo", "version": "3.0.2" }, { "name": "libjxl", "version": "0.11.0" }, { "name": "libpng", "version": "1.6.43#1" }, { "name": "libavif", "version": "1.0.4#1" }, { "name": "libwebp", "version": "1.4.0#1" }, { "name": "simdutf", "version": "5.5.0#0" }, { "name": "skia", "version": "129#0" }, { "name": "sqlite3", "version": "3.46.1" }, { "name": "woff2", "version": "1.0.2#4" } ] } ```

ref: https://github.com/LadybirdBrowser/ladybird/issues/1162

FrankXie05 commented 1 day ago

@avelino Thanks for posting this issue, please make sure your network is unobstructed. If there is a proxy server, please make sure to pass vcpkg. Could you please access this link https://downloads.sourceforge.net/project/libpng-apng/libpng16/1.6.43/libpng-1.6.43-apng.patch.gz manually?

[DEBUG] 1000: execute_process(curl --fail -L https://downloads.sourceforge.net/project/libpng-apng/libpng16/1.6.43/libpng-1.6.43-apng.patch.gz --create-dirs --output /Users/avelino/Downloads/ladybird/Toolchain/Tarballs/vcpkg/downloads/libpng-1.6.43-apng.patch.gz.17239.part)
[DEBUG] 1000: cmd_execute_and_stream_data() returned 56 after   806493 us
error: Missing libpng-1.6.43-apng.patch.gz and downloads are blocked by x-block-origin.