Skip to content

stdlib fails to build on x86_64-unknown-haiku #145952

@Darksonn

Description

@Darksonn

I tried this command:

cargo +nightly build -Zbuild-std --target x86_64-unknown-haiku

I expected to see this happen: The standard library would successfully build.

Instead, this happened:

error[E0599]: no associated item named `B_FIND_PATH_IMAGE_PATH` found for type `u32` in the current scope
   --> /home/aliceryhl/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/os.rs:472:40
    |
472 |             libc::path_base_directory::B_FIND_PATH_IMAGE_PATH,
    |                                        ^^^^^^^^^^^^^^^^^^^^^^ associated item not found in `u32`

Meta

rustc --version --verbose:

rustc 1.91.0-nightly (cdb45c87e 2025-08-27)
binary: rustc
commit-hash: cdb45c87e2cd43495379f7e867e3cc15dcee9f93
commit-date: 2025-08-27
host: x86_64-unknown-linux-gnu
release: 1.91.0-nightly
LLVM version: 21.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-haikuTarget: Be extant; from mouldering old leaves; spring arrives againT-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions