Broken image for linux/arm/v7
まだ誰も着手していません。
評価
調査の方向性
まず linux/arm/v7 向けの Docker イメージのビルドと、標準の sh.rustup.rs インストーラーをどのように呼び出しているかを調査し、次に報告された cargo install の失敗を再現してください。linux/arm/v7 イメージが Rust を正しくインストールし、報告されたアーキテクチャまたはファイルシステムのエラーなしに Rust プロジェクトをビルドできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi all,
I discovered a bit of a problem with the linux/arm/v7 version of the Rust image - attempting to build Rust projects with it breaks in various mysterious ways with errors like this:
> [builder 6/12] RUN cargo install cargo-build-dependencies:
#14 0.834 Updating crates.io index
#14 1.590 warning: spurious network error (2 tries remaining): could not read directory '/usr/local/cargo/registry/index/github.com-1285ae84e5963aae/.git//refs': Value too large for defined data type; class=Os (2)
#14 2.087 warning: spurious network error (1 tries remaining): could not read directory '/usr/local/cargo/registry/index/github.com-1285ae84e5963aae/.git//refs': Value too large for defined data type; class=Os (2)
#14 2.628 error: failed to fetch `https://github.com/rust-lang/crates.io-index`
#14 2.628
#14 2.628 Caused by:
#14 2.629 could not read directory '/usr/local/cargo/registry/index/github.com-1285ae84e5963aae/.git//refs': Value too large for defined data type; class=Os (2)
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c cargo install cargo-build-dependencies]: exit code: 101
I can't say for certain the cause, but I can say that if you install Rust on linux/arm/v7 using the "standard" sh.rustup.rs script, it is also broken, because of this function:
get_bitness() {
need_cmd head
# Architecture detection without dependencies beyond coreutils.
# ELF files start out "\x7fELF", and the following byte is
# 0x01 for 32-bit and
# 0x02 for 64-bit.
# The printf builtin on some shells like dash only supports octal
# escape sequences, so we use those.
local _current_exe_head
_current_exe_head=$(head -c 5 /proc/self/exe )
if [ "$_current_exe_head" = "$(printf '\177ELF\001')" ]; then
echo 32
elif [ "$_current_exe_head" = "$(printf '\177ELF\002')" ]; then
echo 64
else
err "unknown platform bitness"
fi
}
This fails to set the bitness to 32bit, instead falling through to "unknown platform bitness" (because no /proc/self/exe), resulting in a broken installation of Rust.
If the Docker image build uses that standard rustup script, that's probably why the image is also broken.
- 主要言語
- Dockerfile
- スター
- 538
- フォーク
- 110
- 平均マージ
- 10分
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rust-lang/docker-rust のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
rust-lang/docker-rust#159 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
rust-lang/docker-rust#278 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
rust-lang/docker-rust#264 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
rust-lang/docker-rust#263 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
rust-lang/docker-rust#248 · コメント 1 件 ·
rust-lang/docker-rust の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
kubernetes-sigs/headlamp#7950 ·
メンテナーはふだん 3 日以内に返信
-
component/gpu-kubelet-plugin component/helm needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
kubernetes-sigs/dra-driver-nvidia-gpu#1559 ·
メンテナーはふだん 1 日以内に返信
-
OSCI'26
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
GauravKarakoti/SecureFlow#1301 ·
メンテナーはふだん 1 日以内に返信
-
bug module plugins
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ansible-collections/community.general#12960 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Compare-VersionLessThan in jenkins-support.psm1 silently skips plugin upgrades on maintenance bumps and major version transitions対応中かも @phorialexe が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信