Skip to content

lld linker error on mips64[el] linux targets. #138479

Open
@Wyvern

Description

@Wyvern

When cross-compiling to mips64[el] linux targets using -Zbuild-stdgot lld linking error:

linking with `mips64-linux-gnuabi64-gcc` failed: exit status: 1

rust-lld: error: /usr/lib/gcc-cross/mips64el-linux-gnuabi64/12/../../../../mips64el-linux-gnuabi64/lib/../lib/crtn.o: requires an executable stack, but -z execstack is not specified
          rust-lld: error: /usr/lib/gcc-cross/mips64el-linux-gnuabi64/12/../../../../mips64el-linux-gnuabi64/lib/../lib/crti.o: requires an executable stack, but -z execstack is not specified
          rust-lld: error: /usr/lib/gcc-cross/mips64el-linux-gnuabi64/12/../../../../mips64el-linux-gnuabi64/lib/../lib/Scrt1.o: requires an executable stack, but -z execstack is not specified

Rust 1.87.0-nightly (cbfdf0b 2025-03-13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    -Zbuild-stdUnstable Cargo option: Compile the standard library yourself.A-crossArea: Cross compilationS-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions