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:x64-linux] build failure #14798

Closed
Jacquwes opened this issue Nov 26, 2020 · 4 comments · Fixed by #14807
Closed

[curl:x64-linux] build failure #14798

Jacquwes opened this issue Nov 26, 2020 · 4 comments · Fixed by #14807
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support requires:repro The issue is not currently repro-able

Comments

@Jacquwes
Copy link

Host Environment

  • OS: Arch Linux on WSL
  • Compiler: revision

To Reproduce
Steps to reproduce the behavior:
./vcpkg install cpr

Failure logs
lot of patches here

Starting package 65/68: curl:x64-linux
Building package curl[core,non-http,openssl,ssl]:x64-linux...
-- Using cached /var/cache/vcpkg/curl-curl-315ee3fe75dade912b48a21ceec9ccda0230d937.tar.gz
-- Extracting source /var/cache/vcpkg/curl-curl-315ee3fe75dade912b48a21ceec9ccda0230d937.tar.gz
-- Applying patch 0002_fix_uwp.patch
-- Applying patch 0004_nghttp2_staticlib.patch
-- Applying patch 0005_remove_imp_suffix.patch
-- Applying patch 0006_fix_tool_depends.patch
-- Applying patch 0007_disable_tool_export_curl_target.patch
-- Applying patch 0009_fix_openssl_config.patch
-- Applying patch 0010_fix_othertests_cmake.patch
-- Applying patch 0011_fix_static_build.patch
-- Using source at /usr/share/vcpkg/buildtrees/curl/src/da0230d937-b280319101.clean
-- Configuring x64-linux-dbg
-- Configuring x64-linux-rel
-- Building x64-linux-dbg
-- Building x64-linux-rel
-- Installing: /usr/share/vcpkg/packages/curl_x64-linux/share/curl/curl-config
-- Fixing pkgconfig file: /usr/share/vcpkg/packages/curl_x64-linux/lib/pkgconfig/libcurl.pc
-- CHECK_LIB_idn2_RELEASE:CHECK_LIB_idn2_RELEASE-NOTFOUND
CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:233 (message):
  Library "idn2" was not found! If it is a system library use the
  SYSTEM_LIBRARIES parameter for the vcpkg_fixup_pkgconfig call! Otherwise,
  correct the *.pc file
Call Stack (most recent call first):
  scripts/cmake/vcpkg_fixup_pkgconfig.cmake:299 (vcpkg_fixup_pkgconfig_check_files)
  ports/curl/portfile.cmake:185 (vcpkg_fixup_pkgconfig)
  scripts/ports.cmake:136 (include)


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

Additional context
The command idn2 works, and vcpkg install idn2 says it doesn't find unistring.

Thank you

@JackBoosY
Copy link
Contributor

Pleae rebuild libidn2 and try again.

Thanks.

@JackBoosY JackBoosY self-assigned this Nov 26, 2020
@JackBoosY JackBoosY added the category:question This issue is a question label Nov 26, 2020
@Jacquwes
Copy link
Author

Tried yay -S libidn2 and installed multilib and core versions, still returning the same error

@JackBoosY JackBoosY added category:port-bug The issue is with a library, which is something the port should already support requires:repro The issue is not currently repro-able and removed category:question This issue is a question labels Nov 27, 2020
@JackBoosY
Copy link
Contributor

https://github.com/curl/curl/blob/c7b02c5d680021f21aebdf41cb336a742fdad664/CMakeLists.txt#L621

For workaround, please remove libidn2 you manually installed and try again.

Thanks.

@Jacquwes
Copy link
Author

I removed the multilib, but I can't remove the core version :

> yay -R libidn2
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing libidn2 breaks dependency 'libidn2' required by curl
:: removing libidn2 breaks dependency 'libidn2.so=0-64' required by curl
:: removing libidn2 breaks dependency 'libidn2' required by gnutls
:: removing libidn2 breaks dependency 'libidn2.so=0-64' required by gnutls
:: removing libidn2 breaks dependency 'libidn2' required by iputils
:: removing libidn2 breaks dependency 'libidn2' required by lib32-libidn2
:: removing libidn2 breaks dependency 'libidn2' required by libpsl
:: removing libidn2 breaks dependency 'libidn2.so=0-64' required by libpsl
:: removing libidn2 breaks dependency 'libidn2' required by systemd
:: removing libidn2 breaks dependency 'libidn2.so=0-64' required by systemd
:: removing libidn2 breaks dependency 'libidn2' required by wget

Same error still appears when I try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support requires:repro The issue is not currently repro-able
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants