Cross-compilation does not work due to failing docker build step
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- cmake, docker, rust
- 領域
- build-system
調査の方向性
Dockerfile から始め、失敗する CMake コマンドの前に、ビルドコンテキストが libgatekeeper ディレクトリをどのようにマッピングしているかを調べます。cross build --target=armv7-unknown-linux-gnueabihf または報告された docker build コマンドで再現します。CMake が libgatekeeper/CMakeLists.txt を見つけ、クロスコンパイルイメージが正常にビルドされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Running cross build is not working due to a failure with a docker step:
$ cross build --target=armv7-unknown-linux-gnueabihf
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
stable-x86_64-unknown-linux-gnu unchanged - rustc 1.85.1 (4eb161250 2025-03-15)
info: checking for self-update
info: downloading component 'rust-src'
info: installing component 'rust-src'
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
^[[DThe command '/bin/sh -c cd libgatekeeper && mkdir build && cd build && cmake .. -DCMAKE_TOOLCHAIN_FILE=/armv7-toolchain.cmake -DCMAKE_INSTALL_PREFIX=/usr/arm-linux-gnueabihf/ && make && make in
stall' returned a non-zero code: 1
Error:
0: could not run container
1: when building custom image
2: when building dockerfile
3: `docker build --label 'org.cross-rs.for-cross-target=armv7-unknown-linux-gnueabihf' --label 'org.cross-rs.workspace_root=/home/wilnil/Code/computersciencehouse/gatekeeper-door' --tag cross-custom-gatekeeper-door:armv7-u
nknown-linux-gnueabihf-4a201 --build-arg 'CROSS_DEB_ARCH=armhf' --build-arg 'CROSS_BASE_IMAGE=ghcr.io/cross-rs/armv7-unknown-linux-gnueabihf:0.2.5' --file ./Dockerfile /home/wilnil/Code/computersciencehouse/gatekeeper-door` f
ailed with exit status: 1
Running this command individually produces this output:
$ docker build --label 'org.cross-rs.for-cross-target=armv7-unknown-linux-gnueabihf' --label 'org.cross-rs.workspace_root=/home/wilnil/Code/computersciencehouse/gatekeeper-door' --tag cross-custom-gatekeeper-door:armv7-unknown-linux-gnueabihf-4a201 --build-arg 'CROSS_DEB_ARCH=armhf' --build-arg 'CROSS_BASE_IMAGE=ghcr.io/cross-rs/armv7-unknown-linux-gnueabihf:0.2.5' --file ./Dockerfile /home/wilnil/Code/computersciencehouse/gatekeeper-door
...
Step 10/13 : RUN cd libgatekeeper && mkdir build && cd build && cmake .. -DCMAKE_TOOLCHAIN_FILE=/armv7-toolchain.cmake -DCMAKE_INSTALL_PREFIX=/usr/arm-linux-gnueabihf/ && make && make install
---> Running in 61c9cc052cc5
CMake Warning:
Ignoring extra path from command line:
".."
CMake Error: The source directory "/libgatekeeper" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
The command '/bin/sh -c cd libgatekeeper && mkdir build && cd build && cmake .. -DCMAKE_TOOLCHAIN_FILE=/armv7-toolchain.cmake -DCMAKE_INSTALL_PREFIX=/usr/arm-linux-gnueabihf/ && make && make install' returned a non-zero code: 1
- 主要言語
- Rust
- スター
- 1
- フォーク
- 5
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ComputerScienceHouse/gatekeeper-door のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
ComputerScienceHouse/gatekeeper-door#14 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
ComputerScienceHouse/gatekeeper-door の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
state:triage-needed
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
scanaislop/aislop#482 ·
メンテナーはふだん 1 日以内に返信
-
docs(skills): issue-first should reference an existing Linear ticket instead of filing a duplicateオープンdocumentation
難易度 1/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
chatmail/core#8824 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信