Skip to content

aarch64-unknown-openbsd fails to build due to missing parse_system_registers #148898

@Darksonn

Description

@Darksonn

I tried to build something using --target aarch64-unknown-openbsd.

I expected to see this happen: Stdlib would compile successfully.

Instead, this happened:

  error[E0425]: cannot find function `parse_system_registers` in module `super::aarch64`
    --> /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std_detect/src/detect/os/openbsd/aarch64.rs:34:21
     |
  34 |     super::aarch64::parse_system_registers(aa64isar0, aa64isar1, aa64mmfr2, aa64pfr0)
     |                     ^^^^^^^^^^^^^^^^^^^^^^ not found in `super::aarch64`
     |
  help: consider importing this function
     |
   7 + use crate::detect::aarch64::parse_system_registers;
     |
  help: if you import `parse_system_registers`, refer to it directly
     |
  34 -     super::aarch64::parse_system_registers(aa64isar0, aa64isar1, aa64mmfr2, aa64pfr0)
  34 +     parse_system_registers(aa64isar0, aa64isar1, aa64mmfr2, aa64pfr0)

Meta

rustc --version --verbose:

rustc 1.93.0-nightly (01867557c 2025-11-12)
binary: rustc
commit-hash: 01867557cd7dbe256a031a7b8e28d05daecd75ab
commit-date: 2025-11-12
host: x86_64-unknown-linux-gnu
release: 1.93.0-nightly
LLVM version: 21.1.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-AArch64Armv8-A or later processors in AArch64 modeT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions