SYS_kexec_file_load missing for aarch64-unknown-linux-musl

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

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
90/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
linux, rust

調査の方向性

src/unix/linux_like/linux/musl/b64/aarch64/mod.rs を読み、syscall 定数を #3009 で追加された aarch64-unknown-linux-gnu の定義と比較してください。値が 294 の不足している定数を追加し、aarch64 musl ターゲットがコンパイルでき、その定数が利用可能であることを確認してください。

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

説明

SYS_kexec_file_load is defined for aarch64-unknown-linux-gnu (added in #3009) but not for aarch64-unknown-linux-musl. It's missing from src/unix/linux_like/linux/musl/b64/aarch64/mod.rs on both main and libc-0.2 (checked against 0.2.191).

arm64 uses the generic syscall table, so the value is 294, the same as the gnu constant.

I hit this building a crate that installs a seccomp filter, which compiles on every Linux target I build except aarch64 musl:

error[E0425]: cannot find value `SYS_kexec_file_load` in crate `libc`

For now I'm using the number directly on that one target. Happy to send a PR adding the constant if that helps.

主要言語
Rust
スター
2.6k
フォーク
1.3k
平均マージ
2日 10時間
マージ済み PR(30日)
26

環境構築

はじめの一歩

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

rust-lang/libc のほかの issue

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

似ている issue

Rust の issue をもっと見る

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

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