Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build failure on Win11 #2182

Open
1 task done
zyphlar opened this issue Dec 5, 2024 · 0 comments
Open
1 task done

Docker build failure on Win11 #2182

zyphlar opened this issue Dec 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zyphlar
Copy link

zyphlar commented Dec 5, 2024

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 2105a7b) 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

@zyphlar zyphlar added the bug Something isn't working label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant