Skip to content

AIX fails to build #141543

Closed
Closed
@Thomasdezeeuw

Description

@Thomasdezeeuw

Hit this in a CI run of Mio: https://github.com/tokio-rs/mio/actions/runs/15226132067/job/42828397158.

Relevant information:

rustc 1.89.0-nightly (3e674b06b 2025-05-23)
binary: rustc
commit-hash: 3e674b06b5c74adea662bd0b0b06450757994b16
commit-date: 2025-05-23
host: x86_64-unknown-linux-gnu
release: 1.89.0-nightly
LLVM version: 20.1.5

Build log:

  error[E0425]: cannot find function `getenv` in this scope
     --> /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/os.rs:285:22
      |
  285 |     if let Some(p) = getenv(OsStr::from_bytes("PATH".as_bytes())) {
      |                      ^^^^^^ not found in this scope
      |
  help: consider importing one of these functions
      |
  8   + use crate::sys::env::getenv;
      |
  8   + use libc::getenv;
      |
  
  For more information about this error, try `rustc --explain E0425`.
  error: could not compile `std` (lib) due to 1 previous error
error: process didn't exit successfully: `/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo check -Z build-std=std,panic_abort --target powerpc64-ibm-aix --manifest-path Cargo.toml --all-features` (exit status: 101)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-aixOS: Big Blue's Advanced Interactive eXecutive..T-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