Skip to content

with get picks a MinGW-ABI Conan binary on windows-x86_64 (OpenSSL: lld-link cannot open crypto.lib) #1204

Closed

Description

@ehartford

Release validation 35420376179, windows-x86_64, release-openssl-uat:

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

  1. added a commit that references this issue on Sep 19, 2026
    750d3dc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions