zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
11k stars 6.69k forks source link

Sample lz4 compression fails to build #61550

Closed danielRep closed 1 year ago

danielRep commented 1 year ago

Describe the bug The sample of lz4 compression is failing to build on at least three boards that I tried to compile: nucleo_f767zi, nrf52840dk_nrf52840 and lpcxpresso55s69_cpu0. On tagged commit v3.4.0 I could correctly build the sample. From the bisect analysis, this commit 2e2163c1bc84f6125629a5e22c82da49852881c1 is the one that introduced the problem.

To Reproduce Steps to reproduce the behavior:

  1. west build -p auto -b nucleo_f767zi samples/compression/lz4

Logs and console output

$ west build -p auto -b nucleo_f767zi samples/compression/lz4
-- west build: making build dir /home/daniel/workspace/zephyrproject/zephyr/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/daniel/workspace/zephyrproject/zephyr/samples/compression/lz4
-- CMake version: 3.27.1
-- Found Python3: /usr/bin/python3.10 (found suitable exact version "3.10.12") found components: Interpreter 
-- Cache files will be written to: /home/daniel/.cache/zephyr
-- Zephyr version: 3.4.99 (/home/daniel/workspace/zephyrproject/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: nucleo_f767zi
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.16.1 (/home/daniel/workspace/zephyr-sdk-0.16.1)
-- Found toolchain: zephyr 0.16.1 (/home/daniel/workspace/zephyr-sdk-0.16.1)
-- Found Dtc: /home/daniel/workspace/zephyr-sdk-0.16.1/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/daniel/workspace/zephyrproject/zephyr/boards/arm/nucleo_f767zi/nucleo_f767zi.dts
-- Generated zephyr.dts: /home/daniel/workspace/zephyrproject/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/daniel/workspace/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/daniel/workspace/zephyrproject/zephyr/build/zephyr/dts.cmake

warning: the default selection LV_Z_MEM_POOL_SYS_HEAP (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:27, modules/lvgl/Kconfig.memory:27, modules/lvgl/Kconfig.memory:27) of <choice> (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:15) is not contained in the choice

warning: the choice symbol LV_Z_MEM_POOL_HEAP_LIB_C (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:21, modules/lvgl/Kconfig.memory:21, modules/lvgl/Kconfig.memory:21) is defined with a prompt outside the choice

warning: the choice symbol LV_Z_MEM_POOL_HEAP_LIB_C (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:21, modules/lvgl/Kconfig.memory:21, modules/lvgl/Kconfig.memory:21) is defined with a prompt outside the choice

warning: the choice symbol LV_Z_MEM_POOL_SYS_HEAP (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:27, modules/lvgl/Kconfig.memory:27, modules/lvgl/Kconfig.memory:27) is defined with a prompt outside the choice

warning: the choice symbol LV_Z_MEM_POOL_SYS_HEAP (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:27, modules/lvgl/Kconfig.memory:27, modules/lvgl/Kconfig.memory:27) is defined with a prompt outside the choice

warning: the default selection LV_Z_BUFFER_ALLOC_STATIC (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:100, modules/lvgl/Kconfig.memory:101, modules/lvgl/Kconfig.memory:101) of <choice> (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:94) is not contained in the choice

warning: the choice symbol LV_Z_BUFFER_ALLOC_STATIC (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:100, modules/lvgl/Kconfig.memory:101, modules/lvgl/Kconfig.memory:101) is defined with a prompt outside the choice

warning: the choice symbol LV_Z_BUFFER_ALLOC_STATIC (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:100, modules/lvgl/Kconfig.memory:101, modules/lvgl/Kconfig.memory:101) is defined with a prompt outside the choice

warning: the choice symbol LV_Z_BUFFER_ALLOC_DYNAMIC (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:110, modules/lvgl/Kconfig.memory:111, modules/lvgl/Kconfig.memory:111) is defined with a prompt outside the choice

warning: the choice symbol LV_Z_BUFFER_ALLOC_DYNAMIC (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:110, modules/lvgl/Kconfig.memory:111, modules/lvgl/Kconfig.memory:111) is defined with a prompt outside the choice

warning: the choice symbol LV_Z_MEM_POOL_HEAP_LIB_C (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:21, modules/lvgl/Kconfig.memory:21, modules/lvgl/Kconfig.memory:21) is defined with a prompt outside the choice

warning: the choice symbol LV_Z_MEM_POOL_SYS_HEAP (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:27, modules/lvgl/Kconfig.memory:27, modules/lvgl/Kconfig.memory:27) is defined with a prompt outside the choice

warning: the choice symbol LV_Z_MEM_POOL_HEAP_LIB_C (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:21, modules/lvgl/Kconfig.memory:21, modules/lvgl/Kconfig.memory:21) is defined with a prompt outside the choice

warning: the choice symbol LV_Z_MEM_POOL_SYS_HEAP (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:27, modules/lvgl/Kconfig.memory:27, modules/lvgl/Kconfig.memory:27) is defined with a prompt outside the choice

warning: the choice symbol LV_Z_BUFFER_ALLOC_STATIC (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:100, modules/lvgl/Kconfig.memory:101, modules/lvgl/Kconfig.memory:101) is defined with a prompt outside the choice

warning: the choice symbol LV_Z_BUFFER_ALLOC_DYNAMIC (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:110, modules/lvgl/Kconfig.memory:111, modules/lvgl/Kconfig.memory:111) is defined with a prompt outside the choice

warning: the choice symbol LV_Z_BUFFER_ALLOC_STATIC (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:100, modules/lvgl/Kconfig.memory:101, modules/lvgl/Kconfig.memory:101) is defined with a prompt outside the choice

warning: the choice symbol LV_Z_BUFFER_ALLOC_DYNAMIC (defined at /home/daniel/workspace/zephyrproject/modules/lib/gui/lvgl/zephyr/Kconfig.memory:110, modules/lvgl/Kconfig.memory:111, modules/lvgl/Kconfig.memory:111) is defined with a prompt outside the choice
Parsing /home/daniel/workspace/zephyrproject/zephyr/Kconfig
Loaded configuration '/home/daniel/workspace/zephyrproject/zephyr/boards/arm/nucleo_f767zi/nucleo_f767zi_defconfig'
Merged configuration '/home/daniel/workspace/zephyrproject/zephyr/samples/compression/lz4/prj.conf'

error: Aborting due to Kconfig warnings

CMake Error at /home/daniel/workspace/zephyrproject/zephyr/cmake/modules/kconfig.cmake:346 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  /home/daniel/workspace/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:115 (include)
  /home/daniel/workspace/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/daniel/workspace/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:5 (find_package)

-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/home/daniel/workspace/zephyrproject/zephyr/build -GNinja -DBOARD=nucleo_f767zi -S/home/daniel/workspace/zephyrproject/zephyr/samples/compression/lz4

Environment (please complete the following information):

github-actions[bot] commented 1 year ago

Hi @danielRep! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙

carlescufi commented 1 year ago

Hi there,

This builds fine on the current main branch. You probably need to remove your build folder entirely as well as run west update.