`xtensa-*-espidf` target docs are insufficient for a working build

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

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
42/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
documentation

調査の方向性

The failure comes from the esp-idf-sys crate's checks/libc.rs assertions, which fail unless --cfg espidf_picolibc is passed in the rustflags, and the payload does not name the docs page to update. Read the error output and the nine comments to see whether maintainers have already agreed on the wording. Done means the xtensa-*-espidf target docs state the required rustflags for a working -Zbuild-std build.

索引モデルが issue の本文から書いたものです。

説明

-Zbuild-std A-docs C-bug O-ESP-IDF T-libs

rustc 1.102.0-nightly (20fe935d5 2026-11-23)
build with -Zbuild-std
targets: xtensa-*-espidf

error[: evaluation panicked: The ESP-IDF is built with picolibc, but the `libc` crate is not: add `--cfg espidf_picolibc` to the rustflags
    ╭▸ index.crates.io-1949cf8c6b5b557f/esp-idf-sys-0.39.0/src/checks/libc.rs:407:15
    │
407 │   const _: () = assert!(
    │ ┏━━━━━━━━━━━━━━━┛
408 │ ┃     sys::O_CREAT as i64 == libc::O_CREAT as i64,
409 │ ┃     "The ESP-IDF is built with picolibc, but the `libc` crate is not: add `--cfg espidf_picolibc` to the rustflags"
410 │ ┃ );
    ╰╴┗━┛ evaluation of `checks::libc::_` failed here
error[: evaluation panicked: libc/esp-idf-sys constant mismatch for `O_APPEND`: esp-idf=1024 libc=8
    ╭▸ index.crates.io-1949cf8c6b5b557f/esp-idf-sys-0.39.0/src/checks/libc.rs:21:13
    │
 21 │ ┏             compile_assert!(
 22 │ ┃                 sys::$ident as i64 == libc::$ident as i64,
 23 │ ┃                 "libc/esp-idf-sys constant mismatch for `", stringify!($ident), "`: esp-idf=",
 24 │ ┃                 sys::$ident as i64 => fmt::<i64>(),
 25 │ ┃                 " libc=", libc::$ident as i64 => fmt::<i64>()
 26 │ ┃             );
    │ ┗━━━━━━━━━━━━━┛ evaluation of `checks::libc::_` failed here
    │
    ⸬  /cargo/build-dir/xtensa-esp32s3-espidf/src/build/esp-idf-sys/2eaf1980334d8c59/out/libc_checks.rs:265:1
    │
265 │   check_constants!(O_APPEND);
    │   ────────────────────────── in this macro invocation
    │
    ╰ note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `check_constants` (in Nightly builds, run with -Z macro-backtrace for more info)
error[: evaluation panicked: libc/esp-idf-sys constant mismatch for `O_CREAT`: esp-idf=64 libc=512
    ╭▸ index.crates.io-1949cf8c6b5b557f/esp-idf-sys-0.39.0/src/checks/libc.rs:21:13
    │
 21 │ ┏             compile_assert!(
 22 │ ┃                 sys::$ident as i64 == libc::$ident as i64,
 23 │ ┃                 "libc/esp-idf-sys constant mismatch for `", stringify!($ident), "`: esp-idf=",
 24 │ ┃                 sys::$ident as i64 => fmt::<i64>(),
 25 │ ┃                 " libc=", libc::$ident as i64 => fmt::<i64>()
 26 │ ┃             );
    │ ┗━━━━━━━━━━━━━┛ evaluation of `checks::libc::_` failed here
    │
    ⸬  /cargo/build-dir/xtensa-esp32s3-espidf/src/build/esp-idf-sys/2eaf1980334d8c59/out/libc_checks.rs:267:1
    │
267 │   check_constants!(O_CREAT);
    │   ───────────────────────── in this macro invocation
    │
    ╰ note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `check_constants` (in Nightly builds, run with -Z macro-backtrace for more info)
error[: evaluation panicked: libc/esp-idf-sys constant mismatch for `O_TRUNC`: esp-idf=512 libc=1024
    ╭▸ index.crates.io-1949cf8c6b5b557f/esp-idf-sys-0.39.0/src/checks/libc.rs:21:13
    │
 21 │ ┏             compile_assert!(
 22 │ ┃                 sys::$ident as i64 == libc::$ident as i64,
 23 │ ┃                 "libc/esp-idf-sys constant mismatch for `", stringify!($ident), "`: esp-idf=",
 24 │ ┃                 sys::$ident as i64 => fmt::<i64>(),
 25 │ ┃                 " libc=", libc::$ident as i64 => fmt::<i64>()
 26 │ ┃             );
    │ ┗━━━━━━━━━━━━━┛ evaluation of `checks::libc::_` failed here
    │
    ⸬  /cargo/build-dir/xtensa-esp32s3-espidf/src/build/esp-idf-sys/2eaf1980334d8c59/out/libc_checks.rs:273:1
    │
273 │   check_constants!(O_TRUNC);
    │   ───────────────────────── in this macro invocation
    │
    ╰ note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `check_constants` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0080`.
error: could not compile `esp-idf-sys` (lib) due to 4 previous errors
主要言語
Rust
スター
123k
フォーク
16.6k
平均マージ
2日 17時間
マージ済み PR(30日)
532

環境構築

はじめの一歩

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

rust-lang/rust のほかの issue

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

似ている issue

Rust の issue をもっと見る

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

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