Skip to content

Build bat on AIX #3212

Open
Open
@arozehnal

Description

@arozehnal

cargo install --locked bat
Updating crates.io index
Downloaded bat v0.25.0
Downloaded 1 crate (2.0 MB) in 1.44s
Installing bat v0.25.0
Updating crates.io index
warning: package rgb v0.8.34 in Cargo.lock is yanked in registry crates-io, consider running without --locked
Updating crates.io index
Downloaded num-conv v0.1.0
Downloaded shell-escape v0.1.5
Downloaded ident_case v1.0.1

....
...
Compiling quote v1.0.35
Compiling jobserver v0.1.25
Compiling syn v2.0.93
Compiling errno v0.3.3
error[E0609]: no field sa_sigaction on type sigaction
--> /root/.cargo/registry/src/index.crates.io-d11c229612889eed/jobserver-0.1.25/src/unix.rs:246:13
|
246 | new.sa_sigaction = sigusr1_handler as usize;
| ^^^^^^^^^^^^ unknown field
|
= note: available fields are: sa_union, sa_mask, sa_flags

Compiling hashbrown v0.14.1
For more information about this error, try rustc --explain E0609.
error: could not compile jobserver (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile bat v0.25.0, intermediate artifacts can be found at /tmp/cargo-install1GaWRH.

I am not a programmer, I just wanted to compile bt for AIX.
The compilation ended up with errors see attachment.
Am I making a mistake somewhere? Is there any way to fix it?

AIX 7.2

rustc -V
rustc 1.84.1 (e98916a71 2025-02-05) (IBM Open SDK for Rust on AIX 1.84 (5900-BND, 5765-J24))
Community Edition.

cargo -V
cargo 1.84.1 (66221abde 2024-11-19)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions