Skip to content

nuttx: add ci check#666

Open
wllenyj wants to merge 1 commit into
rust-lang:masterfrom
wllenyj:ci
Open

nuttx: add ci check#666
wllenyj wants to merge 1 commit into
rust-lang:masterfrom
wllenyj:ci

Conversation

@wllenyj

@wllenyj wllenyj commented Jul 21, 2026

Copy link
Copy Markdown
Contributor
  • need to wait libc publish
  • bump the libc version in std.
std/Cargo.toml
36:libc = { version = "0.2.185", default-features = false, features = [

@wllenyj
wllenyj marked this pull request as draft July 21, 2026 16:27
@Thomasdezeeuw

Copy link
Copy Markdown
Collaborator

WIP: need to wait libc publish

Can you bump the libc version once it's published as well?

@wllenyj

wllenyj commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

WIP: need to wait libc publish

Can you bump the libc version once it's published as well?

Ok, the SO_KEEPALIVE is defined in the patch of rust-lang/libc@ac84f20#diff-9bf75da1ce877f6ca378ddd6abe946de5f6475cca4480072e6069e5a134bca3cR523

@wllenyj
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`

```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants