Repository navigation
std: fix build on RTEMS after libc 0.2.191 - #165629
Merged
Merged
Conversation
Collaborator
|
Thanks for the pull request, and welcome! The Rust Project has assigned @Mark-Simulacrum (or someone else) to review your changes, you should hear from them (or someone else) within the next two weeks. Please see the contribution instructions and our LLM policy for more information. Why was this reviewer chosen?The reviewer was selected based on:
|
Member
|
@bors r+ |
Contributor
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 8, 2026
…uwer Rollup of 7 pull requests Successful merges: - #160777 (Document and correct assignment order for yield and inline-asm) - #165224 (Ensure all output is printed from lldb debugger tester) - #165629 (std: fix build on RTEMS after libc 0.2.191) - #163624 (String::retain: convert only the untouched UTF-8 tail) - #164519 (Add Documentation for the `crate_type` attribute) - #165249 (Fix unused attribute duplication for lint attributes) - #165643 (oneshot_multi_task_recv_then_send test: wait for test thread to finish)
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 8, 2026
Rollup merge of #165629 - lazerg:fix/rtems-stat-timespec, r=Mark-Simulacrum std: fix build on RTEMS after libc 0.2.191 libc 0.2.191 changed newlib's `stat` on RTEMS to use `st_atim`/`st_mtim`/`st_ctim` timespecs, so std stopped compiling for armv7-rtems-eabihf. This reads the timestamps from the timespec fields, which also gives RTEMS real nanosecond values instead of 0. I also added RTEMS to the `ReadDir::dir` fallback list: libc has no `dirfd` for it, and the other `dirfd` cfg lists in that file already skip RTEMS. Checked with `cargo check -Zbuild-std --target armv7-rtems-eabihf`. Fixes #164719
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
libc 0.2.191 changed newlib's
staton RTEMS to usest_atim/st_mtim/st_ctimtimespecs, so std stopped compiling for armv7-rtems-eabihf. This reads the timestamps from the timespec fields, which also gives RTEMS real nanosecond values instead of 0. I also added RTEMS to theReadDir::dirfallback list: libc has nodirfdfor it, and the otherdirfdcfg lists in that file already skip RTEMS.Checked with
cargo check -Zbuild-std --target armv7-rtems-eabihf.Fixes #164719