Skip to content

Linking error on Rust 1.70 aarch64-unknown-linux-musl toolchain #113104

Open
@geauxvirtual

Description

@geauxvirtual

I have a project that currently compiles and links with Rust 1.67 on the following toolchains:

  • x86_64-unknown-linux-musl (built in rust:1.67-alpine3.17)
  • aarch64-unknown-linux-musl (built in rust:1.67-alpine3.17)
  • aarch64-apple-darwin

The project successfully builds with all three toolchains for Rust 1.69.

I was attempting to build the project with Rust 1.70. The project compiles successfully on the following toolchains:

  • x86_64-unknown-linux-musl (built in rust:1.70-alpine.3.17 and rust:1.70-alpine3.18)
  • aarch64-apple-darwin

The project fails to compile and link on the following toolchain:

  • aarch64-unknown-linux-musl (fails in rust:1.70-alpine3.17 and rust:1.70-alpine3.18)

I've been trying to track down which dependency of the project could be causing the following errors to be thrown since the project has no specific hardware requirements, but I also wanted to open an issue since this is failing for one specific toolchain starting with 1.70.

Building with --verbose does not yield any additional information. This occurs for both debug and release builds.

error: linking with `cc` failed: exit status: 1
= note: /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: GFp_armcap_P: undefined version:
        /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: failed to set dynamic section sizes: bad value
        collect2: error: ld returned 1 exit status

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions