Skip to content

with get: Conan's macOS static libs target 13.0; we link for 11.0, so every link prints one ld64.lld warning per object #2316

Closed

Description

@ehartford

Repro: with init ., with get c.libxml2, any with run. ld64.lld prints libxml2.a(<obj>.o) has version 13.0.0, which is newer than target minimum of 11.0 once per object (dozens of lines).

Either the Conan profile with get resolves binaries with does not pin os.version=11.0, or our link target minimum is lower than the binaries we accept. A binary built for 13.0 can call APIs missing on 11, so this is a correctness question as well as noise.

Expected: with get fetches (or builds) binaries for the deployment target we link with; no warnings.

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Triage 2026-10-25, with v0.15.3.0 (main a261b65): reproduced.

    $ with init . && with get c.libxml2
    added [email protected]
    $ cat src/main.w
    use c_import("libxml/parser.h")
    fn main:
        xmlInitParser()
        print("linked")
    $ with build src/main.w -o out/probe
    ld64.lld: warning: …/libxml2.a(threads.c.o) has version 13.0.0, which is newer than target minimum of 11.0
    …
    # 47 such warnings, rc=0
    

    pre-release: every libxml2 user sees dozens of warnings, and the deployment-target mismatch is a correctness question.

  2. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Fixed on main by e3b0ad0 (PR #2662, stack #2668; battery green on the stack top 9f92dbb). The commit message names the root-cause line and the regression test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions