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

Cross-compilation does not work due to failing docker build step

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

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

評価

難易度
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 はありません

環境構築

はじめの一歩

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

ComputerScienceHouse/gatekeeper-door のほかの issue

ComputerScienceHouse/gatekeeper-door の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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