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 #43464

Open
cstavaru opened this issue Jan 25, 2025 · 0 comments
Open

[curl] build failure #43464

cstavaru opened this issue Jan 25, 2025 · 0 comments
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@cstavaru
Copy link

cstavaru commented Jan 25, 2025

Operating system

All

Steps to reproduce the behavior

Try to cross-compile a binary which uses the cURL VCPKG port, on a 32-bit target using a 64-bit host.

Hello,

The cURL port on VCPKG has a cross-compiling bug. The file CURLConfigVersion.cmake uses CMAKE_SIZEOF_VOID_P to determine suitability of platform but in a cross-compiling environment this will compare a per-host value with a per-target value which is not correct.

For example, if you are trying to cross-compile a binary which uses the cURL VCPKG port, on Android 32-bit ABIs using a Ubuntu x64 as a host, the find_package(CURL CONFIG REQUIRED) will fail with the following error:

Could not find a configuration file for package "curl" that is compatible with requested version ""

@cstavaru cstavaru added the category:port-bug The issue is with a library, which is something the port should already support label Jan 25, 2025
@LilyWangLL LilyWangLL self-assigned this Jan 26, 2025
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
Projects
None yet
Development

No branches or pull requests

2 participants