Skip to content

Order of link flags for rust seems significant now #173711

@Fuuzetsu

Description

@Fuuzetsu

Describe the bug

Rust 1.61 and rust builder in nixpkgs don't play nicely together anymore.

See first point of https://github.com/rust-lang/rust/blob/fe5b13d681f25ee6474be29d748c65adcd91f69e/RELEASES.md#compatibility-notes, linking to rust-lang/rust#93901

Steps To Reproduce

I don't have a small/public repro on hand right now. If someone has one, please contribute. If not, I can try to come up with one on Monday. Might be easy to get one out of rust issue tracker as they seem to be getting flooded with linker tickets today due to the change.

Expected behavior

Programs build and link but instead we get linker errors.

Notify maintainers

(edit by artturin)
@andir @LnL7 @Mic92 @zowoq

Metadata

nixpkgs 55fad6c081850b3e1d93f87a72c14a383a8e1e9d, rest not that relevant? I'm using oxalica's rust-overlay to get Rust 1.61.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: rustGeneral-purpose programming language emphasizing performance, type safety, and concurrency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions