Skip to content

macOS + lld: false positive output from the linker: ld64.lld: <some path in a shared library>.o) has version 26.0.0, which is newer than target minimum of 11.0.0 #159227

Description

@keltia

Code

Any code that is bindings to a C/C++/ObjC library on macOS, when linking with `lld` at least.

Current output

warning: linker stderr: ld64.lld: /Users/roberto/Src/Rust/src/fetiche-ch/target/debug/deps/libblake3-0113f41d938ccb07.rlib(a1edd97dd51cd48d-blake3_neon.o) has version 26.0.0, which is newer than target minimum of 11.0.0
...
[repeat lots of these]

Desired output

This should be masked by rustc, like many other messages already.

Rationale and extra context

Taken from https://blog.rust-lang.org/2026/07/09/Rust-1.97.0/

Note that currently, linker_messages is a special lint that is not affected by the warnings lint group. This is intentional as rustc generally doesn't control linker output as precisely, and it's not uncommon for output to only appear on some platforms. If you are seeing what you think is a false positive output from the linker, please [file an issue](https://github.com/rust-lang/rust/issues/new/choose).

Other cases

Rust Version

rustc 1.97.0 (2d8144b78 2026-07-07)
binary: rustc
commit-hash: 2d8144b7880597b6e6d3dfd63a9a9efae3f533d3
commit-date: 2026-07-07
host: aarch64-apple-darwin
release: 1.97.0
LLVM version: 22.1.6

Anything else?

No response

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsL-linker_messagesLint: linker_messagesO-macosOperating system: macOST-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions