nuttx: add ci check#666
Open
wllenyj wants to merge 1 commit into
Open
Conversation
wllenyj
marked this pull request as draft
July 21, 2026 16:27
Collaborator
Can you bump the libc version once it's published as well? |
Contributor
Author
Ok, the |
wllenyj
marked this pull request as ready for review
July 22, 2026 02:04
Signed-off-by: wanglei <wllenyj@gmail.com>
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this pull request
Jul 22, 2026
bump std libc to 0.2.189 Upgrade the std libc version to the latest `v0.2.189` from `v0.2.185`. There are too many changes between `v0.2.186` and `v0.2.187`, I'm not sure if `libc`'s update strategy is one version at a time, or if it allows upgrading multiple versions at once. I now need to resolve the CI failure caused by `libc::SO_KEEPALIVE` in the `socket2` crate for rust-lang/socket2#666 ``` hide running `cargo check -Z build-std=std,panic_abort --target thumbv8m.main-nuttx-eabihf --no-default-features` on socket2 (1/2) Updating crates.io index Locking 3 packages to latest compatible versions Downloading crates ... Downloaded libc v0.2.189 Updating crates.io index Downloading crates ... Downloaded addr2line v0.27.0 Downloaded foldhash v0.2.0 Downloaded getopts v0.2.24 Downloaded cfg-if v1.0.4 Downloaded memchr v2.7.6 Downloaded rustc-literal-escaper v0.0.8 Downloaded object v0.39.1 Downloaded rustc-demangle v0.1.28 Downloaded libc v0.2.185 Downloaded adler2 v2.0.1 Downloaded gimli v0.34.0 Downloaded hashbrown v0.17.1 Downloaded miniz_oxide v0.9.1 Compiling compiler_builtins v0.1.160 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/compiler-builtins/compiler-builtins) Compiling core v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core) Compiling libc v0.2.185 Compiling object v0.39.1 Compiling std v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std) Compiling libc v0.2.189 Compiling rustc-std-workspace-core v1.99.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core) Compiling alloc v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc) Compiling adler2 v2.0.1 Compiling memchr v2.7.6 Compiling unwind v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind) Compiling cfg-if v1.0.4 Compiling rustc-demangle v0.1.28 Compiling panic_abort v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_abort) Compiling rustc-literal-escaper v0.0.8 Compiling rustc-std-workspace-alloc v1.99.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-alloc) Compiling panic_unwind v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_unwind) Compiling gimli v0.34.0 Compiling hashbrown v0.17.1 Compiling miniz_oxide v0.9.1 Compiling std_detect v0.1.5 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std_detect) Compiling addr2line v0.27.0 error[E0425]: cannot find value `SO_KEEPALIVE` in crate `libc` --> /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/net/connection/socket/unix.rs:462:59 | 462 | unsafe { setsockopt(self, libc::SOL_SOCKET, libc::SO_KEEPALIVE, keepalive as c_int) } | ^^^^^^^^^^^^ not found in `libc` error[E0425]: cannot find value `SO_KEEPALIVE` in crate `libc` --> /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/net/connection/socket/unix.rs:466:76 | 466 | let raw: c_int = unsafe { getsockopt(self, libc::SOL_SOCKET, libc::SO_KEEPALIVE)? }; | ^^^^^^^^^^^^ not found in `libc` ```
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this pull request
Jul 22, 2026
bump std libc to 0.2.189 Upgrade the std libc version to the latest `v0.2.189` from `v0.2.185`. There are too many changes between `v0.2.186` and `v0.2.187`, I'm not sure if `libc`'s update strategy is one version at a time, or if it allows upgrading multiple versions at once. I now need to resolve the CI failure caused by `libc::SO_KEEPALIVE` in the `socket2` crate for rust-lang/socket2#666 ``` hide running `cargo check -Z build-std=std,panic_abort --target thumbv8m.main-nuttx-eabihf --no-default-features` on socket2 (1/2) Updating crates.io index Locking 3 packages to latest compatible versions Downloading crates ... Downloaded libc v0.2.189 Updating crates.io index Downloading crates ... Downloaded addr2line v0.27.0 Downloaded foldhash v0.2.0 Downloaded getopts v0.2.24 Downloaded cfg-if v1.0.4 Downloaded memchr v2.7.6 Downloaded rustc-literal-escaper v0.0.8 Downloaded object v0.39.1 Downloaded rustc-demangle v0.1.28 Downloaded libc v0.2.185 Downloaded adler2 v2.0.1 Downloaded gimli v0.34.0 Downloaded hashbrown v0.17.1 Downloaded miniz_oxide v0.9.1 Compiling compiler_builtins v0.1.160 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/compiler-builtins/compiler-builtins) Compiling core v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core) Compiling libc v0.2.185 Compiling object v0.39.1 Compiling std v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std) Compiling libc v0.2.189 Compiling rustc-std-workspace-core v1.99.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core) Compiling alloc v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc) Compiling adler2 v2.0.1 Compiling memchr v2.7.6 Compiling unwind v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind) Compiling cfg-if v1.0.4 Compiling rustc-demangle v0.1.28 Compiling panic_abort v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_abort) Compiling rustc-literal-escaper v0.0.8 Compiling rustc-std-workspace-alloc v1.99.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-alloc) Compiling panic_unwind v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_unwind) Compiling gimli v0.34.0 Compiling hashbrown v0.17.1 Compiling miniz_oxide v0.9.1 Compiling std_detect v0.1.5 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std_detect) Compiling addr2line v0.27.0 error[E0425]: cannot find value `SO_KEEPALIVE` in crate `libc` --> /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/net/connection/socket/unix.rs:462:59 | 462 | unsafe { setsockopt(self, libc::SOL_SOCKET, libc::SO_KEEPALIVE, keepalive as c_int) } | ^^^^^^^^^^^^ not found in `libc` error[E0425]: cannot find value `SO_KEEPALIVE` in crate `libc` --> /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/net/connection/socket/unix.rs:466:76 | 466 | let raw: c_int = unsafe { getsockopt(self, libc::SOL_SOCKET, libc::SO_KEEPALIVE)? }; | ^^^^^^^^^^^^ not found in `libc` ```
rust-timer
added a commit
to rust-lang/rust
that referenced
this pull request
Jul 23, 2026
Rollup merge of #159699 - wllenyj:bump-libc, r=JohnTitor bump std libc to 0.2.189 Upgrade the std libc version to the latest `v0.2.189` from `v0.2.185`. There are too many changes between `v0.2.186` and `v0.2.187`, I'm not sure if `libc`'s update strategy is one version at a time, or if it allows upgrading multiple versions at once. I now need to resolve the CI failure caused by `libc::SO_KEEPALIVE` in the `socket2` crate for rust-lang/socket2#666 ``` hide running `cargo check -Z build-std=std,panic_abort --target thumbv8m.main-nuttx-eabihf --no-default-features` on socket2 (1/2) Updating crates.io index Locking 3 packages to latest compatible versions Downloading crates ... Downloaded libc v0.2.189 Updating crates.io index Downloading crates ... Downloaded addr2line v0.27.0 Downloaded foldhash v0.2.0 Downloaded getopts v0.2.24 Downloaded cfg-if v1.0.4 Downloaded memchr v2.7.6 Downloaded rustc-literal-escaper v0.0.8 Downloaded object v0.39.1 Downloaded rustc-demangle v0.1.28 Downloaded libc v0.2.185 Downloaded adler2 v2.0.1 Downloaded gimli v0.34.0 Downloaded hashbrown v0.17.1 Downloaded miniz_oxide v0.9.1 Compiling compiler_builtins v0.1.160 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/compiler-builtins/compiler-builtins) Compiling core v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core) Compiling libc v0.2.185 Compiling object v0.39.1 Compiling std v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std) Compiling libc v0.2.189 Compiling rustc-std-workspace-core v1.99.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core) Compiling alloc v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc) Compiling adler2 v2.0.1 Compiling memchr v2.7.6 Compiling unwind v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind) Compiling cfg-if v1.0.4 Compiling rustc-demangle v0.1.28 Compiling panic_abort v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_abort) Compiling rustc-literal-escaper v0.0.8 Compiling rustc-std-workspace-alloc v1.99.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-alloc) Compiling panic_unwind v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_unwind) Compiling gimli v0.34.0 Compiling hashbrown v0.17.1 Compiling miniz_oxide v0.9.1 Compiling std_detect v0.1.5 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std_detect) Compiling addr2line v0.27.0 error[E0425]: cannot find value `SO_KEEPALIVE` in crate `libc` --> /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/net/connection/socket/unix.rs:462:59 | 462 | unsafe { setsockopt(self, libc::SOL_SOCKET, libc::SO_KEEPALIVE, keepalive as c_int) } | ^^^^^^^^^^^^ not found in `libc` error[E0425]: cannot find value `SO_KEEPALIVE` in crate `libc` --> /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/net/connection/socket/unix.rs:466:76 | 466 | let raw: c_int = unsafe { getsockopt(self, libc::SOL_SOCKET, libc::SO_KEEPALIVE)? }; | ^^^^^^^^^^^^ not found in `libc` ```
moabo3li
pushed a commit
to moabo3li/miri
that referenced
this pull request
Jul 23, 2026
bump std libc to 0.2.189 Upgrade the std libc version to the latest `v0.2.189` from `v0.2.185`. There are too many changes between `v0.2.186` and `v0.2.187`, I'm not sure if `libc`'s update strategy is one version at a time, or if it allows upgrading multiple versions at once. I now need to resolve the CI failure caused by `libc::SO_KEEPALIVE` in the `socket2` crate for rust-lang/socket2#666 ``` hide running `cargo check -Z build-std=std,panic_abort --target thumbv8m.main-nuttx-eabihf --no-default-features` on socket2 (1/2) Updating crates.io index Locking 3 packages to latest compatible versions Downloading crates ... Downloaded libc v0.2.189 Updating crates.io index Downloading crates ... Downloaded addr2line v0.27.0 Downloaded foldhash v0.2.0 Downloaded getopts v0.2.24 Downloaded cfg-if v1.0.4 Downloaded memchr v2.7.6 Downloaded rustc-literal-escaper v0.0.8 Downloaded object v0.39.1 Downloaded rustc-demangle v0.1.28 Downloaded libc v0.2.185 Downloaded adler2 v2.0.1 Downloaded gimli v0.34.0 Downloaded hashbrown v0.17.1 Downloaded miniz_oxide v0.9.1 Compiling compiler_builtins v0.1.160 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/compiler-builtins/compiler-builtins) Compiling core v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core) Compiling libc v0.2.185 Compiling object v0.39.1 Compiling std v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std) Compiling libc v0.2.189 Compiling rustc-std-workspace-core v1.99.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core) Compiling alloc v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc) Compiling adler2 v2.0.1 Compiling memchr v2.7.6 Compiling unwind v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind) Compiling cfg-if v1.0.4 Compiling rustc-demangle v0.1.28 Compiling panic_abort v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_abort) Compiling rustc-literal-escaper v0.0.8 Compiling rustc-std-workspace-alloc v1.99.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-alloc) Compiling panic_unwind v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_unwind) Compiling gimli v0.34.0 Compiling hashbrown v0.17.1 Compiling miniz_oxide v0.9.1 Compiling std_detect v0.1.5 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std_detect) Compiling addr2line v0.27.0 error[E0425]: cannot find value `SO_KEEPALIVE` in crate `libc` --> /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/net/connection/socket/unix.rs:462:59 | 462 | unsafe { setsockopt(self, libc::SOL_SOCKET, libc::SO_KEEPALIVE, keepalive as c_int) } | ^^^^^^^^^^^^ not found in `libc` error[E0425]: cannot find value `SO_KEEPALIVE` in crate `libc` --> /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/net/connection/socket/unix.rs:466:76 | 466 | let raw: c_int = unsafe { getsockopt(self, libc::SOL_SOCKET, libc::SO_KEEPALIVE)? }; | ^^^^^^^^^^^^ not found in `libc` ```
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.
Uh oh!
There was an error while loading. Please reload this page.