Skip to content

example-application does not build after 4.1.0Β #89951

@bastienjauny

Description

@bastienjauny

Describe the bug
Following the example application README instructions, the build fails if we use a version of Zephyr post 4.1.0. More precisely, this commit is causing a Kconfig warning, which in turns abort the build.

To Reproduce

west init -m https://github.com/zephyrproject-rtos/example-application --mr main ws
west update
cd ws
west build -b custom_plank  example_application/app -- -DEXTRA_CONF_FILE=debug.conf

Expected behavior
The example app builds succesfully.

Impact
Minor annoyance but the example application is the entrypoint for most of the newcomers.

Logs and console output

Parsing /home/bajau/trainings/ws/example-application/app/Kconfig
Loaded configuration '/home/bajau/trainings/ws/build/zephyr/.config'

warning: CMSIS_CORE_HAS_SYSTEM_CORE_CLOCK (defined at soc/nxp/imxrt/imxrt6xx/Kconfig.defconfig:8, modules/cmsis_6/Kconfig:23) has direct dependencies (SOC_SERIES_IMXRT6XX && SOC_FAMILY_NXP_IMXRT) || (HAS_CMSIS_CORE && 0) with value n, but is currently being y-selected by the following symbols:
 - SOC_FAMILY_NORDIC_NRF (defined at soc/nordic/Kconfig.soc:19, soc/nordic/Kconfig:9), with value y, direct dependencies y (value: y), and select condition ARM (value: y)

error: Aborting due to Kconfig warnings

CMake Error at /home/bajau/trainings/ws/zephyr/cmake/modules/kconfig.cmake:365 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  /home/bajau/trainings/ws/zephyr/cmake/modules/zephyr_default.cmake:131 (include)
  /home/bajau/trainings/ws/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/bajau/trainings/ws/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
  CMakeLists.txt:8 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/home/bajau/.local/share/pipx/venvs/west/bin/python -B/home/bajau/trainings/ws/build -GNinja -DEXTRA_CONF_FILE=debug.conf -S/home/bajau/trainings/ws/example-application/app

Environment (please complete the following information):

  • OS: Linux
  • Toolchain Zephyr SDK 0.17.0
  • Errors happen starting with commit f726cb5

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue is a bug, or the PR is fixing a bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions