Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`pthread_condattr_setclock`function missing for l4re target

オープン
#5,628 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 の本文から書いたものです。

説明

C-API-request

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rust-lang/libc のほかの issue

rust-lang/libc の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。