Hi. I'm trying to write a simple MQTT app. I am consistently getting these KConfig errors to do with variables I'm not using, and I have tried to set CMake to ignore these errors by calling -DKCONFIG_ERROR_ON_WARNINGS=OFF when I build. west build -p -b nrf54l15dk/nrf54l15/cpuapp \
applications/Main_App/application \
-- -DKCONFIG_ERROR_ON_WARNINGS=OFF.
Does anyone know how I could get rid of this problem to finish the build?
halohawk@Halohawk:~/ncs/v3.0.1$ west build -p -b nrf54l15dk/nrf54l15/cpuapp applications/Main_App/application
-- west build: making build dir /home/halohawk/ncs/v3.0.1/build pristine
-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: /home/halohawk/ncs/toolchains/7cbc0036f4/usr/local/bin/python3.12 (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: /home/halohawk/.cache/zephyr
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf54l15dk, qualifiers: nrf54l15/cpuapp
Parsing /home/halohawk/ncs/v3.0.1/zephyr/share/sysbuild/Kconfig
Loaded configuration '/home/halohawk/ncs/v3.0.1/build/_sysbuild/empty.conf'
Merged configuration '/home/halohawk/ncs/v3.0.1/build/_sysbuild/empty.conf'
Configuration saved to '/home/halohawk/ncs/v3.0.1/build/zephyr/.config'
Kconfig header saved to '/home/halohawk/ncs/v3.0.1/build/_sysbuild/autoconf.h'
--
*********************************
* Running CMake for application *
*********************************
Loading Zephyr default modules (Zephyr base).
-- Application: /home/halohawk/ncs/v3.0.1/applications/Main_App/application
-- CMake version: 3.21.0
-- Found Python3: /home/halohawk/ncs/toolchains/7cbc0036f4/usr/local/bin/python (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: /home/halohawk/.cache/zephyr
-- Zephyr version: 4.0.99 (/home/halohawk/ncs/v3.0.1/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf54l15dk, qualifiers: nrf54l15/cpuapp
-- Found host-tools: zephyr 0.17.0 (/home/halohawk/ncs/toolchains/7cbc0036f4/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (/home/halohawk/ncs/toolchains/7cbc0036f4/opt/zephyr-sdk)
-- Found Dtc: /home/halohawk/ncs/toolchains/7cbc0036f4/usr/local/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/halohawk/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
-- Generated zephyr.dts: /home/halohawk/ncs/v3.0.1/build/application/zephyr/zephyr.dts
-- Generated pickled edt: /home/halohawk/ncs/v3.0.1/build/application/zephyr/edt.pickle
-- Generated zephyr.dts: /home/halohawk/ncs/v3.0.1/build/application/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/halohawk/ncs/v3.0.1/build/application/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /home/halohawk/ncs/v3.0.1/build/application/zephyr/dts.cmake
/home/halohawk/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig:5: warning: attempt to assign the value 'y' to the undefined symbol SERIAL
/home/halohawk/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig:8: warning: attempt to assign the value 'y' to the undefined symbol CONSOLE
/home/halohawk/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig:9: warning: attempt to assign the value 'y' to the undefined symbol UART_CONSOLE
/home/halohawk/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig:12: warning: attempt to assign the value 'y' to the undefined symbol GPIO
/home/halohawk/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig:15: warning: attempt to assign the value 'y' to the undefined symbol ARM_MPU
/home/halohawk/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig:18: warning: attempt to assign the value 'y' to the undefined symbol HW_STACK_PROTECTION
/home/halohawk/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig:22: warning: attempt to assign the value 'y' to the undefined symbol NULL_POINTER_EXCEPTION_DETECTION_NONE
/home/halohawk/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig:25: warning: attempt to assign the value 'y' to the undefined symbol CACHE_MANAGEMENT
/home/halohawk/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig:26: warning: attempt to assign the value 'y' to the undefined symbol EXTERNAL_CACHE
/home/halohawk/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig:29: warning: attempt to assign the value 'y' to the undefined symbol NRF_GRTC_START_SYSCOUNTER
/home/halohawk/ncs/v3.0.1/applications/Main_App/application/prj.conf:1: warning: attempt to assign the value 'y' to the undefined symbol SERIAL
/home/halohawk/ncs/v3.0.1/applications/Main_App/application/prj.conf:2: warning: attempt to assign the value 'y' to the undefined symbol UART_ASYNC_API
/home/halohawk/ncs/v3.0.1/applications/Main_App/application/prj.conf:3: warning: attempt to assign the value '8192' to the undefined symbol HEAP_MEM_POOL_SIZE
/home/halohawk/ncs/v3.0.1/build/application/zephyr/.config.sysbuild:2: warning: attempt to assign the value 'y' to the undefined symbol PARTITION_MANAGER_ENABLED
/home/halohawk/ncs/v3.0.1/build/application/zephyr/.config.sysbuild:3: warning: attempt to assign the value 'y' to the undefined symbol BUILD_OUTPUT_BIN
/home/halohawk/ncs/v3.0.1/build/application/zephyr/.config.sysbuild:4: warning: attempt to assign the value 'y' to the undefined symbol BUILD_OUTPUT_HEX
/home/halohawk/ncs/v3.0.1/build/application/zephyr/.config.sysbuild:5: warning: attempt to assign the value 'n' to the undefined symbol WIFI_NRF70
/home/halohawk/ncs/v3.0.1/build/application/zephyr/.config.sysbuild:6: warning: attempt to assign the value 'n' to the undefined symbol CHIP
/home/halohawk/ncs/v3.0.1/build/application/zephyr/.config.sysbuild:7: warning: attempt to assign the value 'n' to the undefined symbol BOOTLOADER_MCUBOOT
/home/halohawk/ncs/v3.0.1/build/application/zephyr/.config.sysbuild:8: warning: attempt to assign the value '""' to the undefined symbol MCUBOOT_SIGNATURE_KEY_FILE
/home/halohawk/ncs/v3.0.1/build/application/zephyr/.config.sysbuild:9: warning: attempt to assign the value '""' to the undefined symbol MCUBOOT_ENCRYPTION_KEY_FILE
Parsing /home/halohawk/ncs/v3.0.1/applications/Main_App/application/Kconfig
Loaded configuration '/home/halohawk/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig'
Merged configuration '/home/halohawk/ncs/v3.0.1/applications/Main_App/application/prj.conf'
Merged configuration '/home/halohawk/ncs/v3.0.1/build/application/zephyr/.config.sysbuild'
error: Aborting due to Kconfig warnings
CMake Error at /home/halohawk/ncs/v3.0.1/zephyr/cmake/modules/kconfig.cmake:396 (message):
command failed with return code: 1
Call Stack (most recent call first):
/home/halohawk/ncs/v3.0.1/nrf/cmake/modules/kconfig.cmake:36 (include)
/home/halohawk/ncs/v3.0.1/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
/home/halohawk/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/home/halohawk/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:2 (find_package)
-- Configuring incomplete, errors occurred!
CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
CMake configure failed for Zephyr project: application
Location: /home/halohawk/ncs/v3.0.1/applications/Main_App/application
Call Stack (most recent call first):
cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
cmake/modules/sysbuild_default.cmake:21 (include)
/home/halohawk/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
/home/halohawk/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
/home/halohawk/ncs/v3.0.1/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
template/CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/halohawk/ncs/v3.0.1/build/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: /home/halohawk/ncs/toolchains/7cbc0036f4/usr/local/bin/cmake -DWEST_PYTHON=/home/halohawk/ncs/toolchains/7cbc0036f4/usr/local/bin/python3.12 -B/home/halohawk/ncs/v3.0.1/build -GNinja -DBOARD=nrf54l15dk/nrf54l15/cpuapp -S/home/halohawk/ncs/v3.0.1/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/halohawk/ncs/v3.0.1/applications/Main_App/application
halohawk@Halohawk:~/ncs/v3.0.1$ 56045.prj.conf
cmake_minimum_required(VERSION 3.20) find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) project(Main_App) # Make Kconfig warnings non-fatal while we iterate set(KCONFIG_ERROR_ON_WARNINGS OFF) # Add DAU codec (drop the zip contents in lib/dau_codec) add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/lib/dau_codec c_dau_codec) # Application sources set(APP_SRC src/main.c src/state.c src/telit.c src/report.c ) target_sources(app PRIVATE ${APP_SRC}) target_include_directories(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src) target_link_libraries(app PRIVATE c_dau_codec)