Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Docker build failure on Win11

未关闭
#2,182 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
cmake, docker

调研方向

在 Windows 11 上复现 Docker build 和 run 命令,然后检查第 820 行附近的 src/CMakeLists.txt,以及其中引用的 CMakeLists.txt 和 shell scripts。检查在容器 build 期间如何传递 TARGET_DEVICE 或为其设置默认值。当 v1.15.0 Docker 镜像从 git HEAD 运行且不报告 Invalid TARGET_DEVICE 时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

bug
Verification
  • I searched for similar bug reports (including closed issues) and found none was relevant.
What happened?

Invalid TARGET_DEVICE when running Docker from built HEAD or Docker Hub

What should happen instead?

Docker runs from git HEAD (1.15.0 2105a7b6) without errors

Reproduction steps
C:\gitroot\infinitime [main +7 ~0 -0 !]> docker image build -t infinitime-build-head ./docker
// ...snip...
C:\gitroot\infinitime [main +7 ~0 -0 !]> docker run --rm -it -v "C:\gitroot\infinitime:/sources" infinitime-build-head
+ set -e
+ export TOOLS_DIR=/opt
+ TOOLS_DIR=/opt
+ export SOURCES_DIR=/sources
+ SOURCES_DIR=/sources
+ export BUILD_DIR=/sources/build
+ BUILD_DIR=/sources/build
+ export OUTPUT_DIR=/sources/build/output
+ OUTPUT_DIR=/sources/build/output
+ export NPM_DIR=/sources/build/npm
+ NPM_DIR=/sources/build/npm
+ export npm_config_cache=/sources/build/npm
+ npm_config_cache=/sources/build/npm
+ export BUILD_TYPE=Release
+ BUILD_TYPE=Release
+ export GCC_ARM_VER=10.3-2021.10
+ GCC_ARM_VER=10.3-2021.10
+ export NRF_SDK_VER=nRF5_SDK_15.3.0_59ac345
+ NRF_SDK_VER=nRF5_SDK_15.3.0_59ac345
++ uname -m
+ MACHINE=x86_64
+ '[' x86_64 = arm64 ']'
+ export GCC_ARM_PATH=gcc-arm-none-eabi-10.3-2021.10
+ GCC_ARM_PATH=gcc-arm-none-eabi-10.3-2021.10
+ '[' false = false ']'
+ main
+ local target=
+ mkdir -p /opt
+ '[' '!' -d /opt/gcc-arm-none-eabi-10.3-2021.10 ']'
+ '[' '!' -d /opt/nRF5_SDK_15.3.0_59ac345 ']'
+ '[' '!' -d /opt/mcuboot ']'
+ mkdir -p /sources/build
+ CmakeGenerate
+ cmake -G 'Unix Makefiles' -S /sources -B /sources/build -DCMAKE_BUILD_TYPE=Release -DARM_NONE_EABI_TOOLCHAIN_PATH=/opt/gcc-arm-none-eabi-10.3-2021.10 -DNRF5_SDK_PATH=/opt/nRF5_SDK_15.3.0_59ac345 -DBUILD_DFU=1 -DBUILD_RESOURCES=1
PROJECT_GIT_COMMIT_HASH_SUCCESS? 0

BUILD CONFIGURATION
-------------------
    * Mode : Release
    * Version : 1.15.0
    * Toolchain : /opt/gcc-arm-none-eabi-10.3-2021.10
    * GitRef(S) : 467ceffb
    * NRF52 SDK : /opt/nRF5_SDK_15.3.0_59ac345
    * Target device :
    * Build DFU (using adafruit-nrfutil) : Enabled
    * Build resources : Enabled
CMake Error at src/CMakeLists.txt:820 (message):
  Invalid TARGET_DEVICE
More details?

Nothing that I can see would indicate why TARGET_DEVICE wouldn't be the default of PINETIME. I checked out CMakeLists.txt and *.sh with LF line endings as well.

Version

v1.15.0

Companion app

No response

主要语言
C
星标
3.4k
派生
1.1k
平均合并
23 小时 18 分钟
30 天内合并 PR
1

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

InfiniTimeOrg/InfiniTime 的其他 Issue

查看 InfiniTimeOrg/InfiniTime 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。