You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
with get picks a MinGW-ABI Conan binary on windows-x86_64 (OpenSSL: lld-link cannot open crypto.lib) #1204
lld-link: error: could not open 'crypto.lib': no such file or directory
lld-link: error: could not open 'ssl.lib': no such file or directory
windows-aarch64 links the same project.
Cause: conan_find_matching_package (src/compiler/ConanClient.w) returns the first static package whose os and arch match; it ignores compiler and build_type. ConanCenter's list for openssl/4.0.2 on Windows x86_64, in response order:
clang 19 runtime=dynamic Release shared
clang 21 (no runtime) Release static <- picked: GNU-ABI clang, ships libcrypto.a / libssl.a
msvc 194 dynamic Debug shared
clang 19 dynamic Release static
msvc 194 dynamic Release shared
gcc 15 Release shared/static
msvc 194 dynamic Debug static
msvc 194 dynamic Release static <- the one a windows-msvc toolchain can link
libcrypto.a -> library name crypto (conan_library_name_from_path is right) -> lld-link looks for crypto.lib. armv8 lists only msvc variants, so that leg cannot go wrong. The same blindness can pick an MSVC Debug build (wrong CRT) where one precedes the Release build.
Fix: the match also requires build_type Release (when the package has one) and, on Windows, compiler msvc — the toolchain with links with targets windows-msvc.
(Also read off the same listing: ConanCenter publishes no Linux armv8 binaries, which is why every linux-aarch64 UAT cell takes the source-build path.)
Activity
Pick a Conan binary the toolchain can link