ci: 32 bit android is broken
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
Looks like this PR broke caused some breakage for android workflow:
[2026-01-21 00:32:04] error[E0308]: mismatched types
[2026-01-21 00:32:04] --> tests/uutests/src/lib/util.rs:1150:54
[2026-01-21 00:32:04] |
[2026-01-21 00:32:04] 1150 | .is_ok_and(|s| SFlag::from_bits_truncate(s.st_mode).contains(SFlag::S_IFIFO))
[2026-01-21 00:32:04] | ------------------------- ^^^^^^^^^ expected `u16`, found `u32`
[2026-01-21 00:32:04] | |
[2026-01-21 00:32:04] | arguments to this function are incorrect
[2026-01-21 00:32:04] |
[2026-01-21 00:32:04] note: associated function defined here
[2026-01-21 00:32:04] --> /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/sys/stat.rs:14:1
[2026-01-21 00:32:04] |
[2026-01-21 00:32:04] 14 | / libc_bitflags!(
[2026-01-21 00:32:04] 15 | | /// "File type" flags for `mknod` and related functions.
[2026-01-21 00:32:04] 16 | | pub struct SFlag: mode_t {
[2026-01-21 00:32:04] 17 | | S_IFIFO;
[2026-01-21 00:32:04] ... |
[2026-01-21 00:32:04] 26 | | );
[2026-01-21 00:32:04] | |_^
[2026-01-21 00:32:04] = note: this error originates in the macro `$crate::__impl_bitflags` which comes from the expansion of the macro `libc_bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
[2026-01-21 00:32:04] help: you can convert a `u32` to a `u16` and panic if the converted value doesn't fit
[2026-01-21 00:32:04] |
[2026-01-21 00:32:04] 1150 | .is_ok_and(|s| SFlag::from_bits_truncate(s.st_mode.try_into().unwrap()).contains(SFlag::S_IFIFO))
[2026-01-21 00:32:04] | ++++++++++++++++++++
[2026-01-21 00:32:04]
https://github.com/uutils/coreutils/actions/runs/21192159773/job/60960635679?pr=10404
Originally posted by @xtqqczze in https://github.com/uutils/coreutils/issues/10364#issuecomment-3775685292
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tests/uutests/src/lib/util.rs around line 1150 and inspect the Android workflow and linked Actions run for the 32-bit failure. Reproduce or rerun the affected workflow and verify that the 32-bit Android job compiles and completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- ci-cd
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100