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

curl build failure #31114

Closed
GRRedWings opened this issue Apr 25, 2023 · 5 comments
Closed

curl build failure #31114

GRRedWings opened this issue Apr 25, 2023 · 5 comments
Assignees
Labels
category:question This issue is a question

Comments

@GRRedWings
Copy link

Operating system

Windows

Compiler

GCC

Steps to reproduce the behavior

vcpkg install openssl --triplet x64-windows

Failure logs

Computing installation plan...
The following packages will be built and installed:
curl[core,non-http,schannel,ssl,sspi,winssl]:x64-windows -> 7.74.0#2

Call Stack (most recent call first):
scripts/cmake/vcpkg_acquire_msys.cmake:90 (vcpkg_download_distfile)
scripts/cmake/vcpkg_acquire_msys.cmake:138 (msys_package_download)
scripts/cmake/vcpkg_find_acquire_program.cmake:446 (vcpkg_acquire_msys)
scripts/cmake/vcpkg_fixup_pkgconfig.cmake:112 (vcpkg_find_acquire_program)
ports/zlib/portfile.cmake:48 (vcpkg_fixup_pkgconfig)
scripts/ports.cmake:136 (include)

Error: Building package zlib: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: zlib:x64-windows
Vcpkg version: 2020.11.12--unknownhash

Additional context

No response

@GRRedWings GRRedWings added the category:port-bug The issue is with a library, which is something the port should already support label Apr 25, 2023
@dg0yt
Copy link
Contributor

dg0yt commented Apr 25, 2023

Please update.

@GRRedWings
Copy link
Author

GRRedWings commented Apr 25, 2023

What do you mean please update? I tried again and I have the same error.

Based on what I see
https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz

doesn't exist, and was replaced with a 0.29.2-3... version

It's also possible I labeled this as a curl issue, where it appears it's a zlib issue.

@Osyotr
Copy link
Contributor

Osyotr commented Apr 25, 2023

The issue is that old versions of msys2 packages sometimes disappear. And if you didn't set up asset cache, vcpkg won't be able do download such packages. You are using old version of vcpkg (Vcpkg version: 2020.11.12). In newer versions of vcpkg download links to msys2 packages are updated, so the solution is to update vcpkg (git pull and .\bootstrap-vcpkg.bat).

@jimwang118 jimwang118 added category:question This issue is a question and removed category:port-bug The issue is with a library, which is something the port should already support labels Apr 26, 2023
@jimwang118
Copy link
Contributor

@GRRedWings May I ask if the compilation is normal after you update the vcpkg version?

@GRRedWings
Copy link
Author

It was indeed that I had an outdated vcpkg. I didn't realize vcpkg was a submodule of my git project, and not being updated.

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

4 participants