`pthread_condattr_setclock`function missing for l4re target
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
調査の方向性
Start by locating the pthread_condattr_setclock declarations in libc and comparing their platform and target cfgs with the l4re targets. The report reproduces a missing binding while building parking_lot_core with -Zbuild-std; verify the affected l4re targets and add coverage for the missing declaration. Done when those builds can resolve the function.
索引モデルが issue の本文から書いたものです。
説明
rustc 1.101.0-nightly (080cc2714 2026-10-11)
build with -Zbuild-std
for all l4re targets
error[: cannot find function `pthread_condattr_setclock` in crate `libc`
╭▸ /cargo/registry/25cdd57fae9f0462/parking_lot_core-0.9.12/src/thread_parker/unix.rs:141:23
│
141 │ let r = libc::pthread_condattr_setclock(attr.as_mut_ptr(), libc::CLOCK_MONOTONIC);
│ ━━━━━━━━━━━━━━━━━━━━━━━━━ not found in `libc`
╰╴
note: similarly named function `pthread_condattr_destroy` defined here
╭▸ /cargo/registry/25cdd57fae9f0462/libc-0.2.190/src/unix/mod.rs:1452:5
│
1452 │ pub fn pthread_condattr_destroy(attr: *mut crate::pthread_condattr_t) -> c_int;
╰╴ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
help: a function with a similar name exists
╭╴
141 - let r = libc::pthread_condattr_setclock(attr.as_mut_ptr(), libc::CLOCK_MONOTONIC);
141 + let r = libc::pthread_condattr_destroy(attr.as_mut_ptr(), libc::CLOCK_MONOTONIC);
╰╴
For more information about this error, try `rustc --explain E0425`.
error: could not compile `parking_lot_core` (lib) due to 1 previous error
- 主要言語
- Rust
- スター
- 2.6k
- フォーク
- 1.3k
- 平均マージ
- 4日 3時間
- マージ済み PR(30日)
- 71
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rust-lang/libc のほかの issue
-
libc-test: some semver files are never checked対応中かも @Deepak-negi11 が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
rust-lang/libc#5622 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
A-CI C-discussion
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
rust-lang/libc#5209 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
rust-lang/libc#5624 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
-
C-bug
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
rust-lang/libc#5602 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
0.2.190: `_dyld_image_count` and the other dyld image functions are now macOS-only, breaking `backtrace` on iOS対応中かも @artile が 12 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
rust-lang/libc#5601 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
pop-os/cosmic-comp#2956 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area:release criticality:p3 documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
registrystack/registry-stack#2085 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
libp2p/rust-libp2p#6694 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
EmbarkStudios/cargo-deny#910 ·