Skip to content

Regression on aarch64-unknown-linux-musl: undefined reference to `getauxval' #2450

Closed
@pejter

Description

@pejter

The crate no longer builds for aarch64-unknown-linux-musl target.

Builds successfully on:

  • stable rustc 1.55.0 (c8dfcfe04 2021-09-06)
  • beta rustc 1.56.0-beta.4 (e6e620e1c 2021-10-04)

Fails on:

  • nightly rustc 1.57.0-nightly (dfc5add91 2021-10-13)

Steps to reproduce:

  • Create a empty crate with cargo init
  • Add libc = "*" to dependencies
  • Run cargo build

Error logs: https://gist.github.com/pejter/4432b29f946cee4721e209c1a4184883
Dockerfile for reproducing the build environment:

FROM rustlang/rust:nightly-alpine as builder

RUN apk add --no-cache musl-dev

COPY . .

RUN cargo build --release

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions