Skip to content

Zigbuild linking fails with nightly (2025-03-09) on x64 linux #327

@scootermon

Description

@scootermon

rustc now adds -znostart-stop-gc to the linker args automatically for x64 linux targets.
See: rust-lang/rust#137685

Zig doesn't support this arg so it fails with note: error: unsupported linker extension flag: -z nostart-stop-gc.

A workaround for this is to explicitly set RUSTFLAGS="-Zlinker-features=-lld".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions